Skip to content

Commit

Permalink
Merge pull request #14 from ThomasPiellard/audit/H-01
Browse files Browse the repository at this point in the history
Audit/h 01
  • Loading branch information
ThomasPiellard authored Jul 2, 2024
2 parents 54823b5 + 3443fa9 commit 08becf5
Show file tree
Hide file tree
Showing 9 changed files with 419 additions and 96 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
63 changes: 51 additions & 12 deletions backend/plonk/bls12-377/prove.go

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

63 changes: 51 additions & 12 deletions backend/plonk/bls12-381/prove.go

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

63 changes: 51 additions & 12 deletions backend/plonk/bls24-315/prove.go

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

Loading

0 comments on commit 08becf5

Please sign in to comment.