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

Method CustomGate

ecgo/builder/builder.go:227–238  ·  view source on GitHub ↗
(gateType uint64, inputs ...frontend.Variable)

Source from the content-addressed store, hash-verified

225}
226
227func (builder *builder) CustomGate(gateType uint64, inputs ...frontend.Variable) frontend.Variable {
228 hintInputs := builder.toVariableIds(inputs...)
229
230 builder.instructions = append(builder.instructions,
231 irsource.Instruction{
232 Type: irsource.CustomGate,
233 ExtraId: gateType,
234 Inputs: hintInputs,
235 },
236 )
237 return builder.addVar()
238}
239
240// assertIsSet
241

Callers

nothing calls this directly

Calls 2

toVariableIdsMethod · 0.95
addVarMethod · 0.95

Tested by

no test coverage detected