[TESTS] Move base58 to own module to break circular dependency

This breaks the script->key->address->script dependency cycle.
This commit is contained in:
Pieter Wuille authored and Pieter Wuille committed 2020-06-09 17:50:50 -07:00
1 parent f8364df250
commit c75de5da5f
4 files changed
+74 -71

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ keys, and is trivially vulnerable to side channel attacks. Do not use for
anything but tests."""
import random
from .address import byte_to_base58
from .base58 import byte_to_base58
def modinv(a, n):
"""Compute the modular inverse of a modulo n