Allows to derive child HD Key
{HDKey} - The HDKey parent instance
{number} - Index of child
{boolean} - hardened or no
A promise that resolves child key
Allows to derive HD key by path
{HDKey} - The HDKey parent instance
{string} - Path of children
A promise that resolves key by path
Convert a HDKey to a public key
{HDKey} - The HDKey to be converted into a public key
Optional
opts: NetworkVersion{NetworkVersion=} - Network version
Converts a HDKey to a wallet ID
{HDKey} - The HDKey to be converted into a wallet id.
Wallet id from used key
Converts an HDKey instance to an extended private key (xprv)
{HDKey} - The HDKey instance to convert
Optional
opts: NetworkVersion{NetworkVersion=} - Optional, containing the version
A promise that resolves to the xPrivateKey string
Convert a HDKey to a xPublicKey
{HDKey} - The HDKey instance to convert
Optional
opts: NetworkVersion{NetworkVersion=} - Optional, containing the version
Derives an Identity HDKey from a mnemonic phrase.
{string} - The BIP39 mnemonic phrase.
Optional
identityIndex: number{number} - The identity index (default: 0).
Optional
keyIndex: number{number} - The key index within the identity (default: 0).
Optional
salt: string{string=} - Optional salt for seed derivation.
Optional
verify: boolean{boolean=} - Whether to verify the mnemonic during derivation.
Optional
opts: HDFromSeedOptions & WalletToIdentityKeyOpts{(HDFromSeedOptions & WalletToIdentityKeyOpts)=} - Additional options for HD seed derivation and wallet-to-identity conversion.
A promise that resolves to the derived identity HDKey.
Returns seed from mnemonic phrase
{string} - The BIP39 mnemonic phrase.
Optional
salt: string{string=} - Optional salt for seed derivation.
Optional
verify: boolean{boolean=} - Whether to verify the mnemonic during derivation.
Seed bytes
Returns wallet from mnemonic phrase
{string} - The BIP39 mnemonic phrase.
Optional
salt: string{string=} - Optional salt for seed derivation.
Optional
verify: boolean{boolean=} - Whether to verify the mnemonic during derivation.
Optional
opts: HDFromSeedOptions{HDFromSeedOptions=} - Optional derivation settings
Wallet from mnemonic
Convert a private key to WIF
{Uint8Array} - Private key bytes
Optional
opts: NetworkVersion{NetworkVersion=} - Optional options with network version
WIF
Convert public key to address
{Uint8Array} - Bytes of public key
Optional
opts: NetworkVersion{NetworkVersion=} - Optional options with network version
address string
Convert seed bytes to wallet
{Uint8Array} - seed bytes
Optional
opts: HDFromSeedOptions{HDFromSeedOptions?} - Optional options with network version
Returns identity key from wallet
{HDWallet | HDKey} - wallet that will be used
{number} - index of identity for wallet
{number} - index of key for identity
{WalletToIdentityKeyOpts=} - optional options
Allows to convert xKey to HDXKey
{string} - String with xKey
Optional
opts: HDFromXKeyOptions{HDFromXKeyOptions=} - Optional options
Collection of functions to work with private keys and seed phrases