()
| 77 | } |
| 78 | |
| 79 | func randInt() *big.Int { |
| 80 | buf := make([]byte, 64) // just 2 times longer |
| 81 | rand.Read(buf) |
| 82 | return new(big.Int).SetBytes(buf) |
| 83 | } |
| 84 | |
| 85 | func sampleCoef(coef *big.Int, coefType uint8, publicInputId uint64, publicInput []*big.Int) *big.Int { |
| 86 | if coefType == 1 { |