Methods
changeAddress
- changeAddress(networkType, index): Address
changeAddressAsString
- changeAddressAsString(networkType, index): string
Returns string
changeAddressAsStrings
- changeAddressAsStrings(networkType, start, end): string[]
Returns string[]
changeAddresses
- changeAddresses(networkType, start, end): Address[]
changePubkey
- changePubkey(index): PublicKey
changePubkeyAsString
- changePubkeyAsString(index): string
Returns string
changePubkeys
- changePubkeys(start, end): (string | PublicKey)[]
Returns (string | PublicKey)[]
changePubkeysAsStrings
- changePubkeysAsStrings(start, end): string[]
Returns string[]
free
- free(): void
Returns void
receiveAddress
- receiveAddress(networkType, index): Address
receiveAddressAsString
- receiveAddressAsString(networkType, index): string
Returns string
receiveAddressAsStrings
- receiveAddressAsStrings(networkType, start, end): string[]
Returns string[]
receiveAddresses
- receiveAddresses(networkType, start, end): Address[]
receivePubkey
- receivePubkey(index): PublicKey
receivePubkeyAsString
- receivePubkeyAsString(index): string
Returns string
receivePubkeys
- receivePubkeys(start, end): (string | PublicKey)[]
Returns (string | PublicKey)[]
receivePubkeysAsStrings
- receivePubkeysAsStrings(start, end): string[]
Returns string[]
toString
- toString(): string
Returns string
Static
fromMasterXPrv
- fromMasterXPrv(xprv, is_multisig, account_index, cosigner_index?): PublicKeyGenerator
Parameters
xprv: string | XPrv
is_multisig: boolean
account_index: bigint
Optional
cosigner_index: number
Static
fromXPub
- fromXPub(kpub, cosigner_index?): PublicKeyGenerator
Parameters
kpub: string | XPub
Optional
cosigner_index: number
Helper class to generate public keys from an extended public key (XPub) that has been derived up to the co-signer index.
Please note that in Kaspa master public keys use
kpub
prefix.See
PrivateKeyGenerator, XPub, XPrv, Mnemonic