1.0.0 • Published 5 years ago
wif-audax v1.0.0
WIF
Audax Wallet Import Format encoding/decoding module.
Example
var wifaudax = require('wif-audax')
var privateKey = new Buffer('0000000000000000000000000000000000000000000000000000000000000001', 'hex')
var key = wifaudax.encode(142, privateKey, true)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1
var obj = wifaudax.decode(key)
// => {
// version: 142,
// privateKey: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01>,
// compressed: true
//}
wifaudax.encode(obj)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1
LICENSE MIT
1.0.0
5 years ago