Help us shape the future of Go! Take the 2026 Go Developer Survey

cs

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 50

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)

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 exists, 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