Commit Graph

146 Commits

Author SHA1 Message Date
Pratyush Mishra
7b0f71a10e Refactor bit variables in r1cs-std 2020-09-11 16:22:04 -07:00
Pratyush Mishra
ecee4d7059 Make CI test all-features 2020-09-11 16:20:52 -07:00
Pratyush Mishra
04db0504ac (cargo-release) start next development iteration 0.1.1-alpha.0 2020-09-10 15:41:37 -07:00
Pratyush Mishra
6c90710e09 (cargo-release) start next development iteration 0.1.1-alpha.0 2020-09-10 15:41:37 -07:00
Pratyush Mishra
37d79e20a7 (cargo-release) start next development iteration 0.1.1-alpha.0 2020-09-10 15:41:37 -07:00
Weikeng Chen
61c70ed644 Prepare Zexe for recursion (#241)
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2020-07-20 15:42:25 -07:00
Youssef El Housni
36305e7247 Implement ed_on_bn254 curve (baby-jubjub) (#230) 2020-07-01 12:25:02 -07:00
Dev Ojha
a83914af50 Add mul_by_inverse to FieldGadget (#227) 2020-06-19 12:45:51 -07:00
Dev Ojha
75439b9b4d Add constant folding to FpGadget<F> (#226) 2020-06-19 11:43:25 -07:00
Weikeng Chen
885e9d7bad Add constraints for Edwards curves over MNT4 (#221) 2020-06-14 21:51:56 -07:00
Pratyush Mishra
9391b1fd04 Rename to ed_on 2020-06-12 18:37:04 -07:00
Pratyush Mishra
7a0177e8c7 Re-export edwards_on_cp6_782 as edwards_on_bw6_761 2020-06-12 18:37:04 -07:00
Pratyush Mishra
40e89254e0 Fix no-std compilation 2020-06-12 18:37:04 -07:00
Pratyush Mishra
d5e7d8bb36 Compilation fix 2020-06-12 18:37:04 -07:00
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