mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-02 06:08:46 +00:00
tests/eth: add invalid signature test for verify
This commit is contained in:
parent
ab461548ce
commit
0d01298f71
@ -43,3 +43,9 @@ class TestMsgEthereumVerifymessage(TrezorTest):
|
|||||||
self.client, bytes.fromhex(self.ADDRESS), bytes.fromhex(sig), msg
|
self.client, bytes.fromhex(self.ADDRESS), bytes.fromhex(sig), msg
|
||||||
)
|
)
|
||||||
assert res is True
|
assert res is True
|
||||||
|
|
||||||
|
def test_verify_invalid(self):
|
||||||
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
|
signature = bytes.fromhex(self.VECTORS[0][1])
|
||||||
|
res = ethereum.verify_message(self.client, bytes.fromhex(self.ADDRESS), signature, "another message")
|
||||||
|
assert res == False
|
||||||
|
Loading…
Reference in New Issue
Block a user