Implements WIF encoding/decoding.
- Source:
- See:
Methods
(static) decode(wif) → {Buffer}
Decode WIF encoded private key.
Parameters:
Name | Type | Description |
---|---|---|
wif |
string | Encoded key |
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 |
Returns:
Encoded private key.
- Type
- string