Michele Orrù
e5607bb528
Add "scale_by_cofactor".
...
Add a function for Affine types that multiplies point by the cofactor of the
group.
7 years ago
bmerge
dfb836170b
Auto merge of #61 - ebfull:minor-changes, r=ebfull
...
Minor changes
7 years ago
Sean Bowe
dbac57c27b
Further refactoring of get_point_from_x()
7 years ago
Sean Bowe
683f21a4d5
Remove spurious newline.
7 years ago
Sean Bowe
85b95750e2
Fix comment about u128-support.
7 years ago
Sean Bowe
931257599d
Refactor code for finding affine points from x-coordinates.
7 years ago
bmerge
f9d4c8b6aa
Auto merge of #57 - ebfull:relic-interop, r=ebfull
...
RELIC interop
Closes #2
RELIC has changed the G2 generator to match ours: 25aafecbec
RELIC will not have the same serialization as us.
One last difference is that RELIC conjugates the pairing result to account for the negative curve parameter. It doesn't matter for BLS curves but it's strictly more correct.
7 years ago
Sean Bowe
18c75f11ab
Account for negative curve parameter to be compatible with RELIC.
7 years ago
bmerge
a8bf8362da
Auto merge of #54 - ebfull:version-bump-0.12.0, r=ebfull
...
Bump version to 0.12.0.
7 years ago
Sean Bowe
67f5fbc94c
More modifications to satisfy clippy.
7 years ago
Sean Bowe
05339414cc
Update clippy and compensate for new lints.
7 years ago
Sean Bowe
927febe4e8
Bump version to 0.12.0.
7 years ago
bmerge
3e1562445a
Auto merge of #53 - ebfull:assoc-consts, r=ebfull
...
Use associated constants for simple constants like these.
Closes #39 .
7 years ago
Sean Bowe
4fe3e1d6e3
Use associated constants for simple constants like these. (Closes #39.)
7 years ago
ebfull
abd48980ee
Merge pull request #52 from ebfull/fix-copyright
...
Fix copyright/license information
7 years ago
Sean Bowe
8dbee41977
Add COPYRIGHT file to inform of conditions for contributing and license information.
7 years ago
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.
7 years ago
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