tests/eth: add invalid signature test for verify

pull/25/head
Tomas Susanka 6 years ago
parent ab461548ce
commit 0d01298f71

@ -43,3 +43,9 @@ class TestMsgEthereumVerifymessage(TrezorTest):
self.client, bytes.fromhex(self.ADDRESS), bytes.fromhex(sig), msg
)
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…
Cancel
Save