We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ff901 commit 02f1666Copy full SHA for 02f1666
src/zkp/whitelist.rs
@@ -404,7 +404,7 @@ mod tests {
404
// incorrectly serialized with byte changed
405
let mut encoded = correct_signature.serialize();
406
let len = encoded.len();
407
- encoded[len - 1] = (encoded[len - 1] + 1) % 255;
+ encoded[len - 1] = encoded[len - 1] ^ 0x01;
408
let decoded = WhitelistSignature::from_slice(&encoded).unwrap();
409
assert_eq!(
410
Err(Error::InvalidWhitelistProof),
0 commit comments