Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChallengeNames ¶
func ProofSize ¶
ProofSize computes how large the proof for a circuit would be. It needs nbUniqueOutputs to be set
func Verify ¶
func Verify(c Circuit, assignment WireAssignment, proof Proof, transcriptSettings fiatshamir.Settings, options ...Option) error
Verify the consistency of the claimed output with the claimed input Unlike in Prove, the assignment argument need not be complete
Types ¶
type IdentityGate ¶
type IdentityGate struct{}
func (IdentityGate) Degree ¶
func (IdentityGate) Degree() int
type Option ¶
type Option func(*settings)
func WithPool ¶
func WithPool(pool *polynomial.Pool) Option
func WithSortedCircuit ¶
type Proof ¶
type Proof []sumcheck.Proof // for each layer, for each wire, a sumcheck (for each variable, a polynomial)
func Prove ¶
func Prove(c Circuit, assignment WireAssignment, transcriptSettings fiatshamir.Settings, options ...Option) (Proof, error)
Prove consistency of the claimed assignment
type Wire ¶
type WireAssignment ¶
type WireAssignment map[*Wire]polynomial.MultiLin
WireAssignment is assignment of values to the same wire across many instances of the circuit
func (WireAssignment) Complete ¶
func (a WireAssignment) Complete(c Circuit) WireAssignment
Complete the circuit evaluation from input values
func (WireAssignment) NumInstances ¶
func (a WireAssignment) NumInstances() int
func (WireAssignment) NumVars ¶
func (a WireAssignment) NumVars() int
Click to show internal directories.
Click to hide internal directories.