diff --git a/duniterpy/documents/__init__.py b/duniterpy/documents/__init__.py index b9fe552ae48b5416127da5e4473e22151ce49604..2cf40ae06158e5db1a155c9fd76bed41ee63d647 100644 --- a/duniterpy/documents/__init__.py +++ b/duniterpy/documents/__init__.py @@ -16,7 +16,6 @@ from .block import Block from .block_uid import BlockUID, block_uid from .certification import Certification -from .crc_pubkey import CRCPubkey from .document import Document, MalformedDocumentError from .identity import Identity from .membership import Membership diff --git a/duniterpy/documents/crc_pubkey.py b/duniterpy/key/crc_pubkey.py similarity index 96% rename from duniterpy/documents/crc_pubkey.py rename to duniterpy/key/crc_pubkey.py index 0a5b0c503cec7ba215ebeea07b5cfe6301f333a6..498e2a1531a7c3861c1554eccdf88d613deff158 100644 --- a/duniterpy/documents/crc_pubkey.py +++ b/duniterpy/key/crc_pubkey.py @@ -19,8 +19,8 @@ from typing import Type, TypeVar import base58 -from ..constants import PUBKEY_REGEX -from ..tools import ensure_str +from duniterpy.constants import PUBKEY_REGEX +from duniterpy.tools import ensure_str # required to type hint cls in classmethod CRCPubkeyType = TypeVar("CRCPubkeyType", bound="CRCPubkey") diff --git a/tests/documents/test_crc_pubkey.py b/tests/key/test_crc_pubkey.py similarity index 94% rename from tests/documents/test_crc_pubkey.py rename to tests/key/test_crc_pubkey.py index 638672f31ae3297eed79479b01d93eef08f66d69..b7f54d3a9db548d3486ad2591d071591cdf034b3 100644 --- a/tests/documents/test_crc_pubkey.py +++ b/tests/key/test_crc_pubkey.py @@ -15,7 +15,7 @@ import unittest -from duniterpy.documents.crc_pubkey import CRCPubkey +from duniterpy.key.crc_pubkey import CRCPubkey class TestCRCPubkey(unittest.TestCase):