Ejemplo n.º 1
0
 def test_bip32_vectors(self, bip32_vectors):
     for seed in bip32_vectors:
         wallet = HDWallet()
         wallet.root_priv = bip32_vectors[seed]['m']['xprv']
         for path in bip32_vectors[seed]:
             if path != "m":
                 xprv = wallet.extended_private_key(path)
                 expected_xprv = bip32_vectors[seed][path]['xprv']
                 assert xprv == expected_xprv
Ejemplo n.º 2
0
 def test_bip32_vectors(self, bip32_vectors):
     for seed in bip32_vectors:
         wallet = HDWallet()
         wallet.root_priv = bip32_vectors[seed]['m']['xprv']
         for path in bip32_vectors[seed]:
             if path != "m":
                 pubkey = wallet.public_key(path)
                 expected_pubkey = bip32_vectors[seed][path]['pubkey']
                 assert pubkey == expected_pubkey