Commit Graph

3134 Commits

Author SHA1 Message Date
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
bmerge aa5d634c04 Auto merge of #21 - ebfull:bump-again, r=ebfull
Version bump to 0.10.1
2017-07-24 15:52:14 +00: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
bmerge c643f0b1fa Auto merge of #20 - ebfull:pairing_with, r=ebfull
Add pairing_with API.

I needed this for something I'm doing so I just wrote it.

Closes #8
2017-07-23 22:56:39 +00:00
Sean Bowe 41834bc4b2
Add pairing_with API. 2017-07-20 20:52:36 -06:00
bmerge f51a383ef1 Auto merge of #19 - ebfull:ohtenrelease, r=ebfull
Version bump.
2017-07-18 19:38:37 +00:00
Sean Bowe 59765c5830
Version bump. 2017-07-18 13:36:18 -06:00
bmerge 8fc026bb61 Auto merge of #18 - ebfull:primefieldreprtests, r=ebfull
Random encoding/decoding tests for `PrimeFieldRepr`
2017-07-18 17:20:57 +00:00
Sean Bowe 176c77d602
Random encoding/decoding tests for `PrimeFieldRepr`. Closes #3. 2017-07-18 11:18:42 -06:00
bmerge a6528a7876 Auto merge of #17 - ebfull:various-improvements, r=ebfull
Group encoding negative test vectors

Closes #10

Also simplifies the encoding code, which has the side-effect of being useful for testing. Also adds more descriptive error reporting throughout the API. Also ensures use of Debug/Display are consistent with standard expectations.
2017-07-18 16:21:39 +00: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
bmerge 7c35f2b8b0 Auto merge of #16 - ebfull:clippy-impl, r=ebfull
Enable clippy linting

Closes #5
2017-07-17 03:51:15 +00:00
Sean Bowe 451b2c30ad
Enable clippy linting. 2017-07-16 21:50:03 -06:00
bmerge 6df2c003c7 Auto merge of #15 - ebfull:serialization-impl, r=ebfull
Implements and documents serialization

Closes #11.
2017-07-17 03:28:05 +00: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
Sean Bowe c7252a43bf Update README/Cargo.toml with correct documentation links. 2017-06-27 10:35:14 -06:00
Sean Bowe 134b53e812 Version bump. 2017-06-27 09:41:33 -06:00
Sean Bowe bbc7b44f88 Comments and slight refactoring. 2017-06-27 09:40:58 -06:00