str4d
36db257e82
Merge pull request #464 from L-as/main
...
Fix compilation with rustc 1.57.0
2022-01-20 18:24:53 +00:00
Jack Grigg
f5a8c9dff9
Depend on `rand_core` instead of `rand`
...
All non-test code no longer depends on `OsRng`, instead requiring the
caller to provide it.
2022-01-20 16:27:35 +00:00
Las Safin
1613445cdb
Fix compilation with rustc 1.57.0
...
The type inference algorithm seems to have been simplified,
meaning that the combination of T::from(x.into()) doesn't work anymore.
In any case, the code was also incomprehensible to a human, as it's not clear
by which "route" it does the transformation. It took me a few minutes to
figure out it's a `u64`.
2022-01-20 16:24:33 +00:00
str4d
d57c530d99
Merge pull request #444 from zcash/more-pasta-prep
...
More preparations for `pasta_curves 0.3`
2022-01-03 13:26:51 +00:00
HAOYUatHZ
5a65c7b77b
fix typos
2021-12-29 15:00:32 +08:00
Jack Grigg
1556489a9f
Remove usage of `FieldExt::rand`
...
All APIs now take `R: RngCore` arguments instead of internally depending
on `rand::rngs::OsRng`.
2021-12-25 13:41:39 +00:00
Jack Grigg
9297a938ab
Remove `FieldExt::from_u64` usage from SHA-256 example
2021-12-25 13:34:36 +00:00
Carlos Pérez
8cedfe89de
Change to `Into<Column<Any>>` for pub API methods ( #416 )
...
Resolves : zcash/halo2#345
2021-12-15 17:05:31 +00:00
Jack Grigg
a62f9451d1
sha256: Fix `AssignedCell` `From` impls for `AssignedBits` and `Bits`
...
zcash/halo2#337 had been updated to account for `AssignedCell`, before
the change to simplify its bounds was made. `AssignedCell` now requires
the `From` impls to take `&VR`.
2021-12-03 02:53:14 +00:00
therealyingtong
620b4a8b9c
sha256: Update to use new AssignedCell API.
2021-11-28 13:42:10 -05:00
therealyingtong
b805f85f9f
sha256: Update Error::SynthesisError -> Error::Synthesis
2021-11-27 10:22:52 -05:00
therealyingtong
be1c0c080f
Introduce AssignedBits<LEN> type.
2021-11-27 10:22:52 -05:00
therealyingtong
b9230861f7
Introduce RoundIdx enum instead of using i32.
...
This is a more secure way to distinguish the initial round from
the main rounds.
2021-11-27 10:22:52 -05:00
therealyingtong
78e6e9f695
Use AssignedCell for CellValue{16,32}.
2021-11-27 10:22:52 -05:00
therealyingtong
0443740895
sha256: Replace fixed columns with selectors.
2021-11-27 10:22:52 -05:00
therealyingtong
e1c132d664
sha256: Use assign_table() API for lookup table.
2021-11-27 10:22:52 -05:00
therealyingtong
ee5bc8184a
Remove unwrap()s in synthesis.
2021-11-27 10:22:52 -05:00
therealyingtong
66268cf192
Update sha256 example to work with new API
2021-11-27 10:22:52 -05:00
Jack Grigg
0f0dd8a26c
Allow multiple polynomial constraints per gate
...
This enables a gate such as ECC complete addition to define its
constraints in terms of a common set of queried columns.
2021-05-27 15:01:46 +01:00
Jack Grigg
353a07cef1
`ConstraintSystem::lookup`: Move lookup queries into a closure
...
This matches `ConstraintSystem::create_gate`.
At the same time, we bind the input and table expressions together as a
"table map" by requiring the closure to return a vector of tuples. This
ensures they are always the same length.
2021-05-27 00:53:31 +01:00
str4d
d62afb19ac
Merge pull request #256 from zcash/fix-sha256-chip-config
...
Fix `sha256` example for new config abstraction
2021-05-26 23:01:19 +01:00
Jack Grigg
80993da1e6
cargo fmt
2021-05-26 22:52:03 +01:00
str4d
da465bb718
examples: Remove some unnecessary clones
2021-05-26 22:49:18 +01:00
ebfull
870a2f1e8a
Merge pull request #242 from zcash/challenge-space
...
Add support for full-field challenge space
2021-05-24 11:11:30 -06:00
therealyingtong
fe2ab0bc7b
Fix SHA256 example
2021-05-14 21:20:53 +08:00
therealyingtong
502f0c85dc
Input as associated type on EncodedChallenge
...
Use Input as an associated type instead of a type parameter, to
reduce infection
Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2021-05-07 22:21:54 +08:00
therealyingtong
6f199d3b2f
[tmp] Block quote SHA256 example
2021-05-04 11:14:32 +08:00
therealyingtong
32f011d52d
Replace ChallengeSpace with EncodedChallenge API
...
Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2021-05-01 09:30:08 +08:00
therealyingtong
cd3cc543cf
Update examples and tests
2021-04-23 19:18:41 +08:00
therealyingtong
03da010d6a
[tmp] Comment out sha256 example
2021-04-23 17:40:43 +08:00
Jack Grigg
a688c8b03d
sha256: Fix / silence lints
2021-02-25 20:34:07 +00:00
Jack Grigg
e41fd7ca12
Move SHA-256 gadget and chip into examples
2021-02-25 20:01:44 +00:00