MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / sampleCoef

Function sampleCoef

ecgo/test/eval.go:85–93  ·  view source on GitHub ↗
(coef *big.Int, coefType uint8, publicInputId uint64, publicInput []*big.Int)

Source from the content-addressed store, hash-verified

83}
84
85func sampleCoef(coef *big.Int, coefType uint8, publicInputId uint64, publicInput []*big.Int) *big.Int {
86 if coefType == 1 {
87 return coef
88 } else if coefType == 2 {
89 return randInt()
90 } else {
91 return publicInput[publicInputId]
92 }
93}
94
95func applyCircuit(rc *layered.RootCircuit, circuit *layered.Circuit, cur []*big.Int, next []*big.Int, publicInput []*big.Int) {
96 tmp := big.NewInt(0)

Callers 1

applyCircuitFunction · 0.85

Calls 1

randIntFunction · 0.85

Tested by

no test coverage detected