Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HashBuilderRegistry = make(map[string]func() hash.Hash)
TODO: Move to gnark-crypto
Functions ¶
func GkrProveHint ¶ added in v0.9.0
func GkrProveHint(hashName string, data *GkrSolvingData) hint.Hint
func GkrSolveHint ¶ added in v0.9.0
func GkrSolveHint(info constraint.GkrInfo, solvingData *GkrSolvingData) hint.Hint
Types ¶
type CoeffTable ¶
CoeffTable ensure we store unique coefficients in the constraint system
func (*CoeffTable) AddCoeff ¶ added in v0.9.0
func (ct *CoeffTable) AddCoeff(coeff constraint.Element) uint32
func (*CoeffTable) CoeffToString ¶
func (ct *CoeffTable) CoeffToString(cID int) string
CoeffToString implements constraint.Resolver
func (*CoeffTable) MakeTerm ¶
func (ct *CoeffTable) MakeTerm(coeff constraint.Element, variableID int) constraint.Term
type GkrSolvingData ¶ added in v0.9.0
type GkrSolvingData struct {
// contains filtered or unexported fields
}
type R1CSSolution ¶ added in v0.9.0
R1CSSolution represent a valid assignment to all the variables in the constraint system. The vector W such that Aw o Bw - Cw = 0
type SparseR1CS ¶
type SparseR1CS = system
func NewSparseR1CS ¶
func NewSparseR1CS(capacity int) *SparseR1CS
type SparseR1CSSolution ¶ added in v0.9.0
SparseR1CSSolution represent a valid assignment to all the variables in the constraint system.
type UnsatisfiedConstraintError ¶
type UnsatisfiedConstraintError struct { Err error CID int // constraint ID DebugInfo *string // optional debug info }
UnsatisfiedConstraintError wraps an error with useful metadata on the unsatisfied constraint
func (*UnsatisfiedConstraintError) Error ¶
func (r *UnsatisfiedConstraintError) Error() string
Click to show internal directories.
Click to hide internal directories.