From 0226a2a26757ea3e187e570210e9fc8d7c912142 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 13 Apr 2020 14:13:10 +0300 Subject: [PATCH] add beacon_hash as arg --- powersoftau/src/bin/beacon_constrained.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powersoftau/src/bin/beacon_constrained.rs b/powersoftau/src/bin/beacon_constrained.rs index 6af6ea9..34a1a47 100644 --- a/powersoftau/src/bin/beacon_constrained.rs +++ b/powersoftau/src/bin/beacon_constrained.rs @@ -27,7 +27,7 @@ fn main() { let response_filename = &args[2]; let circuit_power = args[3].parse().expect("could not parse circuit power"); let batch_size = args[4].parse().expect("could not parse batch size"); - let beacon_hash = &args[5]; + let beacon_hash = args[5]; let parameters = CeremonyParams::::new(circuit_power, batch_size); @@ -48,7 +48,7 @@ fn main() { use rand::chacha::ChaChaRng; use rand::SeedableRng; - let mut cur_hash = hex::decode(beacon_hash).unwrap(); + let mut cur_hash: [u8; 32] = hex!(beacon_hash); // Performs 2^n hash iterations over it const N: u64 = 10;