Module: bitmessage/wif

Implements WIF encoding/decoding.

Source:
See:

Methods

(static) decode(wif) → {Buffer}

Decode WIF-encoded private key (corresponded to a uncompressed public key).

Parameters:
Name Type Description
wif string

Encoded key

Source:
Returns:

Private key.

Type
Buffer

(static) encode(privateKey) → {string}

Convert private key to a WIF (corresponded to a uncompressed public key).

Parameters:
Name Type Description
privateKey Buffer

A private key to encode

Source:
Returns:

WIF-encoded private key.

Type
string