Skip to content

Commit 83114e6

Browse files
authored
Merge pull request #120 from openmina/proof-generation
Generate proof
2 parents 120bebe + 327411d commit 83114e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+30674
-6425
lines changed

cli/src/commands/node/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Node {
152152

153153
let work_dir = shellexpand::full(&self.work_dir).unwrap().into_owned();
154154
let rng_seed = rng.next_u64();
155-
let srs: Arc<_> = get_srs().into();
155+
let srs: Arc<_> = get_srs();
156156
let config = Config {
157157
ledger: LedgerConfig {},
158158
snark: SnarkConfig {

cli/src/commands/snark/precalculate_block_verifier_index_and_srs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ impl PrecalculateBlockVerifierIndexAndSrs {
2020
hasher.update(&verifier_index);
2121
let index_hash = hex::encode(hasher.finalize());
2222

23-
let srs = srs_to_bytes(&get_srs());
23+
let srs = {
24+
let srs = get_srs();
25+
let srs = srs.lock().expect("Failed to lock SRS");
26+
srs_to_bytes(&srs)
27+
};
2428
let mut hasher = Sha256::new();
2529
hasher.update(&srs);
2630
let srs_hash = hex::encode(hasher.finalize());

0 commit comments

Comments
 (0)