Function decodePrivateKeyWif

  • Decode a private key using Wallet Import Format (WIF). See encodePrivateKeyWif for details.

    For the reverse, use encodePrivateKeyWif.

    Parameters

    • wifKey: string

      the private key to decode (in Wallet Import Format)

    • sha256: {
          hash: ((input) => Uint8Array) & ((input) => Uint8Array);
      } = internalSha256

      an implementation of sha256

      • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns string | {
        privateKey: Uint8Array;
        type: WalletImportFormatType;
    }

Generated using TypeDoc