Skip to content

Commit 03367d4

Browse files
committed
fmt
1 parent 216d67f commit 03367d4

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

benches/bulletproofs.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ fn verify_aggregated_rangeproof_helper(n: usize, c: &mut Criterion) {
9898
// Each proof creation requires a clean transcript.
9999
let mut transcript = Transcript::new(b"AggregateRangeProofBenchmark");
100100

101-
proof.verify(
102-
&bp_gens,
103-
&pc_gens,
104-
&mut transcript,
105-
&value_commitments,
106-
n,
107-
)
101+
proof.verify(&bp_gens, &pc_gens, &mut transcript, &value_commitments, n)
108102
});
109103
},
110104
&AGGREGATION_SIZES,

src/range_proof/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ impl RangeProof {
9494
let parties: Vec<_> = values
9595
.iter()
9696
.zip(blindings.iter())
97-
.map(|(&v, &v_blinding)| {
98-
Party::new(bp_gens, pc_gens, v, v_blinding, n)
99-
})
97+
.map(|(&v, &v_blinding)| Party::new(bp_gens, pc_gens, v, v_blinding, n))
10098
// Collect the iterator of Results into a Result<Vec>, then unwrap it
101-
.collect::<Result<Vec<_>,_>>()?;
99+
.collect::<Result<Vec<_>, _>>()?;
102100

103101
let (parties, value_commitments): (Vec<_>, Vec<_>) = parties
104102
.into_iter()
@@ -119,7 +117,7 @@ impl RangeProof {
119117
.into_iter()
120118
.map(|p| p.apply_challenge(&poly_challenge))
121119
// Collect the iterator of Results into a Result<Vec>, then unwrap it
122-
.collect::<Result<Vec<_>,_>>()?;
120+
.collect::<Result<Vec<_>, _>>()?;
123121

124122
let proof = dealer.receive_trusted_shares(&proof_shares)?;
125123

0 commit comments

Comments
 (0)