1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-09-29 13:52:41 +00:00

Merge pull request #1926 from radik878/test/dleq-pass-message-in-tampered-proof

BIP374: in tests, pass message when verifying proof with message
This commit is contained in:
Jon Atack 2025-09-17 09:52:16 -07:00 committed by GitHub
commit 6730ee8a1e
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 << ( proof_damaged[random.randrange(len(proof))] ^= 1 << (
random.randrange(8) 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) self.assertFalse(success)