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

Method PublicVariable

ecgo/builder/root.go:41–48  ·  view source on GitHub ↗

PublicVariable creates a new public variable for the circuit.

(f schema.LeafInfo)

Source from the content-addressed store, hash-verified

39
40// PublicVariable creates a new public variable for the circuit.
41func (r *Root) PublicVariable(f schema.LeafInfo) frontend.Variable {
42 r.instructions = append(r.instructions, irsource.Instruction{
43 Type: irsource.ConstantLike,
44 ExtraId: 2 + uint64(r.nbPublicInputs),
45 })
46 r.nbPublicInputs++
47 return r.addVar()
48}
49
50// SecretVariable creates a new secret variable for the circuit.
51func (r *Root) SecretVariable(f schema.LeafInfo) frontend.Variable {

Callers 1

CompileFunction · 0.95

Calls 1

addVarMethod · 0.80

Tested by

no test coverage detected