{"name":"wif","version":"5.0.0","description":"Bitcoin Wallet Import Format (WIF) decoding/encoding module","author":{"name":"Daniel Cousens"},"type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitcoinjs/wif.git"},"bugs":{"url":"https://github.com/bitcoinjs/wif/issues"},"homepage":"https://github.com/bitcoinjs/wif","keywords":["bitcoin","base58","base58check","decode","decoding","encoding","encode","key","private","wif"],"main":"src/cjs/index.cjs","module":"src/esm/index.js","types":"src/cjs/index.d.ts","exports":{".":{"require":"./src/cjs/index.cjs","import":"./src/esm/index.js","types":"./src/cjs/index.d.ts"}},"scripts":{"build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix","clean":"rimraf src","postbuild":"find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;","gitdiff":"npm run build && git diff --exit-code","coverage-report":"c8 report --reporter=lcov","coverage":"c8 --check-coverage --branches 90 --functions 90 npm run unit","standard":"ts-standard --ignore src --ignore test","test":"npm run standard && npm run coverage","unit":"tape test/*.js"},"dependencies":{"bs58check":"^4.0.0"},"devDependencies":{"@types/node":"^20.14.2","c8":"^10.1.2","rimraf":"^5.0.7","tape":"^5.3.0","ts-standard":"^12.0.2","typescript":"^5.4.5","uint8array-tools":"0.0.7"},"gitHead":"93a373a7ca39ffd6a934a7061dae21929695ae64","_id":"wif@5.0.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-iFzrC/9ne740qFbNjTZ2FciSRJlHIXoxqk/Y5EnE08QOXu1WjJyCCswwDTYbohAOEnlCtLaAAQBhyaLRFh2hMA==","shasum":"445e44b8f62e155144d1c970c01ca2ba3979cc3f","tarball":"http://registry-npm.ywwl.com/wif/download/wif-5.0.0.tgz","fileCount":6,"unpackedSize":7428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8GV5Nh+qSI6FZmgzDAfVViM3QIJs/H9cezzCE9hK5CwIgeYEZtxq3itHylc7Y1KWct/6EWrSLL5Dcwx5A0l7dCm8="}],"size":2762,"noattachment":false,"key":"/wif/-/wif-5.0.0.tgz"},"_npmUser":{"name":"junderw","email":"jonathan.underwood4649@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wif_5.0.0_1719315946664_0.07713449603484324"},"_hasShrinkwrap":false,"readme":"# WIF\n[![TRAVIS](https://secure.travis-ci.org/bitcoinjs/wif.png)](http://travis-ci.org/bitcoinjs/wif)\n[![NPM](http://img.shields.io/npm/v/wif.svg)](https://www.npmjs.org/package/wif)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nBitcoin Wallet Import Format encoding/decoding module.\n\n\n## Example\n\n``` javascript\nimport * as wif from \"wif\"\nvar privateKey = Buffer.from('0000000000000000000000000000000000000000000000000000000000000001', 'hex')\nvar key = wif.encode({version: 128, privateKey, compressed: true}) // for the testnet use: wif.encode(239, ...\n// => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\n\nvar obj = wif.decode(key)\n// => {\n//\tversion: 128,\n//\tprivateKey: Uint8Array(32) [\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 1\n//   ],\n//\tcompressed: true\n//}\n\nwif.decode(key, 0x09)\n// => Error: Invalid network version\n\n// alternative syntax\nwif.encode(obj)\n// => KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\n```\n\n## LICENSE [MIT](LICENSE)\n","publish_time":1719315946816,"maintainers":[{"name":"fanatid","email":"fanatid@ya.ru"},{"name":"jprichardson","email":"jprichardson@gmail.com"},{"name":"junderw","email":"jonathan.underwood4649@gmail.com"}],"_cnpm_publish_time":1719315946816,"dist-tags":{"latest":"5.0.0"}}