Skip to content

Commit

Permalink
rangeproof: improve testing of rewound message
Browse files Browse the repository at this point in the history
There was no upstream bug, but the documentation was confusing and has since
been improved.
  • Loading branch information
jonasnick committed Jan 5, 2021
1 parent fb017c5 commit 1f2342b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zkp/rangeproof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ mod tests {
commitment_secrets.value_blinding_factor
);

// TODO: File bug with upstream: message length is not set correctly
assert!(opening.message.starts_with(message));
assert!(opening.message.ends_with(&vec![0; opening.message.len() - message.len()]));
}
}

0 comments on commit 1f2342b

Please sign in to comment.