From 1f2342b38bc6095577fce069c35f0ac13e05240a Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Tue, 5 Jan 2021 18:45:08 +0000 Subject: [PATCH] rangeproof: improve testing of rewound message There was no upstream bug, but the documentation was confusing and has since been improved. --- src/zkp/rangeproof.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zkp/rangeproof.rs b/src/zkp/rangeproof.rs index 7687ef39..610108a3 100644 --- a/src/zkp/rangeproof.rs +++ b/src/zkp/rangeproof.rs @@ -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()])); } }