[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
2020-05-02 13:59:00 -07:00
committed by Pieter Wuille
parent f8364df250
commit c75de5da5f
4 changed files with 74 additions and 71 deletions

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