You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below fails with an error from Pickles that seems to be some consistency check regarding custom gates.
The error occurs when the zkprogram has a ForeignCurve point public input, but doesn't do any actual operations on that point. The error goes away when adding a single operation like point.double() to the circuit.
import{createForeignCurve,Crypto,ZkProgram}from"o1js";classSecp256k1extendscreateForeignCurve(Crypto.CurveParams.Secp256k1){}constFailing=ZkProgram({name: "failing-program",publicInput: Secp256k1,methods: {test: {privateInputs: [],asyncmethod(p: Secp256k1){// if this is commented in, compiling works// p.double();},},},});awaitFailing.compile();
The text was updated successfully, but these errors were encountered:
The code below fails with an error from Pickles that seems to be some consistency check regarding custom gates.
The error occurs when the zkprogram has a ForeignCurve point public input, but doesn't do any actual operations on that point. The error goes away when adding a single operation like
point.double()
to the circuit.Failing line in
wrap_main.ml
:Reproduction code:
The text was updated successfully, but these errors were encountered: