Module: bitmessage/wif

Implements WIF encoding/decoding.

Source:
See:

Methods

(static) decode(wif) → {Buffer}

Decode WIF encoded private 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.

Parameters:
Name Type Description
privateKey Buffer

A private key to encode

Source:
Returns:

Encoded private key.

Type
string