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

Function GetFunc

ecgo/utils/customgates/registry.go:25–30  ·  view source on GitHub ↗
(customGateType uint64)

Source from the content-addressed store, hash-verified

23}
24
25func GetFunc(customGateType uint64) solver.Hint {
26 if h, ok := customGateHintFunc[customGateType]; ok {
27 return h.hintFunc
28 }
29 panic(fmt.Sprintf("custom gate %d not registered", customGateType))
30}
31
32func GetCost(customGateType uint64) int {
33 if h, ok := customGateHintFunc[customGateType]; ok {

Callers 2

applyCircuitFunction · 0.92
evalSubMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected