Skip to content

Commit 28b22bb

Browse files
committed
Allow zeros for value commitments.
1 parent 40def3a commit 28b22bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/range_proof/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ impl RangeProof {
287287
transcript.rangeproof_domain_sep(n as u64, m as u64);
288288

289289
for V in value_commitments.iter() {
290-
transcript.validate_and_append_point(b"V", V)?;
290+
// Allow the commitments to be zero (0 value, 0 blinding)
291+
// See https://github.com/dalek-cryptography/bulletproofs/pull/248#discussion_r255167177
292+
transcript.append_point(b"V", V);
291293
}
292294

293295
transcript.validate_and_append_point(b"A", &self.A)?;

0 commit comments

Comments
 (0)