Sergey Vasilyev
0b87c84cdd
Merkle tree panics when there's a single leaf - fix
4 years ago
Sergey Vasilyev
4e0d92a6ec
Merkle tree fails to compute the root when there's no need in dummy nodes - fix
4 years ago
Sergey Vasilyev
97ca70b854
Merkle tree panics when there's a single leaf - test
4 years ago
Sergey Vasilyev
f4e2039d61
Merkle tree fails to compute the root when there's no need in dummy nodes - test
4 years ago
Georgios Konstantopoulos
ea2adb4f7f
fix(fp-cmp): use enforce unchecked in enforce unchecked function
4 years ago
Pratyush Mishra
cc534494ec
Add x86_64 asm codegen for PrimeField mul and square ( #176 )
4 years ago
Pratyush Mishra
04267f48a2
Merge remote-tracking branch 'upstream/master' into inline-asm
4 years ago
Pratyush Mishra
11e689ddc0
Clean up features, and make nightly detection robust
4 years ago
jon-chuang
95fbfe06f6
Merge branch 'master' into inline-asm
4 years ago
Pascal Berrang
3708a444a2
Give Travis more time
4 years ago
Pascal Berrang
9455f00c01
Add benchmark for mixed-radix and radix-2 FFT resembling the Groth16 operations.
4 years ago
Pascal Berrang
13b9c6c6fe
Split FpParameters/PrimeField and add FFT related traits
4 years ago
jon-chuang
b1f4c50fd8
Merge branch 'master' into inline-asm
4 years ago
Bruno França
bbb7d75ec8
Implement `conditional_check_verify` for `NIZK`s ( #195 )
* Implement `ToBitsGadget` for `UInt8` and `Vec<UInt8>`
* Add `kary_or` function to `Boolean`.
4 years ago
jon-chuang
535f93d378
--emit=asm seemed to be hurting performance significantly... So lets not recommend it for now.
4 years ago
jon-chuang
a919e8658c
update readme
4 years ago
jon-chuang
0b85f5cfa1
update readme
4 years ago
jon-chuang
4e85a68d0f
update readme
4 years ago
jon-chuang
33583be17a
more readme edits
4 years ago
jon-chuang
2d0f2943e0
More detailed readme instructions
4 years ago
jon-chuang
60ebc0d907
readme asm instructions
4 years ago
Kobi Gurkan
5cc094be6b
Adds alloc_constant to AllocGadget ( #189 )
* adds alloc constant to AllocGadget
* fmt
* fmt
* more alloc constant impls
* fmt
* even more impls
* fixes type
* fixes alloc_constant in gm17
* uses alloc_constant from field gadget in group gadgets
* fmt
* handle most comments
4 years ago
Pascal Berrang
c486e15f0e
Add test cases for COFACTOR and generalize SW tests
4 years ago
Pascal Berrang
d4a2d31d07
Fix Vec imports for no_std
4 years ago
Pratyush Mishra
5659b0d9ea
Fix CI to test more code in `no_std`
4 years ago
jon-chuang
0427d2a678
Merge branch 'master' into inline-asm
4 years ago
Pratyush Mishra
33a9da08f8
Switch to `stable` cargo formatting options
4 years ago
Pratyush Mishra
456f30a849
Fix #172 and improve squaring code for deg-3 extensions ( #174 )
4 years ago
Pascal Berrang
8631f883c4
MNT4/6 curves and recursive SNARKs ( #150 )
* Add mnt6_753 curve
Generalize mnt6 curve model
* Add mnt4 curves
* Use resampled generators
* Calculate correct G2 cofactors
* Add fields to r1cs-std
* Add pairings
* Improve reusing of Fq/Fr among MNT curves
* Add instantiations of curves
Fix Fp6_2over3
Rebase code to current master
* Add test for recursive NIZK proof verification
* Address comments in PR
* Improve test case and port to GM17
Also fix a minor bug in to_field_vec
4 years ago
Pratyush Mishra
81f3105a91
Fix MerkleTree leaf index calculation
4 years ago
Kobi Gurkan
c58fc31119
fmt and docs
4 years ago
Kobi Gurkan
ded3d687cc
removes unused struct + fmt
4 years ago
Kobi Gurkan
8cd0999431
moves cmp to be under FpGadget
4 years ago
Kobi Gurkan
60058b2186
changes test name
4 years ago
Kobi Gurkan
bd86eb4563
uses core instead of std
4 years ago
Kobi Gurkan
b0f266de1e
fmt
4 years ago
Kobi Gurkan
7ed38fe4a6
makes API cmp-like
4 years ago
Kobi Gurkan
ccbb5ef553
adds a smaller than gadget
4 years ago
Weikeng Chen
33f7d3988f
Update uint64.rs
4 years ago
weikeng
a205f191f7
used AllocGadget for UInt64
4 years ago
Georgios Konstantopoulos
0ffa409ec1
Apply suggestions from code review
Co-Authored-By: Pratyush Mishra <pratyushmishra@berkeley.edu>
4 years ago
Georgios Konstantopoulos
f4e030793c
test: ensure the Counter and the System match
4 years ago
Georgios Konstantopoulos
695df979b5
chore: add helper
4 years ago
Georgios Konstantopoulos
951a6226c9
feat: TestConstraintCounter
4 years ago
Pratyush Mishra
b1913a9ca7
Change default `to_bits` and `to_bytes` functions to the safe versions
4 years ago
dependabot-preview[bot]
b24e705527
Update `derivative` requirement from 1 to 2 ( #140 )
4 years ago
dependabot-preview[bot]
9ca5a94f2e
Update digest requirement from 0.7 to 0.8 ( #141 )
* Update `digest` and `blake2` requirement from 0.7 to 0.8
Updates the requirements on [digest](https://github.com/RustCrypto/traits ) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/digest_v0.7.2...digest-v0.8.1 )
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
4 years ago
ValarDragon
20af44e3c9
fix fmt check
4 years ago
ValarDragon
23c6bb4bd0
Rename arguments to CondSelectGadget for code clarity
4 years ago
Weikeng Chen
6c0ee7ffbc
Follow the nightly's suggested fmt change
4 years ago