mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-22 07:28:32 +00:00
Moves backend creation into start method
This commit is contained in:
parent
cfca6b4111
commit
828484a646
@ -292,7 +292,6 @@ proc new*(
|
|||||||
echo "Prover is some!"
|
echo "Prover is some!"
|
||||||
some Prover.new(
|
some Prover.new(
|
||||||
store,
|
store,
|
||||||
CircomCompat.init($config.circomR1cs, $config.circomWasm, zkey),
|
|
||||||
config.numProofSamples)
|
config.numProofSamples)
|
||||||
else:
|
else:
|
||||||
echo "Prover is none!"
|
echo "Prover is none!"
|
||||||
|
@ -13,6 +13,7 @@ import pkg/chronicles
|
|||||||
import pkg/circomcompat
|
import pkg/circomcompat
|
||||||
import pkg/poseidon2
|
import pkg/poseidon2
|
||||||
import pkg/questionable/results
|
import pkg/questionable/results
|
||||||
|
import pkg/confutils/defs
|
||||||
|
|
||||||
import pkg/libp2p/cid
|
import pkg/libp2p/cid
|
||||||
|
|
||||||
@ -97,14 +98,13 @@ proc start*(
|
|||||||
) =
|
) =
|
||||||
echo "prover start!"
|
echo "prover start!"
|
||||||
echo proofCeremonyUrl
|
echo proofCeremonyUrl
|
||||||
|
self.backend = CircomCompat.init($config.circomR1cs, $config.circomWasm, $config.circomZkey)
|
||||||
|
|
||||||
proc new*(
|
proc new*(
|
||||||
_: type Prover,
|
_: type Prover,
|
||||||
store: BlockStore,
|
store: BlockStore,
|
||||||
backend: AnyBackend,
|
|
||||||
nSamples: int): Prover =
|
nSamples: int): Prover =
|
||||||
|
|
||||||
Prover(
|
Prover(
|
||||||
backend: backend,
|
|
||||||
store: store,
|
store: store,
|
||||||
nSamples: nSamples)
|
nSamples: nSamples)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user