Commit Graph

  • c38cb324f6 Simplify pairing_benches. Sean Bowe 2017-09-28 11:31:46 -06:00
  • bda22db9d5 Always recommend a window table size. Sean Bowe 2017-09-28 08:38:13 -06:00
  • 894b44d034 These structures are no longer exported outside the crate, and these assertions are unnecessary now that the external API can enforce them. Sean Bowe 2017-09-28 08:12:37 -06:00
  • 06f6334679 Change to docs for satisfying clippy. Sean Bowe 2017-09-27 20:06:51 -06:00
  • d230603190 Introduce a more typesafe wNAF API, and remove the unstable-wnaf feature. Sean Bowe 2017-09-27 19:09:59 -06:00
  • 1398a32b3a Auto merge of #42 - str4d:36-tests-on-stable, r=ebfull bmerge 2017-09-27 17:04:05 +00:00
  • 3ef34b750c Move benchmarks under benches/ so tests compile on stable str4d 2017-09-27 00:42:15 +01:00
  • 9b6fb37533 Auto merge of #41 - str4d:23-debug-trait, r=ebfull bmerge 2017-09-27 06:04:17 +00:00
  • 39920186b3 Force public structures to implement Debug str4d 2017-09-26 15:59:50 +01:00
  • 57de78f4f1 Auto merge of #38 - mmaker:feature/legendre-symbol, r=ebfull bmerge 2017-08-24 19:24:15 +00:00
  • 9846ad2d17 Some (easy) cleanups as suggested from @ebfull. Michele Orrù 2017-08-23 20:26:56 +02:00
  • 2ac2d1213d Some (easy) cleanups as suggested from @daira. Michele Orrù 2017-08-11 15:12:15 +02:00
  • a86d0b7270 s/Q/Quadratic/ in LegendreSymbol enum. Michele Orrù 2017-08-12 11:50:30 +02:00
  • 6feb0f802f Merge traits SqrtField and LegendreField into SqrtField. Michele Orrù 2017-08-10 18:28:17 +02:00
  • 2d3f498e75 Polish sqrt in fr.rs: use pattern matching with Legendre enums. Michele Orrù 2017-08-10 18:18:46 +02:00
  • 57b4e73627 Create enum for LegendreSymbol, fix test. Michele Orrù 2017-08-09 14:09:54 +02:00
  • 1b6cf85251 Add Legendre symbol for Fq and Fq2. Michele Orrù 2017-08-06 15:24:01 +02:00
  • 2042876fcf Disable default features for pairing. Sean Bowe 2017-08-22 20:45:45 -06:00
  • 3148662234 Reimplementation of groth16 using pairing library. Sean Bowe 2017-08-07 13:36:52 -06:00
  • c4c6e25bc0 Auto merge of #37 - ebfull:0.11-release, r=ebfull bmerge 2017-08-22 21:37:06 +00:00
  • 1239b7648d Release 0.11. Sean Bowe 2017-08-22 15:35:02 -06:00
  • dcbd0f3d0c Auto merge of #35 - ebfull:stable-arith, r=ebfull bmerge 2017-08-22 17:53:46 +00:00
  • 68747b4174 Auto merge of #34 - mmaker:fix/is_in_correct_subgroup, r=ebfull bmerge 2017-08-16 16:26:16 +00:00
  • ec49fcc638 s/is_in_correct_subgroup/is_in_correct_subgroup_assuming_on_curve/ Michele Orrù 2017-08-16 12:08:52 +02:00
  • 51b16c52b3 Only enable i128_type when necessary. Sean Bowe 2017-08-15 13:54:51 -06:00
  • 3f55cda9d1 Auto merge of #33 - plutomonkey:fix-use, r=ebfull bmerge 2017-08-15 19:06:15 +00:00
  • 3908552fb9 Introduce stable arithmetic to avoid nightly/unstable features for some platforms. Sean Bowe 2017-08-15 12:53:22 -06:00
  • b893aa17ac Remove redundant use. Jason Davies 2017-08-14 22:15:24 +01:00
  • 2eb25d2298 Auto merge of #32 - plutomonkey:fix-const, r=ebfull bmerge 2017-08-14 17:57:37 +00:00
  • b1d981e916 Replace inline value with const. Jason Davies 2017-08-14 17:16:21 +01:00
  • 990401395c Auto merge of #31 - plutomonkey:fix-doc, r=ebfull bmerge 2017-08-14 15:43:05 +00:00
  • 122d2b161d Update clippy to 0.0.151. Jason Davies 2017-08-14 16:41:55 +01:00
  • d2f47cfa2d Fix minor typos in comments/docs. Jason Davies 2017-08-14 09:46:55 +01:00
  • 21b0384f28 Fix for superscript period appearing in docs. Jason Davies 2017-08-14 00:22:54 +01:00
  • bf03be0b9d Starting fresh... Sean Bowe 2017-08-07 07:43:39 -06:00
  • d72929f64e Auto merge of #26 - ebfull:even-more-adjustments, r=ebfull bmerge 2017-08-01 17:38:38 +00:00
  • 766c902d8c Allow unreadable_literal lint. Sean Bowe 2017-08-01 11:37:51 -06:00
  • ca5efdcebe Update clippy again. Sean Bowe 2017-08-01 11:23:42 -06:00
  • 6410bdf998 Adopt idiomatic code suggestions. Sean Bowe 2017-07-31 09:39:57 -06:00
  • 34aa52b0f7 Another clippy update. Sean Bowe 2017-07-31 08:41:51 -06:00
  • ba2c9c7bf0 Clippy update. Sean Bowe 2017-07-30 01:12:35 -06:00
  • 964fad5a67 Version bump Sean Bowe 2017-07-30 00:56:24 -06:00
  • 05183c5348 Make Fq6 public. Sean Bowe 2017-07-30 00:55:18 -06:00
  • 053698eefb Add Engine associated type to CurveProject/CurveAffine. Sean Bowe 2017-07-30 00:54:23 -06:00
  • 40ec989184 Add (not particularly efficient) from_str to PrimeField. Sean Bowe 2017-07-30 00:11:34 -06:00
  • dcca363d1b Add muln() to PrimeFieldRepr along with tests for muln/divn. Sean Bowe 2017-07-29 23:20:59 -06:00
  • 9af0c7dd30 PrimeFieldRepr::divn() should accept u32. Sean Bowe 2017-07-29 22:50:48 -06:00
  • 1a481bc741 PrimeField::s() should return u32. Sean Bowe 2017-07-29 22:47:06 -06:00
  • aa5d634c04 Auto merge of #21 - ebfull:bump-again, r=ebfull bmerge 2017-07-24 15:52:14 +00:00
  • 7960f69ba9 Use newer version of clippy. Sean Bowe 2017-07-24 09:51:20 -06:00
  • f111008d66 Version bump to 0.10.1. Sean Bowe 2017-07-23 20:21:08 -06:00
  • c643f0b1fa Auto merge of #20 - ebfull:pairing_with, r=ebfull bmerge 2017-07-23 22:56:39 +00:00
  • 41834bc4b2 Add pairing_with API. Sean Bowe 2017-07-20 20:52:36 -06:00
  • f51a383ef1 Auto merge of #19 - ebfull:ohtenrelease, r=ebfull bmerge 2017-07-18 19:38:37 +00:00
  • 59765c5830 Version bump. Sean Bowe 2017-07-18 13:36:18 -06:00
  • 8fc026bb61 Auto merge of #18 - ebfull:primefieldreprtests, r=ebfull bmerge 2017-07-18 17:20:57 +00:00
  • 176c77d602 Random encoding/decoding tests for PrimeFieldRepr. Closes #3. Sean Bowe 2017-07-18 11:18:42 -06:00
  • a6528a7876 Auto merge of #17 - ebfull:various-improvements, r=ebfull bmerge 2017-07-18 16:21:39 +00:00
  • 9e5f70f126 (clippy) More idomatic reference matching. Sean Bowe 2017-07-18 10:16:49 -06:00
  • 19efad5ba6 Small fixups to reduce diff. Sean Bowe 2017-07-18 09:00:02 -06:00
  • 0e877810f7 Add tests for rejected encoded G1/G2 points. Sean Bowe 2017-07-17 18:24:57 -06:00
  • 2bfce59d8e Offer read_be and write_be utilities to simplify code, and for testing. Sean Bowe 2017-07-17 13:35:12 -06:00
  • d67109d5d3 EncodedPoint should be Copy/Clone. Sean Bowe 2017-07-17 13:05:16 -06:00
  • 7b1cd7f211 Improve documentation for errors a bit. Sean Bowe 2017-07-17 12:24:00 -06:00
  • 1d4710a39e Consistently use Debug and Display. Sean Bowe 2017-07-17 12:20:01 -06:00
  • 1027dda432 Carry the interpreted value of the encoding through the error. Sean Bowe 2017-07-17 10:31:22 -06:00
  • 09531d0810 Add error logic to decoding methods. Sean Bowe 2017-07-17 09:06:03 -06:00
  • 7c35f2b8b0 Auto merge of #16 - ebfull:clippy-impl, r=ebfull bmerge 2017-07-17 03:51:15 +00:00
  • 451b2c30ad Enable clippy linting. Sean Bowe 2017-07-16 21:50:03 -06:00
  • 6df2c003c7 Auto merge of #15 - ebfull:serialization-impl, r=ebfull bmerge 2017-07-17 03:28:05 +00:00
  • c618240c91 Implements and documents serialization, closes #11. Sean Bowe 2017-07-16 20:52:00 -06:00
  • e72660056e Ordering cleanup for Fq/Fq2, with documentation. Closes #9. Sean Bowe 2017-07-15 15:32:37 -06:00
  • 2090e76794 Mark wnaf module unstable via feature unstable-wnaf. Closes #13. Sean Bowe 2017-07-14 11:56:55 -06:00
  • 806d34b39a Rename unitary_inverse to conjugate. Closes #12. Sean Bowe 2017-07-14 11:45:07 -06:00
  • d438f16628 Use divn when rightshifting during rand(). Sean Bowe 2017-07-14 11:41:40 -06:00
  • bafb273a6c Simplify doubling code during squaring routine. Sean Bowe 2017-07-11 23:49:33 -06:00
  • 647f83b53b Rename many .to_* methods to .into_*. Sean Bowe 2017-07-11 23:37:29 -06:00
  • ae69eb01b3 Small adjustments to satisfy clippy. Sean Bowe 2017-07-11 17:10:32 -06:00
  • 3faf8c526a Encoding of G1/G2 elements in compressed or uncompressed form. Sean Bowe 2017-07-11 15:01:31 -06:00
  • 021077b56b Added wNAF scalar multiplication. Sean Bowe 2017-07-10 00:39:38 -06:00
  • b965c58ac1 For performance, don't double/square until we've seen a bit. Sean Bowe 2017-07-09 21:11:29 -06:00
  • f2b1b0632d Correct README description of E'. Sean Bowe 2017-07-08 23:26:38 -06:00
  • a06216f24b Initial commit Sean Bowe 2017-07-08 10:55:43 -06:00
  • c7252a43bf Update README/Cargo.toml with correct documentation links. Sean Bowe 2017-06-27 10:35:14 -06:00
  • 134b53e812 Version bump. Sean Bowe 2017-06-27 09:41:33 -06:00
  • bbc7b44f88 Comments and slight refactoring. Sean Bowe 2017-06-27 09:40:58 -06:00
  • 02f503c74d Modify README. Sean Bowe 2017-06-27 09:27:29 -06:00
  • b1f392ac99 Add multiplicative generator and other useful constants. Sean Bowe 2017-06-27 09:14:24 -06:00
  • 9aceb63e7e Add Tonelli-Shanks sqrt for 1 mod 16 primes. Sean Bowe 2017-06-26 23:22:41 -06:00
  • bbbd397b80 Add more efficient squaring implementation. Sean Bowe 2017-06-26 14:42:47 -06:00
  • e6ad371dd7 Remove dead code. Sean Bowe 2017-06-26 13:53:55 -06:00
  • 03952704b7 Absolute path to rand. Sean Bowe 2017-06-26 12:07:23 -06:00
  • 13a822f994 Add auto-derivation of prime fields, and modify the traits a little bit. Sean Bowe 2017-06-26 11:47:35 -06:00
  • e97f0df3df Fix another comment. Sean Bowe 2017-06-25 23:18:32 -06:00
  • 6402b74741 Fix comment. Sean Bowe 2017-06-25 23:16:08 -06:00
  • cb0c8f1e07 Fix description of ff. Sean Bowe 2017-06-25 23:13:56 -06:00
  • cf7d7e823b Add more stuff to the Cargo.toml files. Sean Bowe 2017-06-25 23:12:40 -06:00
  • b11ea2db25 Initial commit. Sean Bowe 2017-06-25 23:09:43 -06:00
  • e282bc095a Auto merge of #13 - ebfull:fix-comment, r=ebfull bmerge 2017-06-19 22:40:09 +00:00
  • 9c94216a87 Fix comment about sqrt. Sean Bowe 2017-06-19 13:58:30 -06:00