Documentation ¶
Index ¶
- func GetHashBuilder(name string) (func() hash.Hash, error)
- func GkrProveHint(hashName string, data *GkrSolvingData) hint.Hint
- func GkrSolveHint(info constraint.GkrInfo, solvingData *GkrSolvingData) hint.Hint
- func RegisterHashBuilder(name string, builder func() hash.Hash)
- type CoeffTable
- type ConstPseudoHash
- type GkrSolvingData
- type R1CS
- type R1CSSolution
- type SparseR1CS
- type SparseR1CSSolution
- type UnsatisfiedConstraintError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GkrProveHint ¶
func GkrProveHint(hashName string, data *GkrSolvingData) hint.Hint
func GkrSolveHint ¶
func GkrSolveHint(info constraint.GkrInfo, solvingData *GkrSolvingData) hint.Hint
func RegisterHashBuilder ¶
Types ¶
type CoeffTable ¶
CoeffTable ensure we store unique coefficients in the constraint system
func (*CoeffTable) AddCoeff ¶
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 ConstPseudoHash ¶
type ConstPseudoHash int
For testing purposes
func (ConstPseudoHash) BlockSize ¶
func (c ConstPseudoHash) BlockSize() int
func (ConstPseudoHash) Reset ¶
func (c ConstPseudoHash) Reset()
func (ConstPseudoHash) Size ¶
func (c ConstPseudoHash) Size() int
func (ConstPseudoHash) Sum ¶
func (c ConstPseudoHash) Sum([]byte) []byte
type GkrSolvingData ¶
type GkrSolvingData struct {
// contains filtered or unexported fields
}
type R1CSSolution ¶
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
NewSparseR1CS is a constructor for SparseR1CS. It is meant to be use by gnark frontend only, and should not be used by gnark users. See plonk.NewCS(...) instead.
type SparseR1CSSolution ¶
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.