Sean Bowe
13a5cbf9d5
Modify the public api surrounding multiexp.
7 years ago
Sean Bowe
e4c62180d7
Use a basic heuristic to choose c for multiexp.
7 years ago
Sean Bowe
b15f5f6f43
Fix some warnings and TODO's.
7 years ago
Sean Bowe
d616362884
Add `TestConstraintSystem`
7 years ago
Sean Bowe
bc19c76326
Change API to support constraint/variable annotation.
7 years ago
Sean Bowe
3bb6596507
Don't make u128-support a default feature anymore.
7 years ago
Sean Bowe
326996139e
Update to use the latest version of pairing library.
7 years ago
bmerge
5d9f77f5bf
Auto merge of #65 - ebfull:byteorder-version, r=ebfull
...
Use 1 for the byteorder crate's version.
7 years ago
Sean Bowe
342b94c76b
Use "1" for the byteorder crate's version.
7 years ago
bmerge
48044a853f
Auto merge of #64 - ebfull:bump-13, r=ebfull
...
Bump version to 0.13.0
After #58 and #63 are merged.
7 years ago
bmerge
364796d88c
Auto merge of #58 - ebfull:derive-clone, r=ebfull
...
Derive `Clone` for G1/G2 encodings.
AFAIK this will finally work on stable when the next version of Rust is released.
Closes #55
7 years ago
bmerge
30ae5d6313
Auto merge of #63 - ebfull:rand-unknown-exponent, r=ebfull
...
G1/G2 rand() should produce elements of unknown exponent.
Closes #60 .
7 years ago
Sean Bowe
39c25cd506
Bump version to 0.13.0
7 years ago
Sean Bowe
12b9606b9c
G1/G2 rand() should produce elements of unknown exponent.
7 years ago
bmerge
044256c2f7
Auto merge of #62 - mmaker:feature/scale_by_cofactor, r=ebfull
...
Add "scale_by_cofactor".
Add a function for Affine types that multiplies point by the cofactor of the
group. If the points are in the group, they'll thus end up in the
correct subgroup.
note: this patch is already being tested with previous unittests.
note: this patch raises warning for unused functions and consts.
7 years ago
Sean Bowe
65e50a9e5a
Allow `scale_by_cofactor` to be dead code temporarily.
7 years ago
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
60887521b6
Derive `Clone` for {G1|G2}{Uncompressed|Compressed}.
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