Commit Graph

132 Commits

Author SHA1 Message Date
Pratyush Mishra
1959a3de63 Rename curves 2020-06-12 18:37:04 -07:00
Pratyush Mishra
07e8c79d79 Update README with new badge 2020-06-10 10:23:15 -07:00
Pratyush Mishra
bbf732980f Move to github actions 2020-06-10 10:23:15 -07:00
ValarDragon
349407faef Speed up exp_by_const 2020-06-09 16:07:45 -07:00
ValarDragon
c555535605 Improve invalid namespace error msg 2020-06-09 11:08:46 -07:00
Pratyush Mishra
75c55f7bee Change from_repr to output Option<Self> 2020-05-29 00:34:22 -07:00
Georgios Konstantopoulos
ecf863f541 expose function which enforces a <= (p-1)/2 2020-05-07 08:48:16 -07:00
Sergey Vasilyev
67196d8371 Formatting fix 2020-05-06 18:07:47 -07:00
Sergey Vasilyev
0b87c84cdd Merkle tree panics when there's a single leaf - fix 2020-05-06 18:07:47 -07:00
Sergey Vasilyev
4e0d92a6ec Merkle tree fails to compute the root when there's no need in dummy nodes - fix 2020-05-06 18:07:47 -07:00
Sergey Vasilyev
97ca70b854 Merkle tree panics when there's a single leaf - test 2020-05-06 18:07:47 -07:00
Sergey Vasilyev
f4e2039d61 Merkle tree fails to compute the root when there's no need in dummy nodes - test 2020-05-06 18:07:47 -07:00
Georgios Konstantopoulos
ea2adb4f7f fix(fp-cmp): use enforce unchecked in enforce unchecked function 2020-05-06 09:10:28 -07:00
Pratyush Mishra
cc534494ec Add x86_64 asm codegen for PrimeField mul and square (#176) 2020-05-04 06:05:22 -07:00
Pratyush Mishra
04267f48a2 Merge remote-tracking branch 'upstream/master' into inline-asm 2020-05-04 05:40:48 -07:00
Pratyush Mishra
11e689ddc0 Clean up features, and make nightly detection robust 2020-05-04 05:15:26 -07:00
jon-chuang
95fbfe06f6 Merge branch 'master' into inline-asm 2020-04-23 22:00:29 +08:00
Pascal Berrang
3708a444a2 Give Travis more time 2020-04-23 02:42:50 -07:00
Pascal Berrang
9455f00c01 Add benchmark for mixed-radix and radix-2 FFT resembling the Groth16 operations. 2020-04-23 02:42:50 -07:00
Pascal Berrang
13b9c6c6fe Split FpParameters/PrimeField and add FFT related traits 2020-04-23 02:42:50 -07:00
jon-chuang
b1f4c50fd8 Merge branch 'master' into inline-asm 2020-04-23 08:26:20 +08:00
Bruno França
bbb7d75ec8 Implement conditional_check_verify for NIZKs (#195)
* Implement `ToBitsGadget` for `UInt8` and `Vec<UInt8>`
* Add `kary_or` function to `Boolean`.
2020-04-22 13:30:33 -07:00
jon-chuang
535f93d378 --emit=asm seemed to be hurting performance significantly... So lets not recommend it for now. 2020-04-23 01:11:28 +08:00
jon-chuang
a919e8658c update readme 2020-04-22 23:35:34 +08:00
jon-chuang
0b85f5cfa1 update readme 2020-04-22 23:34:17 +08:00
jon-chuang
4e85a68d0f update readme 2020-04-22 23:33:40 +08:00
jon-chuang
33583be17a more readme edits 2020-04-22 17:14:40 +08:00
jon-chuang
2d0f2943e0 More detailed readme instructions 2020-04-22 17:10:08 +08:00
jon-chuang
60ebc0d907 readme asm instructions 2020-04-22 17:05:48 +08:00
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
2020-04-18 16:03:33 -07:00
Pascal Berrang
c486e15f0e Add test cases for COFACTOR and generalize SW tests 2020-04-09 11:04:50 -07:00
Pascal Berrang
d4a2d31d07 Fix Vec imports for no_std 2020-04-09 11:04:50 -07:00
Pratyush Mishra
5659b0d9ea Fix CI to test more code in no_std 2020-04-08 18:57:39 -07:00
jon-chuang
0427d2a678 Merge branch 'master' into inline-asm 2020-04-08 20:40:30 +08:00
Pratyush Mishra
33a9da08f8 Switch to stable cargo formatting options 2020-04-07 19:30:27 -07:00
Pratyush Mishra
456f30a849 Fix #172 and improve squaring code for deg-3 extensions (#174) 2020-04-07 19:29:54 -07:00
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
2020-04-04 10:50:46 -07:00
Pratyush Mishra
81f3105a91 Fix MerkleTree leaf index calculation 2020-04-02 08:53:31 -07:00
Kobi Gurkan
c58fc31119 fmt and docs 2020-03-30 01:42:20 -07:00
Kobi Gurkan
ded3d687cc removes unused struct + fmt 2020-03-30 01:42:20 -07:00
Kobi Gurkan
8cd0999431 moves cmp to be under FpGadget 2020-03-30 01:42:20 -07:00
Kobi Gurkan
60058b2186 changes test name 2020-03-30 01:42:20 -07:00
Kobi Gurkan
bd86eb4563 uses core instead of std 2020-03-30 01:42:20 -07:00
Kobi Gurkan
b0f266de1e fmt 2020-03-30 01:42:20 -07:00
Kobi Gurkan
7ed38fe4a6 makes API cmp-like 2020-03-30 01:42:20 -07:00
Kobi Gurkan
ccbb5ef553 adds a smaller than gadget 2020-03-30 01:42:20 -07:00
Weikeng Chen
33f7d3988f Update uint64.rs 2020-03-26 18:50:09 -07:00
weikeng
a205f191f7 used AllocGadget for UInt64 2020-03-26 18:50:09 -07:00
Georgios Konstantopoulos
0ffa409ec1 Apply suggestions from code review
Co-Authored-By: Pratyush Mishra <pratyushmishra@berkeley.edu>
2020-03-25 09:29:49 -07:00
Georgios Konstantopoulos
f4e030793c test: ensure the Counter and the System match 2020-03-25 09:29:49 -07:00