Пример #1
0
    def test_deserialize_drkv(self):
        xtype, depth, fpr, child_number, c, k = deserialize_drkv(self.drkv)

        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'))
Пример #2
0
 def test_deserialize_drkv(self):
     self.check_deserialized(deserialize_drkv(self.drkv), True)