Methods
changePubkeys
- changePubkeys(start, end): Promise<string[]>
Returns Promise<string[]>
free
- free(): void
Returns void
receivePubkeys
- receivePubkeys(start, end): Promise<string[]>
Returns Promise<string[]>
toString
- toString(): string
Returns string
Static
fromMasterXPrv
- fromMasterXPrv(xprv, is_multisig, account_index, cosigner_index?): Promise<PublicKeyGenerator>
Parameters
xprv: string
is_multisig: boolean
account_index: bigint
Optional
cosigner_index: number
Static
fromString
- fromString(kpub, cosigner_index?): Promise<PublicKeyGenerator>
Parameters
kpub: string
Optional
cosigner_index: number
Static
fromXPub
- fromXPub(kpub, cosigner_index?): Promise<PublicKeyGenerator>
Parameters
kpub: string
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