1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-11-17 14:27:41 +00:00

test(reference): pass message when verifying tampered proof

This commit is contained in:
radik878 2025-08-11 10:36:43 +03:00 committed by GitHub
parent 4f1359d0f8
commit 90091a2d06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,5 +144,5 @@ class DLEQTests(unittest.TestCase):
proof_damaged[random.randrange(len(proof))] ^= 1 << (
random.randrange(8)
)
success = dleq_verify_proof(A, B, C, bytes(proof_damaged))
success = dleq_verify_proof(A, B, C, bytes(proof_damaged), m=message)
self.assertFalse(success)