diff --git a/duniterpy/documents/crc_pubkey.py b/duniterpy/documents/crc_pubkey.py index 75167cb3b0146f7d987cd96b877fa39d6f935daf..e9d55cd77e24eb9d6d1d2fe9a6ecef3f3b2a6574 100644 --- a/duniterpy/documents/crc_pubkey.py +++ b/duniterpy/documents/crc_pubkey.py @@ -4,7 +4,7 @@ import base58 import re import hashlib from ..constants import PUBKEY_REGEX -from ..helpers import ensure_str +from ..tools import ensure_str # required to type hint cls in classmethod CRCPubkeyType = TypeVar("CRCPubkeyType", bound="CRCPubkey") diff --git a/duniterpy/key/base58.py b/duniterpy/key/base58.py index 3c258709402450dc8239f89270f9deb141408960..cfb8021c81a97b98639a297169620ae7f2d7e5dc 100644 --- a/duniterpy/key/base58.py +++ b/duniterpy/key/base58.py @@ -2,7 +2,7 @@ from typing import Union import base58 -from ..helpers import ensure_str, ensure_bytes +from ..tools import ensure_str, ensure_bytes class Base58Encoder: diff --git a/duniterpy/key/encryption_key.py b/duniterpy/key/encryption_key.py index 376c16ea9b9d3f744538e7b888ea80905b3d42b1..509b63f4d807436e9507bb2874a352f6615bc3f9 100644 --- a/duniterpy/key/encryption_key.py +++ b/duniterpy/key/encryption_key.py @@ -10,7 +10,7 @@ from pylibscrypt import scrypt from .scrypt_params import ScryptParams from .base58 import Base58Encoder -from ..helpers import ensure_bytes +from ..tools import ensure_bytes class SecretKey(libnacl.public.SecretKey): diff --git a/duniterpy/key/signing_key.py b/duniterpy/key/signing_key.py index 5abc00df859f6ca72d9bdae02307a77c90a14efa..4f1e444d1bd82a35603de52f438a3a27a2b2d7f0 100644 --- a/duniterpy/key/signing_key.py +++ b/duniterpy/key/signing_key.py @@ -13,7 +13,7 @@ from pylibscrypt import scrypt from .scrypt_params import ScryptParams from .base58 import Base58Encoder -from ..helpers import ( +from ..tools import ( ensure_bytes, xor_bytes, convert_seedhex_to_seed, diff --git a/duniterpy/helpers.py b/duniterpy/tools.py similarity index 100% rename from duniterpy/helpers.py rename to duniterpy/tools.py