Commit Graph

70 Commits

Author SHA1 Message Date
Daira Hopwood ebf8b553f7
Merge pull request #23 from daira/dual-license
Ensure that GitHub's "View license" link points to complete license information
2023-03-11 11:50:38 +00:00
Daira Hopwood d39ad26c64 Update copyright in LICENSE-MIT.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-01-04 19:45:50 +00:00
Daira Hopwood 8c413634fb Ensure that GitHub's "View license" link points to complete license information.
refs https://github.com/zcash/librustzcash/issues/443

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-01-04 19:45:50 +00:00
ebfull f711629486 Merge pull request #16 from ebfull/y-coordinate-fix
Don't negate y if point at infinity
2017-04-02 15:18:53 -06:00
Sean Bowe 6fb541e8a7
Version bump 2017-04-02 13:50:16 -06:00
Sean Bowe c85330e11c
Add test that y coordinate remains 1 in jacobian when G1/G2 are negated. 2017-04-02 13:49:44 -06:00
Sean Bowe 4e2096bedd
The point at infinity is only representable in the jacobian at y = 1. 2017-04-02 12:50:25 -06:00
Sean Bowe ef95df6caa
Ensure G2 elements are in the correct subgroup of the twisted curve. 2016-12-13 23:11:00 -07:00
ebfull e6ebe3f6d4 Merge pull request #14 from ebfull/affine-api
Add "normalize" method to Group and improve performance of serialization
2016-10-14 13:36:42 -06:00
Sean Bowe bf87f34550
Version bump. 2016-10-14 13:23:53 -06:00
Sean Bowe c9e1b24d63
Improve benchmarks and add serialization benchmarks. 2016-10-14 13:23:53 -06:00
Sean Bowe 207cf4eba2
Add 'normalize' to Group trait for converting something into affine. 2016-10-14 13:23:49 -06:00
Sean Bowe 90656b0bbf
Don't perform field inverse/squaring during affine conversion if point is already in affine. 2016-10-14 13:21:40 -06:00
ebfull bf023ee215 Merge pull request #12 from ebfull/fq2-serialization
Fq2 serialization
2016-09-18 21:43:12 -06:00
ebfull e33fd3f0e6 Merge pull request #13 from ebfull/serialization-benchmarks
Add G1/G2 serialization benchmarks.
2016-09-18 21:42:56 -06:00
Sean Bowe 3ed30e8033
Add G1/G2 serialization benchmarks. 2016-09-18 21:24:38 -06:00
Sean Bowe d3221bfd56
Version bump. 2016-09-18 11:59:12 -06:00
Sean Bowe dab7fdf411
Use U512 division for Fp randomness, add Fr interpretation to API. 2016-09-18 11:22:53 -06:00
Sean Bowe b582ba749b
Split off U512 interpretation. 2016-09-18 11:04:18 -06:00
Sean Bowe fbefb710cf
Ensure divrem always returns remainder. 2016-09-18 10:23:59 -06:00
Sean Bowe 76344a7ae9
Fq2 serialization according to spec. 2016-09-18 05:04:19 -06:00
Sean Bowe b20157fef1
Clean up U256 serialization. 2016-09-18 04:08:56 -06:00
Sean Bowe fe3dfc3e29
Implement U512 from/divrem. 2016-09-18 03:28:15 -06:00
Sean Bowe 3e40981e3f
Make set_bit inform instead of asserting. 2016-09-18 01:47:54 -06:00
Sean Bowe 3e5b7179c1
Factor out get_bit. 2016-09-18 01:42:51 -06:00
ebfull b45484b34e Merge pull request #11 from ebfull/macro-fp
Macroize Fp
2016-09-14 23:59:54 -06:00
Sean Bowe b64b6f8094
Version bump 2016-09-14 21:34:11 -06:00
Sean Bowe 3ebd527167
Use macros to instantiate finite fields. 2016-09-14 21:30:38 -06:00
ebfull a8c01aba09 Merge pull request #10 from ebfull/group-sync
Make `Group` sync
2016-09-14 14:53:41 -06:00
Sean Bowe 41ba0bb269
Version bump 2016-09-14 14:38:46 -06:00
Sean Bowe 0725e366fd
Make `Group` Sync. 2016-09-14 14:38:17 -06:00
ebfull 5dc0252a1c Merge pull request #9 from ebfull/more-api-changes
More API changes
2016-09-12 16:15:18 -06:00
Sean Bowe df2deaa1ff
Version bump 2016-09-12 16:02:58 -06:00
Sean Bowe f40abe6dc3
More superclasses. 2016-09-12 14:02:21 -06:00
Sean Bowe 41ef5fdef0
Add more superclasses to Group. 2016-09-11 22:04:37 -06:00
ebfull f2dae1e1de Merge pull request #8 from ebfull/api-changes
Add `Group` trait, more methods to API, repr(C) everything.
2016-09-11 21:42:45 -06:00
Sean Bowe ebab8be317
Bump version. 2016-09-11 21:33:24 -06:00
Sean Bowe 03521652c5
Add `Group` trait, more methods to API, repr(C) everything. 2016-09-11 21:30:38 -06:00
ebfull f695ff29fd Merge pull request #7 from ebfull/fix-version
Change the version to 2.0 in the README.
2016-09-11 13:57:47 -06:00
Sean Bowe 2c43498b9e
Change the version to 2.0 in the README. 2016-09-11 13:57:24 -06:00
ebfull 4c45abcb2b Merge pull request #6 from ebfull/use-semver-better
Dependency versions using semver better.
2016-09-11 13:55:12 -06:00
Sean Bowe 0bedb1ad54
Dependency versions using semver better. 2016-09-11 13:39:51 -06:00
Sean Bowe 9c795f46a3
Update README 2016-09-11 13:22:40 -06:00
Sean Bowe 19fdc821c5
Add travis indicator to readme. 2016-09-11 13:19:45 -06:00
ebfull 2d27223ec6 Merge pull request #5 from zcash/reconstruction
Performing reconstruction of the codebase.
2016-09-11 13:15:58 -06:00
Sean Bowe dd414cbcc9
Add travis testing configuration. 2016-09-11 13:05:29 -06:00
Sean Bowe 9e458130a6
Public API, reorganize tests, benchmarks and shootout. 2016-09-11 12:58:18 -06:00
Sean Bowe b93e312eb0
Implementation of pairing. 2016-09-11 03:08:52 -06:00
Sean Bowe 72a722aa43
Various misc adjustments. 2016-09-09 17:50:42 -06:00
Sean Bowe b05ecd3bb0
Added G1/G2/Fq2 serialization and test vectors. 2016-09-09 01:12:25 -06:00