Commit Graph
90 Commits
Author SHA1 Message Date
Sean Bowe 2d12b9a858 Apply newer rustfmt rules. 2018-03-29 11:18:15 -06:00
Sean Bowe fcaddaa356 Update Clippy to support latest nightly, and fix some lints. 2018-03-29 10:13:00 -06:00
Sean Bowe bcc8379a7f Version bump. 2018-03-29 09:23:20 -06:00
Sean Bowe 4cf5a534ec i128_type feature has been stabilized in Rust. 2018-03-29 09:18:26 -06:00
Sean Bowe 92d2c13285 Release of pairing 0.14.0. 2018-03-04 20:01:23 -07:00
Sean Bowe 53083f4290 Apply rustfmt to the codebase. 2018-02-21 11:08:58 -07:00
Sean Bowe 541fda7580 Fix misleading comments on write_be and read_be. 2018-02-13 17:14:17 -07:00
Sean Bowe b971bdedda Rename divn/muln to shr/shl. 2018-02-13 17:07:10 -07:00
Sean Bowe a0fcf717c8 add_nocarry and sub_noborrow should no longer return anything. 2018-02-13 16:41:10 -07:00
Sean Bowe fb679470db Bump version. 2017-12-04 21:48:22 -07:00
Sean Bowe 04a32fb443 Introduce expose-arith unstable feature for exposing arithmetic functions downstream. 2017-12-04 21:47:45 -07:00
Sean Bowe b8394bf14d Fix some comments. 2017-11-26 03:09:06 -07:00
Sean Bowe bb1ced0bd7 Update clippy version. 2017-11-25 21:32:14 -07:00
Sean Bowe 566f100480 Release of 0.13.1. 2017-11-25 21:01:55 -07:00
Sean Bowe aa0cc06e5e Scalar field should be guaranteed to be SqrtField. 2017-11-25 20:57:10 -07:00
Sean Bowe 4a1ac94799 Implement Clone for Bls12. 2017-11-20 23:53:58 -07:00
Sean Bowe 4b366a143d Ensure Engine's are always Clone. 2017-11-20 23:20:11 -07:00
Sean Bowe f32cb40929 Engine should always be 'static, for flexibility in downstream code. 2017-11-20 12:22:51 -07:00
Sean Bowe 471db6ab27 Enforce that Fr of Engine is the scalar for curve points, for simpler downstream abstractions. 2017-11-12 16:19:08 -07:00
Sean Bowe 342b94c76b Use "1" for the byteorder crate's version. 2017-10-12 11:20:57 -06:00
Sean Bowe 39c25cd506 Bump version to 0.13.0 2017-10-10 01:54:53 -06:00
Sean Bowe 12b9606b9c G1/G2 rand() should produce elements of unknown exponent. 2017-10-10 01:13:35 -06:00
Sean Bowe 65e50a9e5a Allow scale_by_cofactor to be dead code temporarily. 2017-10-09 17:14:36 -06:00
Sean Bowe dbac57c27b Further refactoring of get_point_from_x() 2017-10-05 12:35:04 -06:00
Sean Bowe 683f21a4d5 Remove spurious newline. 2017-10-04 14:53:42 -06:00
Sean Bowe 85b95750e2 Fix comment about u128-support. 2017-10-04 14:09:40 -06:00
Sean Bowe 931257599d Refactor code for finding affine points from x-coordinates. 2017-10-04 11:43:42 -06:00
Sean Bowe 60887521b6 Derive Clone for {G1|G2}{Uncompressed|Compressed}. 2017-10-03 14:35:00 -06:00
Sean Bowe 18c75f11ab Account for negative curve parameter to be compatible with RELIC. 2017-10-03 14:27:01 -06:00
Sean Bowe 67f5fbc94c More modifications to satisfy clippy. 2017-09-28 17:37:54 -06:00
Sean Bowe 05339414cc Update clippy and compensate for new lints. 2017-09-28 17:10:06 -06:00
Sean Bowe 927febe4e8 Bump version to 0.12.0. 2017-09-28 16:52:12 -06:00
Sean Bowe 4fe3e1d6e3 Use associated constants for simple constants like these. (Closes #39.) 2017-09-28 16:08:56 -06:00
ebfull abd48980ee Merge pull request #52 from ebfull/fix-copyright
Fix copyright/license information
2017-09-28 15:53:53 -06:00
Sean Bowe 8dbee41977 Add COPYRIGHT file to inform of conditions for contributing and license information. 2017-09-28 15:39:29 -06:00
Sean Bowe 35bf7f63ea Modify the LICENSE-APACHE and LICENSE-MIT files.
This modifies the files so that they are exactly the same as the
Rust project's license files. This does not change the wording of
the license.
2017-09-28 15:29:58 -06:00
Sean Bowe ce875c902b LICENSE-MIT: Remove inaccurate (misattributed) copyright notice
LICENSE-MIT contains the line "Copyright (c) 2017 Sean Bowe", which
implies that an entity called "Sean Bowe" holds copyrights in the
pairing Rust library. Pairing library contributors retain their
copyrights, and do not assign them to anyone by contributing.
Remove the inaccurate notice.
2017-09-28 15:24:31 -06:00
Sean Bowe 4aa51bd3d4 Add security warnings and some instructions to README.md. 2017-09-28 13:32:34 -06:00
Sean Bowe 93e2a132b5 Mask rather than divn, closes #50. 2017-09-28 13:15:29 -06:00
Sean Bowe 291fa71914 This coercion doesn't take place on stable yet. 2017-09-28 13:03:01 -06:00
Sean Bowe 636a037bb1 Make u128-support feature opt-in rather than default. 2017-09-28 12:52:14 -06:00
Sean Bowe 6708878f4c Elide these lifetimes. 2017-09-28 11:39:53 -06:00
Sean Bowe c38cb324f6 Simplify pairing_benches. 2017-09-28 11:31:46 -06:00
Sean Bowe bda22db9d5 Always recommend a window table size. 2017-09-28 08:38:13 -06:00
Sean Bowe 894b44d034 These structures are no longer exported outside the crate, and these assertions are unnecessary now that the external API can enforce them. 2017-09-28 08:12:37 -06:00
Sean Bowe 06f6334679 Change to docs for satisfying clippy. 2017-09-27 20:06:51 -06:00
Sean Bowe d230603190 Introduce a more typesafe wNAF API, and remove the unstable-wnaf feature. 2017-09-27 19:09:59 -06:00
Sean Bowe 1239b7648d Release 0.11. 2017-08-22 15:35:02 -06:00
Sean Bowe 51b16c52b3 Only enable i128_type when necessary. 2017-08-15 13:54:51 -06:00
Sean Bowe 3908552fb9 Introduce stable arithmetic to avoid nightly/unstable features for some platforms. 2017-08-15 12:53:22 -06:00
Sean Bowe 766c902d8c Allow unreadable_literal lint. 2017-08-01 11:37:51 -06:00
Sean Bowe ca5efdcebe Update clippy again. 2017-08-01 11:23:42 -06:00
Sean Bowe 6410bdf998 Adopt idiomatic code suggestions. 2017-07-31 09:39:57 -06:00
Sean Bowe 34aa52b0f7 Another clippy update. 2017-07-31 08:41:51 -06:00
Sean Bowe ba2c9c7bf0 Clippy update. 2017-07-30 01:12:35 -06:00
Sean Bowe 964fad5a67 Version bump 2017-07-30 00:56:24 -06:00
Sean Bowe 05183c5348 Make Fq6 public. 2017-07-30 00:55:18 -06:00
Sean Bowe 053698eefb Add Engine associated type to CurveProject/CurveAffine. 2017-07-30 00:54:23 -06:00
Sean Bowe 40ec989184 Add (not particularly efficient) from_str to PrimeField. 2017-07-30 00:47:24 -06:00
Sean Bowe dcca363d1b Add muln() to PrimeFieldRepr along with tests for muln/divn. 2017-07-29 23:20:59 -06:00
Sean Bowe 9af0c7dd30 PrimeFieldRepr::divn() should accept u32. 2017-07-29 22:50:48 -06:00
Sean Bowe 1a481bc741 PrimeField::s() should return u32. 2017-07-29 22:47:06 -06:00
Sean Bowe 7960f69ba9 Use newer version of clippy. 2017-07-24 09:51:20 -06:00
Sean Bowe f111008d66 Version bump to 0.10.1. 2017-07-23 20:21:08 -06:00
Sean Bowe 41834bc4b2 Add pairing_with API. 2017-07-20 20:52:36 -06:00
Sean Bowe 59765c5830 Version bump. 2017-07-18 13:36:18 -06:00
Sean Bowe 176c77d602 Random encoding/decoding tests for PrimeFieldRepr. Closes #3. 2017-07-18 11:18:42 -06:00
Sean Bowe 9e5f70f126 (clippy) More idomatic reference matching. 2017-07-18 10:16:49 -06:00
Sean Bowe 19efad5ba6 Small fixups to reduce diff. 2017-07-18 09:17:38 -06:00
Sean Bowe 0e877810f7 Add tests for rejected encoded G1/G2 points. 2017-07-18 08:58:58 -06:00
Sean Bowe 2bfce59d8e Offer read_be and write_be utilities to simplify code, and for testing. 2017-07-18 08:58:58 -06:00
Sean Bowe d67109d5d3 EncodedPoint should be Copy/Clone. 2017-07-18 08:58:58 -06:00
Sean Bowe 7b1cd7f211 Improve documentation for errors a bit. 2017-07-18 08:58:58 -06:00
Sean Bowe 1d4710a39e Consistently use Debug and Display. 2017-07-18 08:58:58 -06:00
Sean Bowe 1027dda432 Carry the interpreted value of the encoding through the error. 2017-07-18 08:58:58 -06:00
Sean Bowe 09531d0810 Add error logic to decoding methods. 2017-07-18 08:58:58 -06:00
Sean Bowe 451b2c30ad Enable clippy linting. 2017-07-16 21:50:03 -06:00
Sean Bowe c618240c91 Implements and documents serialization, closes #11. 2017-07-16 20:52:00 -06:00
Sean Bowe e72660056e Ordering cleanup for Fq/Fq2, with documentation. Closes #9. 2017-07-15 15:32:37 -06:00
Sean Bowe 2090e76794 Mark wnaf module unstable via feature unstable-wnaf. Closes #13. 2017-07-14 11:56:55 -06:00
Sean Bowe 806d34b39a Rename unitary_inverse to conjugate. Closes #12. 2017-07-14 11:45:07 -06:00
Sean Bowe d438f16628 Use divn when rightshifting during rand(). 2017-07-14 11:41:40 -06:00
Sean Bowe bafb273a6c Simplify doubling code during squaring routine. 2017-07-11 23:49:33 -06:00
Sean Bowe 647f83b53b Rename many .to_* methods to .into_*. 2017-07-11 23:37:29 -06:00
Sean Bowe ae69eb01b3 Small adjustments to satisfy clippy. 2017-07-11 17:10:32 -06:00
Sean Bowe 3faf8c526a Encoding of G1/G2 elements in compressed or uncompressed form. 2017-07-11 15:01:31 -06:00
Sean Bowe 021077b56b Added wNAF scalar multiplication. 2017-07-10 00:39:38 -06:00
Sean Bowe b965c58ac1 For performance, don't double/square until we've seen a bit. 2017-07-09 21:11:29 -06:00
Sean Bowe f2b1b0632d Correct README description of E'. 2017-07-08 23:26:38 -06:00
Sean Bowe a06216f24b Initial commit 2017-07-08 10:55:43 -06:00