mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-17 15:27:28 +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!"
|
||||
some Prover.new(
|
||||
store,
|
||||
CircomCompat.init($config.circomR1cs, $config.circomWasm, zkey),
|
||||
config.numProofSamples)
|
||||
else:
|
||||
echo "Prover is none!"
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user