root 7621d6d22a 221005-1449-Kim 2 жил өмнө
..
test 7621d6d22a 221005-1449-Kim 2 жил өмнө
.npmignore 7621d6d22a 221005-1449-Kim 2 жил өмнө
.travis.yml 7621d6d22a 221005-1449-Kim 2 жил өмнө
LICENSE 7621d6d22a 221005-1449-Kim 2 жил өмнө
README.md 7621d6d22a 221005-1449-Kim 2 жил өмнө
index.js 7621d6d22a 221005-1449-Kim 2 жил өмнө
package.json 7621d6d22a 221005-1449-Kim 2 жил өмнө

README.md

WIF

TRAVIS NPM

js-standard-style

Bitcoin Wallet Import Format encoding/decoding module.

Example

var wif = require('wif')

var privateKey = new Buffer('0000000000000000000000000000000000000000000000000000000000000001', 'hex')

var key = wif.encode(128, privateKey, true)
// => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn

var obj = wif.decode(key)
// => {
//	version: 128,
//	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
//}

wif.encode(obj)
// => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn

LICENSE MIT