Constant Values¶
- consts.SLIP10_ED25519_CONST¶
type: Record<string, any>
SLIP10 constants for Ed25519 curve.
Name
Value
PRIVATE_KEY_BYTE_LENGTH
32
PUBLIC_KEY_PREFIX
integerToBytes(0x00)PUBLIC_KEY_BYTE_LENGTH
32
- consts.KHOLAW_ED25519_CONST¶
type: Record<string, any>
KHOLAW constants for Ed25519 curve.
Name
Value
PRIVATE_KEY_BYTE_LENGTH
64
PUBLIC_KEY_PREFIX
integerToBytes(0x00)PUBLIC_KEY_BYTE_LENGTH
32
- consts.SLIP10_SECP256K1_CONST¶
type: Record<string, any>
SLIP10 constants for SECP256K1 curve.
Name
Value
POINT_COORDINATE_BYTE_LENGTH
32
PRIVATE_KEY_BYTE_LENGTH
32
PRIVATE_KEY_UNCOMPRESSED_PREFIX
0x00PRIVATE_KEY_COMPRESSED_PREFIX
0x01PUBLIC_KEY_UNCOMPRESSED_PREFIX
integerToBytes(0x04)PUBLIC_KEY_COMPRESSED_BYTE_LENGTH
33
PUBLIC_KEY_UNCOMPRESSED_BYTE_LENGTH
65
CHECKSUM_BYTE_LENGTH
4
- class consts.PUBLIC_KEY_TYPES()¶
Enum-like class for public key types.
exported from
constsName
Value
UNCOMPRESSED
uncompressed
COMPRESSED
compressed
- consts.PUBLIC_KEY_TYPES.COMPRESSED¶
type: readonly string
- consts.PUBLIC_KEY_TYPES.UNCOMPRESSED¶
type: readonly string
- static consts.PUBLIC_KEY_TYPES.getTypes()¶
Gets all public key types.
- Returns:
string[] – List of public key types.
- class consts.WIF_TYPES()¶
Enum-like class for WIF key types.
exported from
constsName
Value
UNCOMPRESSED
uncompressed
WIF_COMPRESSED
wif-compressed
- consts.WIF_TYPES.WIF¶
type: readonly string
- consts.WIF_TYPES.WIF_COMPRESSED¶
type: readonly string
- static consts.WIF_TYPES.getTypes()¶
Gets all WIF types.
- Returns:
string[] – List of WIF types.
- class consts.SEMANTICS()¶
Enum-like class for Bitcoin address semantics.
exported from
constsName
Value
P2WPKH
p2wpkh
P2WPKH_IN_P2SH
p2wpkh-in-p2sh
P2WSH
p2wsh-in-p2sh
P2WSH_IN_P2SH
p2wsh-in-p2sh
- consts.SEMANTICS.P2WPKH¶
type: readonly string
- consts.SEMANTICS.P2WPKH_IN_P2SH¶
type: readonly string
- consts.SEMANTICS.P2WSH¶
type: readonly string
- consts.SEMANTICS.P2WSH_IN_P2SH¶
type: readonly string
- static consts.SEMANTICS.getTypes()¶
Gets all semantic types.
- Returns:
string[] – List of semantic types.
- class consts.MODES()¶
Enum-like class for operational modes.
exported from
constsName
Value
STANDARD
standard
SEGWIT
segwit
- consts.MODES.SEGWIT¶
type: readonly string
- consts.MODES.STANDARD¶
type: readonly string
- static consts.MODES.getTypes()¶
Gets all mode types.
- Returns:
string[] – List of mode types.