(coef *big.Int, coefType uint8, publicInputId uint64, publicInput []*big.Int)
| 83 | } |
| 84 | |
| 85 | func 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 | |
| 95 | func applyCircuit(rc *layered.RootCircuit, circuit *layered.Circuit, cur []*big.Int, next []*big.Int, publicInput []*big.Int) { |
| 96 | tmp := big.NewInt(0) |
no test coverage detected