Skip to content

Commit 9ebdce8

Browse files
committed
Remove param
1 parent f9efd12 commit 9ebdce8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

fastcrypto/src/bulletproofs.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,10 @@ impl RangeProof {
126126
pub fn verify(
127127
&self,
128128
commitment: &PedersenCommitment,
129-
blinding: &Blinding,
130129
range: &Range,
131130
domain: &'static [u8],
132131
) -> FastCryptoResult<()> {
133-
self.verify_aggregated(&[commitment.clone()], &[blinding.clone()], range, domain)
132+
self.verify_aggregated(&[commitment.clone()], range, domain)
134133
}
135134

136135
/// Create a proof that all the given `values` are in the given range.
@@ -210,14 +209,9 @@ impl RangeProof {
210209
pub fn verify_aggregated(
211210
&self,
212211
commitments: &[PedersenCommitment],
213-
blindings: &[Blinding],
214212
range: &Range,
215213
domain: &'static [u8],
216214
) -> FastCryptoResult<()> {
217-
if commitments.len() != blindings.len() {
218-
return Err(InvalidInput);
219-
}
220-
221215
let bits = range.upper_bound_in_bits() as usize;
222216
let pc_gens = PedersenGens::default();
223217
let bp_gens = BulletproofGens::new(bits, commitments.len());

0 commit comments

Comments
 (0)