You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nitowa 1dae68b1c7 init 1 vuosi sitten
..
test init 1 vuosi sitten
.npmignore init 1 vuosi sitten
.travis.yml init 1 vuosi sitten
LICENSE init 1 vuosi sitten
README.md init 1 vuosi sitten
index.js init 1 vuosi sitten
package.json init 1 vuosi sitten

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