Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit/final commit #1191

Merged
merged 56 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c171e57
fix: fixed l-02
ThomasPiellard Jun 18, 2024
4bdf2bf
style: divideByXMinusOne could -> divideByZH
ThomasPiellard Jun 18, 2024
123f49b
style: verify_opening_linearised_polynomial -> compute_opening_linear…
ThomasPiellard Jun 18, 2024
1b1b0e7
style: lagrangeOne -> lagrangeZero
ThomasPiellard Jun 18, 2024
5564595
fix: fixed L-04
ThomasPiellard Jun 19, 2024
8fa4348
fix: fixed M-04
ThomasPiellard Jun 19, 2024
e3fb37f
fix: fixed L-04
ThomasPiellard Jun 19, 2024
74ab1eb
fix: fixed L-05
ThomasPiellard Jun 19, 2024
b28e81e
fix: fixed some comments
ThomasPiellard Jun 19, 2024
77197b8
fix: fixed comment solidity
ThomasPiellard Jun 19, 2024
c82f17e
fix: fixed comment solidity
ThomasPiellard Jun 19, 2024
c1a4ac7
fix: fixed comment solidity
ThomasPiellard Jun 19, 2024
5feb98d
fix: fixed comment solidity
ThomasPiellard Jun 19, 2024
a2cd72b
fix: fixed comment unmarshal
ThomasPiellard Jun 19, 2024
a5118c4
fix: fixed comment prove
ThomasPiellard Jun 19, 2024
313b88d
fix: used size in domain instead of recomputing it
ThomasPiellard Jun 20, 2024
83eea72
style: removed redundant if statement
ThomasPiellard Jun 20, 2024
d16fc2b
style: reuse variable
ThomasPiellard Jun 20, 2024
6fb9262
feat: simplify loop constraint index
ThomasPiellard Jun 20, 2024
6a34ab1
fix: remove redundant select
ThomasPiellard Jun 20, 2024
b596adc
fix: remove redundant computation
ThomasPiellard Jun 20, 2024
123d950
fix: removed redundant computation pointer update
ThomasPiellard Jun 20, 2024
5a1321a
fix: fixed comment
ThomasPiellard Jun 20, 2024
f7895c0
fix: fixed comment
ThomasPiellard Jun 20, 2024
5aa8b16
fix: fixed fold_h comment
ThomasPiellard Jun 20, 2024
6cee007
fix: fixed comment
ThomasPiellard Jun 20, 2024
5512147
style: renamed H commitments constants
ThomasPiellard Jun 20, 2024
8662c56
style: cleaner computation nb BSB commitments
ThomasPiellard Jun 20, 2024
95b6bc0
style: SHA2 constant to replace 0x2
ThomasPiellard Jun 20, 2024
7c51024
style: constant for fixed size proof
ThomasPiellard Jun 20, 2024
4d77a59
style: removed unused variable
ThomasPiellard Jun 20, 2024
12e926b
feat: use offset variable in derive_gamma
ThomasPiellard Jun 21, 2024
6161789
feat: use offset in pairing
ThomasPiellard Jun 21, 2024
b426df9
style: added comment
ThomasPiellard Jun 21, 2024
20a17e8
style: fixed typos
ThomasPiellard Jun 21, 2024
55afdc5
feat: statistical zero knowledge option for bn254
ThomasPiellard Jun 24, 2024
697cd3d
feat: code gen
ThomasPiellard Jun 24, 2024
5511294
style: fixed comment
ThomasPiellard Jun 27, 2024
3443fa9
style: fixed comment
ThomasPiellard Jun 27, 2024
008a093
fix: fixed UnmarshalSolidity
ThomasPiellard Jun 27, 2024
d12b183
Merge pull request #12 from ThomasPiellard/audit/L-03
ThomasPiellard Jul 2, 2024
b86ee80
Merge pull request #9 from ThomasPiellard/audit/L-04
ThomasPiellard Jul 2, 2024
da9fa2c
Merge pull request #1 from ThomasPiellard/audit/N-04
ThomasPiellard Jul 2, 2024
f14e0dd
Merge pull request #3 from ThomasPiellard/audit/N-02
ThomasPiellard Jul 2, 2024
987cb4f
Merge pull request #4 from ThomasPiellard/audit/N-03
ThomasPiellard Jul 2, 2024
969e97b
Merge pull request #8 from ThomasPiellard/audit/L-05
ThomasPiellard Jul 2, 2024
a6d7ed7
Merge pull request #6 from ThomasPiellard/audit/L-07
ThomasPiellard Jul 2, 2024
3018617
Merge pull request #7 from ThomasPiellard/audit/L-06
ThomasPiellard Jul 2, 2024
3b6e77a
Merge branch 'audit/base' into audit/L-08
ThomasPiellard Jul 2, 2024
3330ad0
Merge pull request #5 from ThomasPiellard/audit/L-08
ThomasPiellard Jul 2, 2024
d1e7512
Merge pull request #2 from ThomasPiellard/audit/N-01
ThomasPiellard Jul 2, 2024
54823b5
Merge pull request #13 from ThomasPiellard/audit/N-05
ThomasPiellard Jul 2, 2024
08becf5
Merge pull request #14 from ThomasPiellard/audit/H-01
ThomasPiellard Jul 2, 2024
758c67e
Merge branch 'audit/base' into audit/L-02
ThomasPiellard Jul 2, 2024
872a106
Merge pull request #10 from ThomasPiellard/audit/L-02
ThomasPiellard Jul 2, 2024
e23bfe6
Merge pull request #11 from ThomasPiellard/audit/M-04
ThomasPiellard Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type ProverConfig struct {
ChallengeHash hash.Hash
KZGFoldingHash hash.Hash
Accelerator string
StatisticalZK bool
}

// NewProverConfig returns a default ProverConfig with given prover options opts
Expand Down Expand Up @@ -133,6 +134,16 @@ func WithIcicleAcceleration() ProverOption {
}
}

// WithStatisticalZeroKnowledge ensures that statistical zero knowledgeness is achieved.
// This option makes the prover more memory costly, as there are 3 more size n (size of the circuit)
// allocations.
func WithStatisticalZeroKnowledge() ProverOption {
return func(pc *ProverConfig) error {
pc.StatisticalZK = true
return nil
}
}

// VerifierOption defines option for altering the behavior of the verifier. See
// the descriptions of functions returning instances of this type for
// implemented options.
Expand Down
110 changes: 72 additions & 38 deletions backend/plonk/bls12-377/prove.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions backend/plonk/bls12-377/setup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 41 additions & 14 deletions backend/plonk/bls12-377/verify.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading