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:
commit
6730ee8a1e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user