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

Function IdentityHint

ecgo/builder/builder.go:243–248  ·  view source on GitHub ↗

assertIsSet IdentityHint sets output[0] to input[0] and is used to implement ToFirstLayer.

(field *big.Int, inputs []*big.Int, outputs []*big.Int)

Source from the content-addressed store, hash-verified

241
242// IdentityHint sets output[0] to input[0] and is used to implement ToFirstLayer.
243func 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.
251func (builder *builder) ToFirstLayer(v frontend.Variable) frontend.Variable {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected