Neighbourhood Party Manager
    Have ideas to improve npm?Join in the discussion! »

    wif-swift

    1.0.0 • Public • Published

    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

    Install

    npm i wif-swift

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.97 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar