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 |
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 |
Returns:
WIF-encoded private key.
- Type
- string