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.
7 years ago
bmerge
5bb8e3a841
Auto merge of #51 - ebfull:several-fixups, r=ebfull
...
Several fixups
Closes #50
Closes #48
Closes #46
Also, CI changes this PR will test:
Closes #43
Closes #44
7 years ago
Sean Bowe
4aa51bd3d4
Add security warnings and some instructions to README.md.
7 years ago
Sean Bowe
93e2a132b5
Mask rather than divn, closes #50 .
7 years ago
Sean Bowe
291fa71914
This coercion doesn't take place on stable yet.
7 years ago
Sean Bowe
636a037bb1
Make `u128-support` feature opt-in rather than default.
7 years ago
bmerge
2540ab30fb
Auto merge of #47 - ebfull:stable-wnaf, r=ebfull
...
Introduce a more typesafe wNAF API, and remove the unstable-wnaf feature
Closes #27 .
7 years ago
Sean Bowe
6708878f4c
Elide these lifetimes.
7 years ago
bmerge
68b57b2ce4
Auto merge of #49 - ebfull:simplify-bench, r=ebfull
...
Simplify `pairing_benches`.
7 years ago
Sean Bowe
c38cb324f6
Simplify `pairing_benches`.
7 years ago
Sean Bowe
bda22db9d5
Always recommend a window table size.
7 years ago
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.
7 years ago
Sean Bowe
06f6334679
Change to docs for satisfying clippy.
7 years ago
Sean Bowe
d230603190
Introduce a more typesafe wNAF API, and remove the unstable-wnaf feature.
7 years ago
bmerge
1398a32b3a
Auto merge of #42 - str4d:36-tests-on-stable, r=ebfull
...
Move benchmarks under benches/ so tests compile on stable
Closes #36 .
7 years ago
str4d
3ef34b750c
Move benchmarks under benches/ so tests compile on stable
...
Closes #36 .
7 years ago
bmerge
9b6fb37533
Auto merge of #41 - str4d:23-debug-trait, r=ebfull
...
Force public structures to implement Debug
Closes #23 .
7 years ago
str4d
39920186b3
Force public structures to implement Debug
...
Closes #23 .
7 years ago
bmerge
57de78f4f1
Auto merge of #38 - mmaker:feature/legendre-symbol, r=ebfull
...
Add Legendre symbol.
7 years ago
Michele Orrù
9846ad2d17
Some (easy) cleanups as suggested from @ebfull .
...
Thanks!
7 years ago
Michele Orrù
2ac2d1213d
Some (easy) cleanups as suggested from @daira .
...
Thanks!
7 years ago
Michele Orrù
a86d0b7270
s/Q/Quadratic/ in LegendreSymbol enum.
...
Proposed by @ebfull .
7 years ago
Michele Orrù
6feb0f802f
Merge traits SqrtField and LegendreField into SqrtField.
7 years ago
Michele Orrù
2d3f498e75
Polish sqrt in fr.rs: use pattern matching with Legendre enums.
7 years ago
Michele Orrù
57b4e73627
Create enum for LegendreSymbol, fix test.
7 years ago
Michele Orrù
1b6cf85251
Add Legendre symbol for Fq and Fq2.
7 years ago
bmerge
c4c6e25bc0
Auto merge of #37 - ebfull:0.11-release, r=ebfull
...
Release 0.11.
7 years ago
Sean Bowe
1239b7648d
Release 0.11.
7 years ago
bmerge
dcbd0f3d0c
Auto merge of #35 - ebfull:stable-arith, r=ebfull
...
Introduce stable arithmetic to avoid nightly/unstable features for some platforms
This PR allows the user to opt-out of the "u128-support" feature so that they can use the stable compiler and avoid the unstable `i128_type` feature in the Rust compiler. (Pass `--no-default-features` to opt out.)
This roughly triples the cost of everything in my experience, but it's necessary on some platforms (`arm-linux-androideabi`) which Rust/LLVM doesn't compile 128-bit integers for correctly yet.
**Before this can be merged the CI needs to test against this being enabled or disabled.**
7 years ago
bmerge
68747b4174
Auto merge of #34 - mmaker:fix/is_in_correct_subgroup, r=ebfull
...
s/is_in_correct_subgroup/is_in_correct_subgroup_assuming_on_curve/
I added a new method`is_in_correct_subgroup_assuming_on_curve` and added the method `is_in_correct_subgroup` for the `CurveAffine` trait.
7 years ago
Michele Orrù
ec49fcc638
s/is_in_correct_subgroup/is_in_correct_subgroup_assuming_on_curve/
...
Literelly run:
$ sed -i s/is_in_correct_subgroup/is_in_correct_subgroup_assuming_on_curve/g bls12_381/ec.rs
7 years ago
Sean Bowe
51b16c52b3
Only enable `i128_type` when necessary.
7 years ago
bmerge
3f55cda9d1
Auto merge of #33 - plutomonkey:fix-use, r=ebfull
...
Remove redundant `use`.
7 years ago
Sean Bowe
3908552fb9
Introduce stable arithmetic to avoid nightly/unstable features for some platforms.
7 years ago
Jason Davies
b893aa17ac
Remove redundant `use`.
7 years ago
bmerge
2eb25d2298
Auto merge of #32 - plutomonkey:fix-const, r=ebfull
...
Replace inline value with const.
7 years ago
Jason Davies
b1d981e916
Replace inline value with const.
7 years ago
bmerge
990401395c
Auto merge of #31 - plutomonkey:fix-doc, r=ebfull
...
Fix some minor typos in docs.
7 years ago
Jason Davies
122d2b161d
Update clippy to 0.0.151.
7 years ago
Jason Davies
d2f47cfa2d
Fix minor typos in comments/docs.
7 years ago
Jason Davies
21b0384f28
Fix for superscript period appearing in docs.
7 years ago
bmerge
d72929f64e
Auto merge of #26 - ebfull:even-more-adjustments, r=ebfull
...
Even more adjustments
Closes #22
Closes #24
Closes #25
7 years ago
Sean Bowe
766c902d8c
Allow `unreadable_literal` lint.
7 years ago
Sean Bowe
ca5efdcebe
Update clippy again.
7 years ago
Sean Bowe
6410bdf998
Adopt idiomatic code suggestions.
7 years ago
Sean Bowe
34aa52b0f7
Another clippy update.
7 years ago
Sean Bowe
ba2c9c7bf0
Clippy update.
7 years ago
Sean Bowe
964fad5a67
Version bump
7 years ago
Sean Bowe
05183c5348
Make Fq6 public.
7 years ago
Sean Bowe
053698eefb
Add `Engine` associated type to CurveProject/CurveAffine.
7 years ago