Function decodePrivateKeyWif
- decodePrivateKeyWif(wifKey, sha256?): string | {
privateKey: Uint8Array;
type: WalletImportFormatType;
} Parameters
wifKey: string
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
} = internalSha256
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
Returns string | {
privateKey: Uint8Array;
type: WalletImportFormatType;
}
Decode a private key using Wallet Import Format (WIF). See encodePrivateKeyWif for details.
For the reverse, use encodePrivateKeyWif.