Commit Graph

815 Commits

Author SHA1 Message Date
therealyingtong d7b88addd9 [book] Point compression background section 2021-03-30 04:29:35 +08:00
therealyingtong c3c80cd0a1 [book] Point addition background section 2021-03-29 23:08:56 +08:00
Daira Hopwood 532e5eb11c Fixed columns are not necessarily selector columns.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-03-24 20:14:38 +00:00
Daira Hopwood 25616616e3 "Copy constraints" -> "equality constraints". (There were no other uses of this terminology.)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-03-24 20:14:12 +00:00
Daira Hopwood 2f34318510 Fix mistaken use of "extended domain" in the permutation argument section, and improve wording.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-03-24 20:13:11 +00:00
Daira Hopwood 8fbf20beae The algorithm for constructing the permutation needs to update the sizes array when merging cycles.
Thanks to @porcuquine for spotting this. (The implementation is correct.)

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-03-24 20:06:09 +00:00
str4d b079624ea7
Merge pull request #228 from zcash/pasta_curves-crate
Migrate to the pasta_curves crate
2021-03-07 08:42:44 +13:00
str4d eb97241e47
Merge pull request #229 from zcash/remove-metrics
Remove metrics crate and inline modelling
2021-03-05 11:52:47 +13:00
Jack Grigg 3a85f2269f Pin a specific pasta_curves revision 2021-03-04 22:45:11 +00:00
str4d cb5769e229
Merge pull request #216 from honeywest/fix-cargo
add rust toolchain file
2021-03-05 03:29:55 +13:00
str4d 655df84682
Merge pull request #217 from honeywest/fix-cargo-rep
fix cargo repository error
2021-03-05 03:28:21 +13:00
Jack Grigg a130edaade Remove metrics crate and inline modelling
It is causing problems in (some) downstream crates, and we won't want
these annotations in the codebase anyway if a downstream crate is
collecting metrics. We'll be replacing this with the cost model binary
in https://github.com/zcash/halo2/pull/225 shortly.
2021-03-03 23:13:34 +00:00
Jack Grigg 7774dd8235 Migrate to the pasta_curves crate 2021-03-03 18:48:45 +00:00
ebfull ec38a06fbf
Merge pull request #226 from zcash/fix-curve-random
Fix Group::random implementation for Pallas and Vesta
2021-03-02 15:17:26 -07:00
str4d 5e05845936
Remove unnecessary identity check from Group::random impl
Co-authored-by: ebfull <ewillbefull@gmail.com>
2021-03-03 11:11:13 +13:00
Jack Grigg 62e50ae6bd Fix Group::random implementation for Pallas and Vesta
Also removes the broken CurveAffine::from_bytes_wide and unused
CurveAffine::to_bytes_wide methods.
2021-03-02 21:29:59 +00:00
ebfull 8122ef3d5d
Merge pull request #223 from zcash/cofactor-group
impl group::cofactor::CofactorGroup for Pallas and Vesta
2021-03-02 08:32:28 -07:00
Jack Grigg 0a4db20d82 impl group::cofactor::CofactorGroup for Pallas and Vesta
Prime-order groups can be treated as a group with a cofactor of 1,
allowing them to be used in cofactor-aware protocols like RedDSA.
2021-03-01 20:27:34 +00:00
str4d 63083e418c
Merge pull request #218 from zcash/minor-cleanups
Minor cleanups
2021-02-27 07:00:59 +13:00
Sean Bowe 504203654d
Disable clippy::{many_single_char_names,op_ref} lint in integration test. 2021-02-26 10:42:43 -07:00
Sean Bowe cb59a40ff8
Move PLONK integration tests into the tests subdirectory. 2021-02-26 08:22:19 -07:00
Sean Bowe ef86a936ff
Remove print statements from tests. 2021-02-26 08:22:13 -07:00
Sean Bowe d92b1c4fb9
Relocate computation of the degree of the constraint system to the ConstraintSystem struct. 2021-02-26 08:22:05 -07:00
honeywest af84f60946 fix cargo repository error 2021-02-26 18:23:55 +08:00
honeywest 67e9f84d21 add rust toolchain file 2021-02-26 16:35:52 +08:00
ebfull 4e7d4a0f64
Merge pull request #214 from zcash/sha-256
Example SHA-256 chip
2021-02-25 14:05:18 -07:00
Jack Grigg a688c8b03d sha256: Fix / silence lints 2021-02-25 20:34:07 +00:00
Jack Grigg 2f21135e68 book: Note that none of the documented gadgets have been reviewed 2021-02-25 20:05:19 +00:00
Jack Grigg e41fd7ca12 Move SHA-256 gadget and chip into examples 2021-02-25 20:01:44 +00:00
Jack Grigg c64346467b Add Table16 circuit layout example 2021-02-25 20:01:44 +00:00
Jack Grigg 3fa36d7a60 Add test for circuit_dot_graph using SHA-256 2021-02-25 20:01:44 +00:00
therealyingtong 5f4a08898e SHA-256 benchmarks 2021-02-25 20:01:44 +00:00
therealyingtong a5ac5b3ed3 Add Compression test 2021-02-25 20:01:44 +00:00
therealyingtong 46b5ddcc68 Compression subregion_digest assignments 2021-02-25 20:01:44 +00:00
therealyingtong b47b2e436b Compression subregion_main assignments 2021-02-25 20:01:44 +00:00
therealyingtong 05c6ebd42d Compression subregion_initial assignments 2021-02-25 20:01:44 +00:00
therealyingtong 4d7c717107 Add utils for Compression assignments 2021-02-25 20:01:44 +00:00
therealyingtong 3778266eeb Add Compression gates 2021-02-25 20:01:44 +00:00
therealyingtong 5951ae6516 Add Compression 2021-02-25 20:01:44 +00:00
therealyingtong f6af03c953 Add MessageSchedule test 2021-02-25 20:01:44 +00:00
therealyingtong 6f703d5cc3 MessageSchedule subregion3 assignments 2021-02-25 20:01:44 +00:00
therealyingtong 931d55a5bb MessageSchedule subregion2 assignments 2021-02-25 20:01:44 +00:00
therealyingtong 65f7707a28 MessageSchedule subregion1 assignments 2021-02-25 20:01:44 +00:00
therealyingtong 88379fa62f Add MessageSchedule gates and assign fixed column cells 2021-02-25 20:01:44 +00:00
therealyingtong fc4f3576a0 Add utils for common MessageSchedule assignments 2021-02-25 20:01:44 +00:00
therealyingtong feedffa2b2 Add MessageSchedule 2021-02-25 20:01:44 +00:00
therealyingtong 570f90e4ee SHA-256 chip that uses a 2^16 lookup table
Co-authored-by: Jack Grigg <jack@electriccoin.co>
2021-02-25 20:01:44 +00:00
str4d e33fe2cb36
Merge pull request #213 from zcash/remove-ecc-gadget
Remove ECC gadgets and instructions
2021-02-26 07:30:19 +13:00
Jack Grigg b4feff8272 Remove ECC gadgets and instructions
Migrated to the orchard crate:
https://github.com/zcash/orchard/pull/22
2021-02-25 18:17:50 +00:00
str4d ecfd1dea91
Merge pull request #208 from zcash/selector-type
Add a Selector type
2021-02-26 05:01:32 +13:00