Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circuit ¶
type Circuit struct {
NVars int
NPublic int
NSignals int
PrivateInputs []string
PublicInputs []string
Signals []string
Witness []*big.Int
Constraints []Constraint
R1CS struct {
A [][]*big.Int
B [][]*big.Int
C [][]*big.Int
}
}
Circuit is the data structure of the compiled circuit
type Constraint ¶
type Constraint struct {
// v1 op v2 = out
Op string
V1 string
V2 string
Out string
Literal string
PrivateInputs []string // in func declaration case
PublicInputs []string // in func declaration case
}
Constraint is the data structure of a flat code operation
type OperatorSymbol ¶
type OperatorSymbol int
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser data structure holds the Scanner and the Parsing functions
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner holds the bufio.Reader
func NewScanner ¶
NewScanner creates a new Scanner with the given io.Reader
Click to show internal directories.
Click to hide internal directories.