Marcin
9bbf909175
bump relations & r1cs-std dependency after their alpha version is out
2 years ago
Marcin
15c0777ae2
Version 0.4.0-alpha
2 years ago
Weikeng Chen
99831650f8
Prepared G2 consistency test ( #70 )
* add the g2 check
* fmt
* fix
* fix
* fix
* fix
* changelog
* test macos for curve tests
* use macos only for mnt6-753
* fix
* fix name consistency
* adjust the order
* mnt4 753
* fix
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
db03d405b5
Add the curve25519 curve ( #124 )
* add ed25519 curve
* changelog
* curve info
* fix
* edit
* update
* add more explanation
* Update curve25519/src/curves/mod.rs
* Update curve25519/src/curves/mod.rs
* fixed the comment
* Update curve25519/src/curves/mod.rs
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
a7d266f73d
Add the ed25519 curve ( #121 )
* add ed25519 curve
* changelog
* curve info
* fix
* cleanup the script
* Update ed25519/src/curves/mod.rs
* Update ed25519/src/curves/mod.rs
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
5d6d31d213
Fix the location of BitIteratorBE ( #132 )
* fix
* fix
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
mmagician
df39c78a5b
Update changelog ( #131 )
2 years ago
mmagician
138b23f2fa
Zcash-style serialization for BLS12-381 ( #129 )
Co-authored-by: kevaundray <37423678+kevaundray@users.noreply.github.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2 years ago
mmagician
4bcf87de22
Faster cofactor clearing for G1 & G2 of bls12-381 + benchmarking ( #103 )
2 years ago
Pratyush Mishra
efefa209d6
Fix mul-by-non-residue for bw6::fq3
2 years ago
Pratyush Mishra
1833cbfb29
Tweaks
2 years ago
Pratyush Mishra
f43d59c958
Rename
2 years ago
Pratyush Mishra
68f500da01
Optimizations to field and curve arithmetic
2 years ago
Pratyush Mishra
363426c1d4
Update to new benchmarking framework ( #126 )
2 years ago
Pratyush Mishra
55a092a6c7
`is_identity` -> `is_zero` ( #125 )
2 years ago
Weikeng Chen
f74378c017
Add serialization for CP6-782 ( #120 )
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
3af6ec17d6
Fix Bandersnatch parameters and the constraint tests ( #119 )
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
dc555882cd
Fix the remaining curve and field tests ( #118 )
* push
* push
* cargo ready
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
2 years ago
Weikeng Chen
3c4c67f114
Sync with the recent changes in ark-algebra on pairing and testing ( #116 )
* Fix another typo in the Jubjub curve comment
* fix
* progress
* get_point_from_x_unchecked
* fix
* soft link
* Fix Bandersnatch
* Fix Edwards form of Bandersnatch
* Actually fix ed_on_bls12_381_bandersnatch/src/curves/mod.rs
* fix
* fix
* curve-benches
* fix the last mul_by_a; fmt
Co-authored-by: onewayfunc <onewayfunc@gmail.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2 years ago
mmagician
42289245a6
Replace `ATE_LOOP_COUNT` with its 2-NAF for MNT curves ( #107 )
* Replace ATE_LOOP_COUNT by its 2-NAF
* Add constant references
* Apply suggestions from code review
Co-authored-by: Weikeng Chen <w.k@berkeley.edu>
2 years ago
Weikeng Chen
b433045f4d
Fix a typo in the Jubjub curve comment ( #114 )
2 years ago
Weikeng Chen
52577f93ba
Last PR to get the curve tests to work ( #113 )
2 years ago
Weikeng Chen
6d94362894
Let `ark-curve-constraint-tests` work with latest arkworks-rs algebra ( #112 )
2 years ago
Weikeng Chen
435de9fc36
Let `cargo build` work again for the new arkworks-rs algebra ( #111 )
2 years ago
Pratyush Mishra
e75546313a
Fix benchmarks and fix accidental renaming of Pallas/Vesta ( #108 )
2 years ago
kevaundray
67d5a8582e
Document Bandersnatch as an incomplete twisted Edwards curve ( #85 )
2 years ago
Marcin
93e64df895
Catch up with algebra ( #106 )
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2 years ago
Marcin
76579d0fbb
`QUADRATIC_NONRESIDUE` is never used, remove ( #104 )
* `QUADRATIC_NONRESIDUE` is never used, remove
* Update CHANGELOG.md
* Remove unused imports
2 years ago
Marcin
9a89ea8adc
Pull ark-std from latest master ( #100 )
2 years ago
Pratyush Mishra
5a1e16e2b7
Fix benchmark imports ( #99 )
2 years ago
Pratyush Mishra
1551d6d76c
Upgrade to work with latest `ark-ff` ( #95 )
Co-authored-by: Sun <huachuang20@gmail.com>
2 years ago
Marcin
d0dc200f22
Sqrt fq2 bls12 381 regression ( #89 )
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2 years ago
Marcin
6a5cf1d84a
`BigInt` fixes corresponding to algebra#372
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2 years ago
Pratyush Mishra
d1ced15cc2
Upgrade for algebra/365 ( #92 )
* Upgrade for algebra/365
* Merge fix
* Fix
3 years ago
Yuncong Hu
677b4ae751
Simplify the field and curve tests using macros ( #90 )
* Simplify the field and curve tests using macros
* minor
* remove redundant code
Co-authored-by: weikeng <w.k@berkeley.edu>
3 years ago
Michael Rosenberg
c5547905d0
Fixed curve-bench compile error ( #83 )
* Fixed benchmarking compile error
* Updated CHANGELOG
* patch `algebra-test-templates` due to breaking changes since the last release
Co-authored-by: Marcin Górny <marcin.gorny.94@protonmail.com>
3 years ago
Popog
f1e36c5bed
Documentation provides incorrect calculation ( #81 )
3 years ago
Weikeng Chen
3a0f858adb
Revise the version number of Bandersnatch ( #80 )
3 years ago
zhenfei
461e4190b1
adding SW parameters for `Bandersnatch` curve ( #67 )
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
3 years ago
zhenfei
5fe1862c9a
Twisted Edwards parameters for BLS12-377 ( #76 )
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
3 years ago
Simon Masson
2118e14b6a
Use Scott's subgroup membership tests for `G1` and `G2` of BLS12-381. ( #74 )
* implementation of the fast subgroup check for bls12_381
* add a bench
* subgroup check for g1
* subgroup check modifications
* remove useless test
* fmt
* need the last version of arkworks/algebra
* remove Parameters0
* using projective points is more efficient
* use of projective coordinates in G2
* fmt
* documentation on the constants and the psi function
* references for algorithms of eprint 2021/1130
* fmt
* sed ^ **
* minor improvement
* fmt
* fix Cargo toml
* nits
* some cleanup for g1
* add the beta test back
* fmt
* g2
* changelog
* add a note on the Cargo.toml
* nits
* avoid variable name conflicts
* add the early-out optimization
Co-authored-by: weikeng <w.k@berkeley.edu>
3 years ago
Weikeng Chen
b5c2d8eba3
Fix a comment on Bandersnatch's TEModelParameters ( #65 )
Pratyush noticed a comment regarding COEFF_A has not been updated. This PR fixes so.
3 years ago
zhenfei
129795aa4c
Implement the Bandersnatch curve ( #64 )
* impl bandersnatch
* clean up
* update changelog
* Relocate the readme so they show up in the doc
* Delete README.md
* Relocate the changelog entry
* rename & fmt
Co-authored-by: Weikeng Chen <w.k@berkeley.edu>
3 years ago
George Gkitsas
a9cb9bfcb2
Fix incorrect repository links in `Cargo.toml` files ( #63 )
* fixes repository in cargo files
* lint fixes
3 years ago
Weikeng Chen
d2c998736e
Release v0.3.0 ( #62 )
* release
* update CHANGELOG.md
3 years ago
Alex Ozdemir
ada1fdac07
Fix Bls12-377 scalar group generator ( #60 )
* Fix Bls12-377 scalar group generator
Previously we used 11 as a generator, which has order (p-1)/35.
Now we use 22, which has the right order.
Fixed the two-adic root of unity in accordance with the new generator.
fixes #47
* add the CHANGE LOG
Co-authored-by: weikeng <w.k@berkeley.edu>
3 years ago
Weikeng Chen
8c795ec0cf
Update the documentation of BN254's field parameters ( #59 )
3 years ago
Daira Hopwood
9d232a7dcd
Fix a comment describing BN254. ( #55 )
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
3 years ago
Daira Hopwood
4d6c49640c
Add benchmarks for Pallas and Vesta curves. ( #53 )
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
3 years ago
Pratyush Mishra
880a010f5e
Reduce CI time by parallelizing per-curve tests ( #52 )
3 years ago