Documentation ¶
Index ¶
- Variables
- func ChallengeNames(sorted []*Wire, logNbInstances int, prefix string) []string
- func ProofSize(c Circuit, logNbInstances int) int
- func Verify(api frontend.API, c Circuit, assignment WireAssignment, proof Proof, ...) error
- type AddGate
- type Circuit
- type Gate
- type IdentityGate
- type MiMCCipherGate
- type MulGate
- type Option
- type Proof
- type Wire
- type WireAssignment
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisteredGates = map[string]Gate{ "identity": IdentityGate{}, "add": AddGate{}, "mul": MulGate{}, "mimc": MiMCCipherGate{Ark: 0}, }
Functions ¶
func ChallengeNames ¶
Types ¶
type IdentityGate ¶
type IdentityGate struct{}
func (IdentityGate) Degree ¶
func (IdentityGate) Degree() int
type MiMCCipherGate ¶
func (MiMCCipherGate) Degree ¶
func (m MiMCCipherGate) Degree() int
type MulGate ¶
type MulGate struct{}
type Proof ¶
type Proof []sumcheck.Proof // for each layer, for each wire, a sumcheck (for each variable, a polynomial)
func DeserializeProof ¶
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) NumInstances ¶
func (a WireAssignment) NumInstances() int
func (WireAssignment) NumVars ¶
func (a WireAssignment) NumVars() int
Click to show internal directories.
Click to hide internal directories.