diff --git a/hdwallet/const.py b/hdwallet/const.py index 8a4b946..002310a 100644 --- a/hdwallet/const.py +++ b/hdwallet/const.py @@ -42,15 +42,15 @@ class SLIP10_ED25519_CONST: """ ``SLIP10-ED25519`` Constants. - +-------------------------+-----------+--------------+ - | Name | Type | Value | - +=========================+===========+==============+ - | PRIVATE_KEY_BYTE_LENGTH | ``int`` | 32 | - +-------------------------+-----------+--------------+ - | PUBLIC_KEY_PREFIX | ``bytes`` | ``0x00`` | - +-------------------------+-----------+--------------+ - | PUBLIC_KEY_BYTE_LENGTH | ``int`` | 32 | - +-------------------------+-----------+--------------+ + +-------------------------+--------------+ + | Name | Value | + +=========================+==============+ + | PRIVATE_KEY_BYTE_LENGTH | 32 | + +-------------------------+--------------+ + | PUBLIC_KEY_PREFIX | ``0x00`` | + +-------------------------+--------------+ + | PUBLIC_KEY_BYTE_LENGTH | 32 | + +-------------------------+--------------+ """ PRIVATE_KEY_BYTE_LENGTH: int = 32 @@ -62,15 +62,15 @@ class KHOLAW_ED25519_CONST(SLIP10_ED25519_CONST): """ ``KHOLAW-ED25519`` Constants. - +-------------------------+-----------+--------------+ - | Name | Type | Value | - +=========================+===========+==============+ - | PRIVATE_KEY_BYTE_LENGTH | ``int`` | 64 | - +-------------------------+-----------+--------------+ - | PUBLIC_KEY_PREFIX | ``bytes`` | ``0x00`` | - +-------------------------+-----------+--------------+ - | PUBLIC_KEY_BYTE_LENGTH | ``int`` | 32 | - +-------------------------+-----------+--------------+ + +-------------------------+--------------+ + | Name | Value | + +=========================+==============+ + | PRIVATE_KEY_BYTE_LENGTH | 64 | + +-------------------------+--------------+ + | PUBLIC_KEY_PREFIX | ``0x00`` | + +-------------------------+--------------+ + | PUBLIC_KEY_BYTE_LENGTH | 32 | + +-------------------------+--------------+ """ PRIVATE_KEY_BYTE_LENGTH: int = 64 @@ -80,21 +80,21 @@ class SLIP10_SECP256K1_CONST: """ ``SLIP10-SECP256K1`` Constants. - +-------------------------------------+-----------------------------------+-------------+ - | Name | Type | Value | - +=====================================+===================================+=============+ - | USE | ``Literal['coincurve', 'ecdsa']`` | 'coincurve' | - +-------------------------------------+-----------------------------------+-------------+ - | POINT_COORDINATE_BYTE_LENGTH | ``int`` | 32 | - +-------------------------------------+-----------------------------------+-------------+ - | PRIVATE_KEY_BYTE_LENGTH | ``int`` | 32 | - +-------------------------------------+-----------------------------------+-------------+ - | PUBLIC_KEY_PREFIX | ``bytes`` | ``0x04`` | - +-------------------------------------+-----------------------------------+-------------+ - | PUBLIC_KEY_COMPRESSED_BYTE_LENGTH | ``int`` | 33 | - +-------------------------------------+-----------------------------------+-------------+ - | PUBLIC_KEY_UNCOMPRESSED_BYTE_LENGTH | ``int`` | 65 | - +-------------------------------------+-----------------------------------+-------------+ + +-------------------------------------+-------------+ + | Name | Value | + +=====================================+=============+ + | USE | 'coincurve' | + +-------------------------------------+-------------+ + | POINT_COORDINATE_BYTE_LENGTH | 32 | + +-------------------------------------+-------------+ + | PRIVATE_KEY_BYTE_LENGTH | 32 | + +-------------------------------------+-------------+ + | PUBLIC_KEY_PREFIX | ``0x04`` | + +-------------------------------------+-------------+ + | PUBLIC_KEY_COMPRESSED_BYTE_LENGTH | 33 | + +-------------------------------------+-------------+ + | PUBLIC_KEY_UNCOMPRESSED_BYTE_LENGTH | 65 | + +-------------------------------------+-------------+ """ USE: Literal["coincurve", "ecdsa"] = "coincurve" @@ -214,13 +214,13 @@ class PUBLIC_KEY_TYPES: """ ``PUBLIC_KEY_TYPES`` Constants. - +----------------+-----------+-----------------+ - | Name | Type | Value | - +================+===========+=================+ - | COMPRESSED | ``str`` | 'uncompressed' | - +----------------+-----------+-----------------+ - | UNCOMPRESSED | ``str`` | 'compressed' | - +----------------+-----------+-----------------+ + +----------------+-----------------+ + | Name | Value | + +================+=================+ + | COMPRESSED | 'uncompressed' | + +----------------+-----------------+ + | UNCOMPRESSED | 'compressed' | + +----------------+-----------------+ """ UNCOMPRESSED: str = "uncompressed" @@ -244,13 +244,13 @@ class WIF_TYPES: """ ``WIF_TYPES`` Constants. - +----------------+-----------+------------------+ - | Name | Type | Value | - +================+===========+==================+ - | WIF | ``str`` | 'wif' | - +----------------+-----------+------------------+ - | WIF_COMPRESSED | ``str`` | 'wif-compressed' | - +----------------+-----------+------------------+ + +----------------+------------------+ + | Name | Value | + +================+==================+ + | WIF | 'wif' | + +----------------+------------------+ + | WIF_COMPRESSED | 'wif-compressed' | + +----------------+------------------+ """ WIF: str = "wif" @@ -274,13 +274,13 @@ class ELECTRUM_V2_MODES: """ ``PUBLIC_KEY_TYPES`` Constants. - +----------------+-----------+-----------------+ - | Name | Type | Value | - +================+===========+=================+ - | STANDARD | ``str`` | 'standard' | - +----------------+-----------+-----------------+ - | SEGWIT | ``str`` | 'segwit' | - +----------------+-----------+-----------------+ + +----------------+-----------------+ + | Name | Value | + +================+=================+ + | STANDARD | 'standard' | + +----------------+-----------------+ + | SEGWIT | 'segwit' | + +----------------+-----------------+ """ STANDARD: str = "standard"