diff --git a/abstractor/abstractor.go b/abstractor/abstractor.go index 3275b45..169cf5c 100644 --- a/abstractor/abstractor.go +++ b/abstractor/abstractor.go @@ -26,3 +26,7 @@ type Circuit interface { func Concretize(api frontend.API, circuit Circuit) error { return circuit.AbsDefine(&Concretizer{api}) } + +func CallGadget(api frontend.API, circuit GadgetDefinition) []frontend.Variable { + return circuit.DefineGadget(&Concretizer{api}) +}