Constant Values

class hdwallet.consts.SLIP10_ED25519_CONST

SLIP10-ED25519 Constants.

Name

Value

PRIVATE_KEY_BYTE_LENGTH

32

PUBLIC_KEY_PREFIX

0x00

PUBLIC_KEY_BYTE_LENGTH

32

class hdwallet.consts.KHOLAW_ED25519_CONST

KHOLAW-ED25519 Constants.

Name

Value

PRIVATE_KEY_BYTE_LENGTH

64

PUBLIC_KEY_PREFIX

0x00

PUBLIC_KEY_BYTE_LENGTH

32

class hdwallet.consts.SLIP10_SECP256K1_CONST

SLIP10-SECP256K1 Constants.

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

class hdwallet.consts.PUBLIC_KEY_TYPES

PUBLIC_KEY_TYPES Constants.

Name

Value

COMPRESSED

‘uncompressed’

UNCOMPRESSED

‘compressed’

classmethod get_types() List[str]

Get a list of all public key types.

Returns:

List of public key types.

Return type:

List[str]

class hdwallet.consts.WIF_TYPES

WIF_TYPES Constants.

Name

Value

WIF

‘wif’

WIF_COMPRESSED

‘wif-compressed’

classmethod get_types() List[str]

Get a list of all WIF types.

Returns:

List of WIF types.

Return type:

List[str]

class hdwallet.consts.SEMANTICS

BIP141 SEMANTICS Constants.

Name

Value

P2WPKH

‘p2wpkh’

P2WPKH_IN_P2SH

‘p2wpkh-in-p2sh’

P2WSH

‘p2wsh’

P2WSH_IN_P2SH

‘p2wsh-in-p2sh’

classmethod get_types() List[str]

Get a list of all BIP141 semantic types.

Returns:

List of BIP141 semantic types.

Return type:

List[str]

class hdwallet.consts.MODES

Electrum-V2 MODES Constants.

Name

Value

STANDARD

‘standard’

SEGWIT

‘segwit’

classmethod get_modes() List[str]

Get a list of all Electrum V2 modes.

Returns:

List of Electrum V2 modes.

Return type:

List[str]