@@ -44,7 +44,7 @@ fn file_backed_mmap_from_zeroes(n: usize, use_tmp: bool) -> Result<MmapMut, fail
44
44
}
45
45
46
46
fn dump_proof_bytes < H : Hasher > (
47
- all_partition_proofs : & [ Vec < stacked:: Proof < H , Blake2sHasher > > ] ,
47
+ all_partition_proofs : & [ Vec < stacked:: Proof < H , Sha256Hasher > > ] ,
48
48
) -> Result < ( ) , failure:: Error > {
49
49
let file = OpenOptions :: new ( )
50
50
. write ( true )
@@ -132,7 +132,7 @@ where
132
132
layer_challenges : layer_challenges. clone ( ) ,
133
133
} ;
134
134
135
- let pp = StackedDrg :: < H , Blake2sHasher > :: setup ( & sp) ?;
135
+ let pp = StackedDrg :: < H , Sha256Hasher > :: setup ( & sp) ?;
136
136
137
137
let ( pub_in, priv_in, d) = if * bench_only {
138
138
( None , None , None )
@@ -146,9 +146,9 @@ where
146
146
return_value : ( pub_inputs, priv_inputs) ,
147
147
} = measure ( || {
148
148
let ( tau, ( p_aux, t_aux) ) =
149
- StackedDrg :: < H , Blake2sHasher > :: replicate ( & pp, & replica_id, & mut data, None ) ?;
149
+ StackedDrg :: < H , Sha256Hasher > :: replicate ( & pp, & replica_id, & mut data, None ) ?;
150
150
151
- let pb = stacked:: PublicInputs :: < H :: Domain , <Blake2sHasher as Hasher >:: Domain > {
151
+ let pb = stacked:: PublicInputs :: < H :: Domain , <Sha256Hasher as Hasher >:: Domain > {
152
152
replica_id,
153
153
seed,
154
154
tau : Some ( tau) ,
@@ -189,7 +189,7 @@ where
189
189
wall_time : vanilla_proving_wall_time,
190
190
return_value : all_partition_proofs,
191
191
} = measure ( || {
192
- StackedDrg :: < H , Blake2sHasher > :: prove_all_partitions (
192
+ StackedDrg :: < H , Sha256Hasher > :: prove_all_partitions (
193
193
& pp,
194
194
& pub_inputs,
195
195
& priv_inputs,
@@ -218,7 +218,7 @@ where
218
218
219
219
for _ in 0 ..* samples {
220
220
let m = measure ( || {
221
- let verified = StackedDrg :: < H , Blake2sHasher > :: verify_all_partitions (
221
+ let verified = StackedDrg :: < H , Sha256Hasher > :: verify_all_partitions (
222
222
& pp,
223
223
& pub_inputs,
224
224
& all_partition_proofs,
@@ -265,7 +265,7 @@ where
265
265
if let Some ( data) = d {
266
266
if * extract {
267
267
let m = measure ( || {
268
- StackedDrg :: < H , Blake2sHasher > :: extract_all ( & pp, & replica_id, & data)
268
+ StackedDrg :: < H , Sha256Hasher > :: extract_all ( & pp, & replica_id, & data)
269
269
. map_err ( |err| err. into ( ) )
270
270
} ) ?;
271
271
@@ -296,9 +296,9 @@ struct CircuitWorkMeasurement {
296
296
}
297
297
298
298
fn do_circuit_work < H : ' static + Hasher > (
299
- pp : & <StackedDrg < H , Blake2sHasher > as ProofScheme >:: PublicParams ,
300
- pub_in : Option < <StackedDrg < H , Blake2sHasher > as ProofScheme >:: PublicInputs > ,
301
- priv_in : Option < <StackedDrg < H , Blake2sHasher > as ProofScheme >:: PrivateInputs > ,
299
+ pp : & <StackedDrg < H , Sha256Hasher > as ProofScheme >:: PublicParams ,
300
+ pub_in : Option < <StackedDrg < H , Sha256Hasher > as ProofScheme >:: PublicInputs > ,
301
+ priv_in : Option < <StackedDrg < H , Sha256Hasher > as ProofScheme >:: PrivateInputs > ,
302
302
params : & Params ,
303
303
report : & mut Report ,
304
304
) -> Result < CircuitWorkMeasurement , failure:: Error > {
@@ -322,7 +322,7 @@ fn do_circuit_work<H: 'static + Hasher>(
322
322
323
323
if * bench || * circuit {
324
324
let mut cs = MetricCS :: < Bls12 > :: new ( ) ;
325
- <StackedCompound as CompoundProof < _ , StackedDrg < H , Blake2sHasher > , _ > >:: blank_circuit (
325
+ <StackedCompound as CompoundProof < _ , StackedDrg < H , Sha256Hasher > , _ > >:: blank_circuit (
326
326
& pp, & JJ_PARAMS ,
327
327
)
328
328
. synthesize ( & mut cs) ?;
@@ -342,7 +342,7 @@ fn do_circuit_work<H: 'static + Hasher>(
342
342
// We should also allow the serialized vanilla proofs to be passed (as a file) to the example
343
343
// and skip replication/vanilla-proving entirely.
344
344
let gparams =
345
- <StackedCompound as CompoundProof < _ , StackedDrg < H , Blake2sHasher > , _ > >:: groth_params (
345
+ <StackedCompound as CompoundProof < _ , StackedDrg < H , Sha256Hasher > , _ > >:: groth_params (
346
346
& compound_public_params. vanilla_params ,
347
347
& JJ_PARAMS ,
348
348
) ?;
0 commit comments