cs

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bsb22CommitmentComputePlaceholder added in v0.9.0

func Bsb22CommitmentComputePlaceholder(mod *big.Int, _ []*big.Int, output []*big.Int) (err error)

func RegisterBsb22CommitmentComputePlaceholder added in v0.9.0

func RegisterBsb22CommitmentComputePlaceholder(index int) (hintId solver.HintID, err error)

Types

type CoeffTable added in v0.7.0

type CoeffTable struct {
	// Coefficients in the constraints
	Coeffs         []big.Int      // list of unique coefficients.
	CoeffsIDsLarge map[string]int // map to check existence of a coefficient (key = coeff.Bytes())
	CoeffsIDsInt64 map[int64]int  // map to check existence of a coefficient (key = int64 value)
}

CoeffTable helps build a constraint system but need not be serialized after compilation

func NewCoeffTable added in v0.7.0

func NewCoeffTable() CoeffTable

func (*CoeffTable) CoeffID added in v0.7.0

func (t *CoeffTable) CoeffID(v *big.Int) int

CoeffID tries to fetch the entry where b is if it exits, otherwise appends b to the list of Coeffs and returns the corresponding entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL