diff --git a/codex/codex.nim b/codex/codex.nim index 37f11f7e..e794d5a5 100644 --- a/codex/codex.nim +++ b/codex/codex.nim @@ -292,7 +292,6 @@ proc new*( echo "Prover is some!" some Prover.new( store, - CircomCompat.init($config.circomR1cs, $config.circomWasm, zkey), config.numProofSamples) else: echo "Prover is none!" diff --git a/codex/slots/proofs/prover.nim b/codex/slots/proofs/prover.nim index 34fef2c5..047bae86 100644 --- a/codex/slots/proofs/prover.nim +++ b/codex/slots/proofs/prover.nim @@ -13,6 +13,7 @@ import pkg/chronicles import pkg/circomcompat import pkg/poseidon2 import pkg/questionable/results +import pkg/confutils/defs import pkg/libp2p/cid @@ -97,14 +98,13 @@ proc start*( ) = echo "prover start!" echo proofCeremonyUrl + self.backend = CircomCompat.init($config.circomR1cs, $config.circomWasm, $config.circomZkey) proc new*( _: type Prover, store: BlockStore, - backend: AnyBackend, nSamples: int): Prover = Prover( - backend: backend, store: store, nSamples: nSamples)