Constructors
constructor
- new PvtKeyWallet(privateKey: Uint8Array, publicKey: Uint8Array, address: string): PvtKeyWallet
Parameters
privateKey: Uint8Array
publicKey: Uint8Array
address: string
Methods
getAccounts
- getAccounts(): { address: string; algo: string; pubkey: Uint8Array }[]
Returns { address: string; algo: string; pubkey: Uint8Array }[]
signAmino
Parameters
signerAddress: string
Optional signOptions: { extraEntropy?: boolean }
Optional extraEntropy?: boolean
signDirect
- signDirect(signerAddress: string, signDoc: SignDoc, signOptions?: { extraEntropy?: boolean }): Promise<{ signature: StdSignature; signed: SignDoc }>
Parameters
signerAddress: string
signDoc: SignDoc
Optional signOptions: { extraEntropy?: boolean }
Optional extraEntropy?: boolean
Returns Promise<{ signature: StdSignature; signed: SignDoc }>
Static generateWallet
- generateWallet(privateKey: string, addressPrefix: string): PvtKeyWallet
Parameters
privateKey: string
addressPrefix: string