Add Decred transaction to and from bytes.

This commit is contained in:
tecnovert
2024-04-25 22:53:54 +02:00
parent 761d0ca505
commit 150caeec40
6 changed files with 246 additions and 23 deletions

View File

@@ -460,7 +460,7 @@ class Test(unittest.TestCase):
for i, expect_length in test_vectors:
b = encode_varint(i)
assert (len(b) == expect_length)
assert (decode_varint(b) == i)
assert (decode_varint(b) == (i, expect_length))
def test_base58(self):
kv = edu.get_secret()