JSPM

wif-swift

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q23023F
  • License MIT

SwiftCash Wallet Import Format (WIF) decoding/encoding module

Package Exports

  • wif-swift

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-swift) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

WIF

NPM

SwiftCash Wallet Import Format encoding/decoding module.

Example

var wifswift = require('wif-swift')
var privateKey = new Buffer('0000000000000000000000000000000000000000000000000000000000000001', 'hex')
var key = wifswift.encode(191, privateKey, true)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1

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

wifswift.encode(obj)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1

LICENSE MIT