1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

Fixed unittest for get_subnode CKD

This commit is contained in:
slush0 2014-02-21 22:19:55 +01:00
parent e19c8881c0
commit 39348895f9
3 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,7 @@ FirmwareErase
FirmwareUpload FirmwareUpload
protection levels protection levels
neuspesna zmena pinu
- zrejme v sucinnosti s inymi testami - zrejme v sucinnosti s inymi testami
x ButtonRequest/ButtonAck workflow x ButtonRequest/ButtonAck workflow

View File

@ -27,8 +27,8 @@ class TestMsgGetaddress(common.TrezorTest):
def test_public_ckd(self): def test_public_ckd(self):
self.setup_mnemonic_nopin_nopassphrase() self.setup_mnemonic_nopin_nopassphrase()
node = self.client.get_public_node('Bitcoin', []) node = self.client.get_public_node([])
node_sub1 = self.client.get_public_node('Bitcoin', [1]) node_sub1 = self.client.get_public_node([1])
node_sub2 = bip32.public_ckd(node, [1]) node_sub2 = bip32.public_ckd(node, [1])
self.assertEqual(node_sub1.chain_code, node_sub2.chain_code) self.assertEqual(node_sub1.chain_code, node_sub2.chain_code)

View File

@ -72,7 +72,6 @@ def get_subnode(node, i):
I_left_as_exponent = string_to_number(I64[:32]) I_left_as_exponent = string_to_number(I64[:32])
node_out = proto_types.HDNodeType() node_out = proto_types.HDNodeType()
node_out.version = node.version
node_out.depth = node.depth + 1 node_out.depth = node.depth + 1
node_out.child_num = i node_out.child_num = i
node_out.chain_code = I64[32:] node_out.chain_code = I64[32:]