assertIsSet IdentityHint sets output[0] to input[0] and is used to implement ToFirstLayer.
(field *big.Int, inputs []*big.Int, outputs []*big.Int)
| 241 | |
| 242 | // IdentityHint sets output[0] to input[0] and is used to implement ToFirstLayer. |
| 243 | func IdentityHint(field *big.Int, inputs []*big.Int, outputs []*big.Int) error { |
| 244 | a := big.NewInt(0) |
| 245 | a.Set(inputs[0]) |
| 246 | outputs[0] = a |
| 247 | return nil |
| 248 | } |
| 249 | |
| 250 | // ToFirstLayer adds a hint to the target variable to bring it to the first layer. |
| 251 | func (builder *builder) ToFirstLayer(v frontend.Variable) frontend.Variable { |