{"name":"bech32","version":"0.0.3","description":"Bech32 encoding / decoding","keywords":["base32","bech32","bitcoin","crypto","crytography","decode","decoding","encode","encoding"],"main":"index.js","files":["index.js"],"license":"MIT","dependencies":{},"devDependencies":{"nyc":"^10.2.0","standard":"*","tape":"^4.6.3","tap-dot":"*"},"repository":{"url":"git+ssh://git@github.com/bitcoinjs/bech32.git","type":"git"},"scripts":{"coverage":"nyc --check-coverage --branches 90 --functions 90 tape test/*.js","standard":"standard","test":"tape test/*.js | tap-dot"},"gitHead":"b3bc5d82896c45d046b74ae18ee13681f4212462","bugs":{"url":"https://github.com/bitcoinjs/bech32/issues"},"homepage":"https://github.com/bitcoinjs/bech32#readme","_id":"bech32@0.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"dcousens","email":"npm@dcousens.com"},"dist":{"integrity":"sha512-O+K1w8P/aAOLcYwwQ4sbiPYZ51ZIW95lnS4/6nE8Aib/z+OOddQIIPdu2qi94qGDp4HhYy/wJotttXKkak1lXg==","shasum":"736747c4a6531c5d8937d0400498de30e93b2f9c","tarball":"http://registry-npm.ywwl.com/bech32/download/bech32-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYGz4SJjgDjxsWS5DuZbA7JgBtUzlH3relgUHjtg7dtAiEAmy05Hqg9bNQDBZsy58bz3vi4HDBTa3/eEcFHYjHDowQ="}],"size":2001,"noattachment":false,"key":"/bech32/-/bech32-0.0.3.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bech32-0.0.3.tgz_1502757297950_0.5429511414840817"},"directories":{},"readme":"# bech32\n[![build status](https://secure.travis-ci.org/bitcoinjs/bech32.png)](http://travis-ci.org/bitcoinjs/bech32)\n[![Version](http://img.shields.io/npm/v/bech32.svg)](https://www.npmjs.org/package/bech32)\n\nA [BIP173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)/[BIP350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki) compatible Bech32/Bech32m encoding/decoding library.\n\n\n## Example\n``` javascript\nlet { bech32, bech32m } = require('bech32')\n\nbech32.decode('abcdef1qpzry9x8gf2tvdw0s3jn54khce6mua7lmqqqxw')\n// => {\n// \t prefix: 'abcdef',\n// \t words: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]\n// }\nbech32m.decode('abcdef1l7aum6echk45nj3s0wdvt2fg8x9yrzpqzd3ryx')\n// => {\n// \t prefix: 'abcdef',\n// \t words: [31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]\n// }\n\n// toWords etc. are available on both bech32 and bech32m objects\nlet words = bech32.toWords(Buffer.from('foobar', 'utf8'))\nbech32.encode('foo', words)\n// => 'foo1vehk7cnpwgry9h96'\nbech32m.encode('foo', words)\n// => 'foo1vehk7cnpwgkc4mqc'\n```\n\n\n### Advanced\nBIP173 enforces a limitation of 90 characters,  if extend the `LIMIT` parameter beyond this,  be aware that the [effectiveness of checksum decreases as the length increases](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#checksum-design).\n\nIt is highly recommended **NOT** exceed 1023 characters, as the module could only guarantee detecting 1 error.\n\n\n## Credits\n- [Peter Wuille](https://github.com/sipa/bech32) for the reference JavaScript implementation, and for authoring the Bech32 [BIP173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki) and Bech32m [BIP350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki).\n\n\n## License [MIT](LICENSE)\n","publish_time":1502757298465,"_cnpm_publish_time":1502757298465,"dist-tags":{"latest":"2.0.0"}}