Skip to content

Commit

Permalink
Merge pull request #1196 from ThomasPiellard/audit/final-commit-fixes
Browse files Browse the repository at this point in the history
Audit/final commit fixes
  • Loading branch information
ThomasPiellard authored Jul 11, 2024
2 parents 111a078 + 26e3df7 commit 065027a
Show file tree
Hide file tree
Showing 27 changed files with 1,024 additions and 542 deletions.
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

0 comments on commit 065027a

Please sign in to comment.