Encode a private key using Wallet Import Format (WIF).
WIF encodes the 32-byte private key, a 4-byte checksum, and a
indicating the intended usage for the private key. See
WalletImportFormatType for details.
To indicate that the private key is intended for use in a P2PKH address using
the compressed form of its derived public key, a
0x01 is appended to the
payload prior to encoding. For the uncompressed construction, the extra byte
a 32-byte Secp256k1 ECDSA private key
the intended usage of the private key (e.g.
an implementation of sha256
Returns the sha256 hash of the provided input.
To incrementally construct a sha256 hash (e.g. for streaming), use
a Uint8Array to be hashed using sha256
Generated using TypeDoc