Skip to content

Commit

Permalink
Update src/ristretto/pedersen/extended_commitment_factory.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler authored Oct 2, 2023
1 parent 65aa742 commit b0d0a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ristretto/pedersen/extended_commitment_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl ExtendedPedersenCommitmentFactory {
Ok(RistrettoPoint::multiscalar_mul(scalars, points))
}
} else {
let scalars = once(value).chain(blinding_factors.iter());
let scalars = once(value).chain(blinding_factors);
let g_base_head = self.g_base_vec.iter().take(blinding_factors.len());
let points = once(&self.h_base).chain(g_base_head);
Ok(RistrettoPoint::multiscalar_mul(scalars, points))
Expand Down

0 comments on commit b0d0a8b

Please sign in to comment.