def test_deserialize_xprv(self): xtype, depth, fpr, child_number, c, k = deserialize_xprv(self.xprv) 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.sec_key, k.encode('hex'))
def test_deserialize_xprv(self): self.check_deserialized(deserialize_xprv(self.xprv), True)