Exemplo n.º 1
0
    def test_deserialize_xpub(self):
        xtype, depth, fpr, child_number, c, K = deserialize_xpub(self.xpub)

        self.assertEqual(0, xtype)
        self.assertEqual(1, depth)
        self.assertEqual(self.master_fpr, fpr.encode('hex'))
        self.assertEqual(self.child_num, child_number.encode('hex'))
        self.assertEqual(self.chain_code, c.encode('hex'))
        self.assertEqual(self.pub_key, K.encode('hex'))
Exemplo n.º 2
0
 def test_deserialize_xpub(self):
     self.check_deserialized(deserialize_xpub(self.xpub), False)