William Lin
2432ff4f88
Implement ToConstraintFieldGadget for Vec<UInt8> ( #36 )
* Implement ToConstraintFieldGadget for Vec<UInt8>
* Add documentation and implementation for slice
* Update documentation
4 years ago
Pratyush Mishra
0fd45d3d83
Reduce allocations in `UInt`s
4 years ago
Nirvan Tyagi
77dfd7dac6
'cargo +stable fmt'
4 years ago
Nirvan Tyagi
45a4c3b326
'cargo fmt'
4 years ago
Nirvan Tyagi
957ac48da4
Apply suggestions from code review
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
4 years ago
Nirvan Tyagi
0abb3a7dfe
CondSelectGadget for UInts
4 years ago
Pratyush Mishra
636f93a3e5
Update to `arkworks` libraries ( #3 )
Co-authored-by: Nicholas Ward <npward@berkeley.edu>
4 years ago
Pratyush Mishra
99e489cac7
`R1CSVar`: `Option::None` -> `ConstraintSystemRef::None` ( #281 )
4 years ago
Pratyush Mishra
13332bcc1d
Add doctests for `Boolean` and `UInt8`.
4 years ago
Pratyush Mishra
370fbcdd3b
Document `r1cs-std`
4 years ago
Pratyush Mishra
5e00793999
Switch to `tracing`-based constraint debugging
4 years ago
Pratyush Mishra
6cca9327be
Refactor bit iteration infrastructure:
* `to_bits` -> `to_bits_le`
* `BitIterator` -> `BitIteratorLE` + `BitIteratorBE`
* `found_one`/`seen_one` -> `BitIteratorBE::without_leading_zeros`
4 years ago
Pratyush Mishra
7b0f71a10e
Refactor `bit` variables in `r1cs-std`
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
5 years ago
Pratyush Mishra
33a9da08f8
Switch to `stable` cargo formatting options
5 years ago
Pratyush Mishra
8bf042a029
Refactor `algebra` API, split into `algebra` and `algebra-core`. ( #100 )
5 years ago
Marek Kotewicz
9621bd34a4
r1cs-std works with no-std ( #92 )
5 years ago
François Garillot
b42d5f8d36
Simplify a few "if" structures
5 years ago
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
5 years ago
Kobi Gurkan
581f3df55f
Adds Bowe-Hopwood hash
5 years ago
Pratyush Mishra
0a507b0a5f
Upgrade ff-fft, gm17, and r1cs-std
5 years ago
Pratyush Mishra
c610ecbcc5
Update r1cs-std tests
5 years ago
Pratyush Mishra
e00d667330
Move snark-gadgets to r1cs-std
5 years ago