zhiqiangxu
49cd4eaa6f
fix a typo
2022-11-12 12:11:27 +08:00
Daira Hopwood
3abf14e273
Clarify overflow condition
2022-09-02 16:26:12 +01:00
Daira Hopwood
c7d645997d
Apply suggestions from code review
...
Co-authored-by: ying tong <yingtong@z.cash>
2022-09-02 16:23:04 +01:00
therealyingtong
6396a0ec19
[book] var-base-scalar-mul: Include general overflow check.
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 17:16:46 -07:00
Daira Hopwood
c11d527142
[book] WIP: full-width variable-base scalar mul allowing the scalar to be outside the base field.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 16:18:26 -07:00
ying tong
5cd5e140f4
[book] var-base-scalar-mul: Add missing closing parantheses
2022-08-18 17:00:07 -07:00
Daira Hopwood
5af2bd3bd7
[Book] Rename "polynomial degree bound" to "maximum constraint degree".
...
This is because "degree bound" is often defined to be exclusive.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-07 18:13:14 -04:00
Daira Hopwood
104101d0eb
[Book] Make the permutation diagram stand out against dark backgrounds.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-07 18:13:14 -04:00
ying tong
69a980ff40
[book] Add `U` to `BCMS` comparison table
2022-06-15 10:40:49 -04:00
Jack Grigg
c1007d8c23
halo2_gadgets: Add protocol rule links for the chip constraints
...
Part of zcash/zcash#3957 .
2022-05-25 22:41:04 +00:00
Jack Grigg
ac67b117ca
book: Document `EccChip` assumptions and general layout
2022-05-10 20:26:30 +00:00
Jack Grigg
ad51e4a2bd
book: Document var-mul constraints for complete addition and LSB
2022-05-10 20:26:30 +00:00
Jack Grigg
f57b93f8e0
book: Fix various small bugs and add some missing constraints
2022-05-10 20:26:30 +00:00
Jack Grigg
88e189eebb
book: Add page for witnessing ECC points
2022-05-10 00:20:00 +00:00
Jack Grigg
17cd222979
book: Add explicit constraints table for incomplete addition
2022-05-10 00:20:00 +00:00
Jack Grigg
144d082528
halo2_gadgets: Refactor complete addition constraints
...
We also fix several typos in the constraint analysis on the complete
addition book page, and adjust the constraints table for readability.
2022-05-10 00:20:00 +00:00
Jack Grigg
03697e2a7d
book: Rewrite Sinsemilla gadget page
...
The book now has enough detail for it to be obvious why there are
factors of 2 present in several equations.
2022-05-08 02:38:01 +00:00
Jack Grigg
7ea240dbdf
book: Rewrite `MerkleCRH` gadget page
...
The page now follows the pattern of other chip-specifying pages in how
it documents constraints (in particular, giving the specific form of the
constraint to match the implemented AST).
Additionally, a typo in the decomposition constraint for `left` has been
fixed (the implementation was correct).
2022-05-08 02:20:42 +00:00
Kris Nuttycombe
1791e693bb
Merge branch 'main' into main
2022-05-05 17:07:57 -06:00
Sean Bowe
1ea7aa1b89
Fix order of \epsilon bound.
2022-04-25 13:40:31 -06:00
Sean Bowe
05b8b77500
x -> x_3 rename in zero knowledge section.
2022-04-25 13:38:58 -06:00
Sean Bowe
d420b7825a
Remove redundant mention of blinding factors
2022-04-25 13:36:28 -06:00
Sean Bowe
b46848eaa8
Fix upper bound of \epsilon.
2022-04-25 13:34:42 -06:00
Sean Bowe
8e58245b75
Add draft of halo2 security proof to the formal protocol description
2022-04-25 11:59:29 -06:00
Daira Hopwood
66827f3df9
Merge pull request #544 from zcash/book-patch-vanishing
...
[book] Use more intuitive expression for vanishing poly degree
2022-04-22 16:46:39 +01:00
Daira Hopwood
84f5c26b7f
[book] Add description of selector combining optimization.
...
fixes #466
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-04-18 20:19:26 +01:00
ying tong
8cb9226670
[book] Use more intuitive expression for vanishing poly degree
2022-04-10 17:10:51 +02:00
ying tong
2194973aa8
[book] Correct typo in protocol description.
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-03-17 21:35:06 +08:00
Daira Hopwood
c5cdea1eb0
Merge pull request #487 from daira/book-improve-incomplete-addition
...
Improve the explanation of incomplete addition
2022-02-15 01:05:00 +00:00
Sean Bowe
a129490517
Minor changes
2022-02-10 08:08:20 -07:00
Sean Bowe
a4d3c328b9
halo2_proofs: rename variables for consistency
...
This changes variable names in the multiopen and commitment opening implementations
and the book's protocol description to keep names and indicies consistent with one
another.
Co-Authored-By: Jack Grigg <jack@electriccoin.co>
2022-02-09 13:37:50 -07:00
Daira Hopwood
c4bdab59e3
Improve the explanation of incomplete addition:
...
* use biimplication in the correctness argument to ensure both soundness and completeness;
* avoid introducing lambda at all; it's unnecessary and omitting it shortens the explanation.
Co-authored-by: Jack Grigg <str4d@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-02-03 22:06:05 +00:00
Jack Grigg
5202ec6eda
Integrate `halo2_gadgets` into the workspace
...
THe SHA-256 example gadget has been moved into the `halo2_gadgets` crate
behind an `unstable` feature flag.
2022-01-27 23:32:04 +00:00
Jack Grigg
7e9ced2eaa
Merge `halo2_gadgets` from zcash/orchard into halo2_gadgets-import
2022-01-27 23:08:35 +00:00
Jack Grigg
a2367abcaf
Migrate to `halo2_gadgets` crate in subdir
...
- The crate module structure from `orchard` has been flattened.
- The book pages we want to include in `halo2` have been moved to their
target location, to avoid any conflicts during the merge.
- Common files that already exist in zcash/halo2 have been removed.
2022-01-27 23:08:01 +00:00
Jack Grigg
c2866beb47
Delete Orchard-specific code, dependencies, and book pages
...
The tests do not compile as of this commit, due to Orchard-specific
constants being deleted, but everything else compiles.
Co-authored-by: ying tong <yingtong@z.cash>
2022-01-27 23:07:59 +00:00
Jack Grigg
3c6558f049
Move `halo2` code into `halo2_proofs` crate
2022-01-20 18:50:43 +00:00
str4d
408b617376
Merge pull request #397 from rex4539/typos
...
Fix typos
2021-12-31 14:14:34 +00:00
ying tong
2ab6e1b0d6
[book] Fix SHA256 interpolation polynomial
...
Closes #434
2021-12-23 22:07:09 +08:00
therealyingtong
e0a0a0d509
book: Introduce RangeCheck macro.
2021-11-30 09:30:43 -05:00
therealyingtong
303bdc3f65
Replace local bool_check expressions with utilities::bool_check().
2021-11-29 21:45:48 -05:00
Dimitris Apostolou
58e3793911
Fix typos
2021-11-12 03:40:53 +02:00
Kris Nuttycombe
8cfff30cc7
Apply suggestions from code review
2021-10-26 07:56:25 -06:00
zyd
bac1aa4e84
book: Fix typo
2021-10-06 20:43:21 +08:00
zyd
b12d03e815
book: Fix typo
2021-10-02 11:10:47 +08:00
zyd
c09344a93e
book: Fix typo
2021-09-26 23:04:01 +08:00
3for
536279d075
book: Fix typo
2021-09-26 16:41:36 +08:00
3for
70ec164ccd
Merge branch 'zcash:main' into main
2021-09-26 14:55:22 +08:00
3for
bcc9d5834b
book: Fix typo
2021-09-26 14:55:07 +08:00
3for
c89ef70035
book: Fix typo
2021-09-22 18:34:37 +08:00