Commit Graph

53 Commits

Author SHA1 Message Date
Marek Kotewicz
a77972bf9a no_std for algebra and r1cs-core (#76) 2020-01-31 09:29:29 -08:00
ValarDragon
5e57ac5621 Fix blake2s table alighnments 2020-01-28 08:31:20 -08:00
François Garillot
df6e235445 Add badge from deps.rs 2020-01-27 19:57:25 -08:00
François Garillot
a4a8116f1d Update dependencies 2020-01-27 19:57:25 -08:00
François Garillot
b26867f267 Runs rustfmt on the repo 2020-01-27 11:44:23 -08:00
Pratyush Mishra
a3e1cd6cf2 Make libraries compile 2020-01-19 21:12:07 -08:00
Pratyush Mishra
762793ccbd Update Cargo.toml 2020-01-18 18:26:45 -08:00
Pratyush Mishra
40cf13b7b8 num_traits:: -> algebra:: 2020-01-18 18:26:45 -08:00
François Garillot
722a901ae7 [RFC] Convert identity functions in Field, Group, and {Projective,Affine}Curve traits with One/Zero traits from num_traits.
- contributes to #50,
- depends on #53 and builds on it,
- due to coherence & requirements of `num_traits::{Zero, One}` to implement `std::ops::Add<Self, ..>` and (resp.) `std::ops::Mul<Self, ..>`, I've had to replace the afferent `impl<'a, P: ..> (Add|Mul)<&'a Self> for Group(Affine|Projective)<P>` by direct implementations on `Self`,
- I did not have to fight the borrow checker for this conversion => I think this hints arithmetic operations are called in contexts where the operand is owned,
- hence should this end up on a merge track, we may want to open an issue to convert the `impl<'a, P:..> (Neg|Sub|..)<&'a Self> for ..<P>` trait usage to direct `impl<P:..> (Neg|Sub|..)<Self> for ..<P>`
- the `impl AddAssign for GroupAffine<P>` in curves/models/short_weierstrass_jacobian.rs is provided to fit trait bounds, and without any guarantee of suitability for any particular purpose
- and that, even though I don't think it's used.
2020-01-17 11:22:41 -08:00
Kobi Gurkan
b8a81b5dcb r1cs-std: makes extension field to_bits create namespaces for the individual elements 2020-01-16 09:54:50 -08:00
Pratyush Mishra
2a8974e442 Boolean conditional select 2019-12-18 06:35:57 +03:00
François Garillot
ab65b01478 Clean up a few loop bounds 2019-12-02 09:54:14 -08:00
François Garillot
f1d8b122fc Use operator syntax
eliminate a few redundant references
2019-12-02 09:54:14 -08:00
François Garillot
b42d5f8d36 Simplify a few "if" structures 2019-12-02 09:54:14 -08:00
François Garillot
53a51eb4dc Use built-in iteration functions more 2019-12-02 09:54:14 -08:00
François Garillot
c42c7dd98a Remove a few unnecessary clones 2019-12-02 09:54:14 -08:00
François Garillot
d71bc5a675 Prefer to return error rather than ? them,
avoid return when it cant be early (in a simple if-else)
2019-12-02 09:54:14 -08:00
François Garillot
10c6e85c1a Remove a few unnecessary .into_iter() explicit calls, and some cloning.
See https://rust-lang.github.io/rust-clippy/master/#explicit_into_iter_loop
2019-12-02 09:54:14 -08:00
Kobi Gurkan
581f3df55f Adds Bowe-Hopwood hash 2019-11-17 09:07:23 -08:00
Pratyush Mishra
19856bd9b6 Add Groth16 to Readme 2019-10-23 21:45:56 -07:00
Kobi Gurkan
da0de7c7f2 Adds license files as links 2019-10-21 18:57:39 -07:00
Kobi Gurkan
d292f637aa Update crypto-primitives/src/nizk/groth16/mod.rs
Co-Authored-By: Pratyush Mishra <pratyushmishra@berkeley.edu>
2019-10-21 18:57:39 -07:00
Kobi Gurkan
e3d2ff1c04 Update crypto-primitives/src/nizk/groth16/mod.rs
Co-Authored-By: Pratyush Mishra <pratyushmishra@berkeley.edu>
2019-10-21 18:57:39 -07:00
Kobi Gurkan
7c5271a212 Update crypto-primitives/src/nizk/groth16/mod.rs
Co-Authored-By: Pratyush Mishra <pratyushmishra@berkeley.edu>
2019-10-21 18:57:39 -07:00
Kobi Gurkan
fb87c421e7 Runs cargo fmt 2019-10-21 18:57:39 -07:00
Kobi Gurkan
98416f6b2e Adds Groth16 2019-10-21 18:57:39 -07:00
Pratyush Mishra
2a86b59138 Merkle Tree name refactors 2019-10-11 19:25:53 -07:00
Pratyush Mishra
25e35a25d0 Update README with new directory structure and publication information 2019-10-11 19:25:53 -07:00
Pratyush Mishra
42893ee3b6 Remove unused file 2019-10-11 19:25:53 -07:00
Pratyush Mishra
cb2ff3b412 Add ToConstraintField impls for some primitives 2019-10-11 19:25:53 -07:00
Pratyush Mishra
1b6f681cdb Fix Blake2s gadget test 2019-10-11 19:25:53 -07:00
Pratyush Mishra
d318e70dd3 Fix benches 2019-10-11 19:25:53 -07:00
Pratyush Mishra
a244e719d1 Initial commit to extract crypto-primitives to new crate 2019-10-11 19:25:53 -07:00
Pratyush Mishra
5a78e24e15 Update README.md 2019-09-17 16:32:25 -07:00
Pratyush Mishra
8ea084ddfc Upgrade rand to 0.7 (#33) 2019-09-17 16:30:42 -07:00
Pratyush Mishra
0a507b0a5f Upgrade ff-fft, gm17, and r1cs-std 2019-09-17 01:35:23 -07:00
Pratyush Mishra
bd723f9040 Initial commit 2019-09-16 23:06:37 -07:00
Pratyush Mishra
cfe2c8d29a Refactor FFT infrastructure (#28)
* Update API of EvaluationDomain

* Update gm17 to use new API

* Move fft infrastructure to its own crate

* Fix gm17 to work with ff-fft

* Refactor polynomial infrastructure

* Change .travis-yml to not compile in release and to not run DPC tests
2019-09-04 16:33:58 -07:00
Pratyush Mishra
8da2ea6250 Update README 2019-08-14 13:13:33 +03:00
Pratyush Mishra
b617d217a1 Move ConstraintVar to r1cs-core 2019-08-14 13:13:33 +03:00
Pratyush Mishra
c610ecbcc5 Update r1cs-std tests 2019-08-14 13:13:33 +03:00
Pratyush Mishra
e00d667330 Move snark-gadgets to r1cs-std 2019-08-14 13:13:33 +03:00
Pratyush Mishra
32151738b2 Move ConstraintSystem and related traits to own crate, and move gm17 to
own crate.
2019-08-14 13:13:33 +03:00
Pratyush Mishra
07ae71f8e4 Improve fixed and variable base MSMs 2019-08-10 12:46:28 +03:00
Pratyush Mishra
72949c302a Merge pull request #10 from kobigurk/fix/377_g2_generators_comments
Fixes comments for BLS12-377 G2 generators
2019-08-08 04:12:00 +03:00
Pratyush Mishra
be80fdc82f Merge branch 'master' into fix/377_g2_generators_comments 2019-08-08 04:07:42 +03:00
Pratyush Mishra
bb0cefb992 Update README 2019-08-06 22:03:43 +03:00
Howard Wu
8794a17d70 Merge branch 'master' of https://github.com/scipr-lab/zexe 2019-04-03 01:33:58 -07:00
Howard Wu
5a2df1aaba Update README 2019-04-03 01:32:28 -07:00
Howard Wu
de7656d021 Merge branch 'master' of https://github.com/scipr-lab/zexe 2019-04-03 00:03:52 -07:00