{"name":"bech32","version":"0.0.2","description":"Bech32 encoding / decoding","keywords":["base32","bech32","bitcoin","crypto","crytography","decode","decoding","encode","encoding"],"main":"index.js","files":["index.js"],"license":"MIT","dependencies":{},"devDependencies":{"standard":"*","tape":"^4.6.3"},"repository":{"url":"git+ssh://git@github.com/bitcoinjs/bech32.git","type":"git"},"scripts":{"standard":"standard","test":"tape test/index.js | tap-dot"},"gitHead":"b6ae3789a5f5391ab83098d34f2de4bb15c40387","bugs":{"url":"https://github.com/bitcoinjs/bech32/issues"},"homepage":"https://github.com/bitcoinjs/bech32#readme","_id":"bech32@0.0.2","_shasum":"1d23dffa54a00035a3acc5dd19ca535b20ee8118","_from":".","_npmVersion":"4.4.4","_nodeVersion":"7.7.3","_npmUser":{"name":"dcousens","email":"email@dcousens.com"},"dist":{"shasum":"1d23dffa54a00035a3acc5dd19ca535b20ee8118","tarball":"http://registry-npm.ywwl.com/bech32/download/bech32-0.0.2.tgz","integrity":"sha512-KSBsi0L8CTpf+9R+yIbiHywUObRptS1M0ihKS51w/Bo69N9EmA20QKGzEVnJNngtHrwpkjuyYOhWlO1hQW3EtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChYO5lI+ich0KX4c3OGsT8wHJji8HqQOl7HtQ0PtoAOgIgOkGMyxr6MkjYPRW7YDKZO51Yn2ROcYJNZHZZXbbw6Hw="}],"size":1870,"noattachment":false,"key":"/bech32/-/bech32-0.0.2.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bech32-0.0.2.tgz_1491115338024_0.3762250773143023"},"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":1491115338376,"_cnpm_publish_time":1491115338376,"dist-tags":{"latest":"2.0.0"}}