JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 258914
  • Score
    100M100P100Q214721F
  • License MIT

Bitcoin Wallet Import Format (WIF) encoding module

Package Exports

  • wif

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wif) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

WIF.js

TRAVIS NPM

js-standard-style

Bitcoin Wallet Import Format encoding/decoding module.

Example

var wif = require('wif')

var d = new Buffer('0000000000000000000000000000000000000000000000000000000000000001')

wif.encode(128, d, true)
// => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn

wif.decode(128, 'KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn')
// => {
//	version: 128,
//	d: <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
//}

LICENSE MIT