mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-31 18:40:56 +00:00
tests: update test_msg_ethereum_getpublickey to test node field
This commit is contained in:
parent
79664a4d08
commit
61f403c421
@ -26,7 +26,19 @@ from .common import TrezorTest
|
|||||||
class TestMsgEthereumGetPublicKey(TrezorTest):
|
class TestMsgEthereumGetPublicKey(TrezorTest):
|
||||||
def test_ethereum_getpublickey(self):
|
def test_ethereum_getpublickey(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
|
res = ethereum.get_public_node(self.client, [H_(44), H_(60), H_(0)])
|
||||||
|
assert res.node.depth == 3
|
||||||
|
assert res.node.fingerprint == 0xC10CFFDA
|
||||||
|
assert res.node.child_num == 0x80000000
|
||||||
assert (
|
assert (
|
||||||
ethereum.get_public_node(self.client, [H_(44), H_(60), H_(0)]).xpub
|
res.node.chain_code.hex()
|
||||||
|
== "813d9feda6421f97a6472ff36679aa9e211ff88f6bdee51093af313ce628087e"
|
||||||
|
)
|
||||||
|
assert (
|
||||||
|
res.node.public_key.hex()
|
||||||
|
== "0318c22dedce01caca32354f98428e3af06a452f3fa84e6af8f1b6aa362affa641"
|
||||||
|
)
|
||||||
|
assert (
|
||||||
|
res.xpub
|
||||||
== "xpub6D54vV8eUYHMVBZCnz4SLjuiQngXURVCGKKGoJrWUDRegdMByLTJKfRs64q3UKiQCsSHJPtCQehTvERczdghS7gb8oedWSyNDtBU1zYDJtb"
|
== "xpub6D54vV8eUYHMVBZCnz4SLjuiQngXURVCGKKGoJrWUDRegdMByLTJKfRs64q3UKiQCsSHJPtCQehTvERczdghS7gb8oedWSyNDtBU1zYDJtb"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user