|
|
|
@ -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
|
|
|
|
|