Commit Graph

168 Commits

Author SHA1 Message Date
Pratyush Mishra
636f93a3e5 Update to arkworks libraries (#3)
Co-authored-by: Nicholas Ward <npward@berkeley.edu>
2020-10-19 11:07:59 -07:00
Pratyush Mishra
cf4301cb75 Update workspace and dependency paths 2020-09-18 16:09:13 -07:00
oblivious-app
d087166c51 add to_bits_be 2020-09-18 08:40:34 -07:00
Pratyush Mishra
2a8ee871d8 Exclude benches from tests 2020-09-16 23:59:23 -07:00
Pratyush Mishra
99e489cac7 R1CSVar: Option::None -> ConstraintSystemRef::None (#281) 2020-09-16 23:09:41 -07:00
Pratyush Mishra
13332bcc1d Add doctests for Boolean and UInt8. 2020-09-16 22:06:50 -07:00
Pratyush Mishra
3a18ecee0d Add examples and doctests for instantiated curves 2020-09-16 22:06:50 -07:00
Pratyush Mishra
370fbcdd3b Document r1cs-std 2020-09-16 22:06:50 -07:00
Weikeng Chen
c21d0b2796 Add ToConstraintFieldGadget (#278) 2020-09-14 21:56:51 -07:00
Pratyush Mishra
40ce981801 Fix integer conversions and log2 2020-09-12 01:39:23 -07:00
Pratyush Mishra
5e00793999 Switch to tracing-based constraint debugging 2020-09-11 21:54:44 -07:00
Pratyush Mishra
e22ab36f7e Fix nits 2020-09-11 16:22:04 -07:00
Pratyush Mishra
d2d1b61d08 Refactor NIZK/MT verification to return a bit 2020-09-11 16:22:04 -07:00
Pratyush Mishra
6cca9327be Refactor bit iteration infrastructure:
* `to_bits` -> `to_bits_le`
* `BitIterator` -> `BitIteratorLE` + `BitIteratorBE`
* `found_one`/`seen_one` -> `BitIteratorBE::without_leading_zeros`
2020-09-11 16:22:04 -07:00
Weikeng Chen
bce788419f Export impl_bounded_ops
This would be necessary if, in another crate, one wants to implement operators.
2020-09-11 16:22:04 -07:00
Pratyush Mishra
3bb3697c13 Update crypto-primitives and their contraints. 2020-09-11 16:22:04 -07:00
Pratyush Mishra
f575af4da1 Update Cargo.toml in r1cs-std and delete useless ConstraintSystems 2020-09-11 16:22:04 -07:00
Pratyush Mishra
50388bdc22 Update concrete curves in r1cs-std. 2020-09-11 16:22:04 -07:00
Pratyush Mishra
26953045d4 Update pairings in r1cs-std. 2020-09-11 16:22:04 -07:00
Pratyush Mishra
5e65926a5e Update curve variables in r1cs-std. 2020-09-11 16:22:04 -07:00
Pratyush Mishra
8022b598fb Update field variables in r1cs-std 2020-09-11 16:22:04 -07:00
Pratyush Mishra
202ef3204d Refactor variable traits in r1cs-std. 2020-09-11 16:22:04 -07:00
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