{"name":"bech32","version":"0.0.1","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"},"gitHead":"803034cc658b3dfaf0ae6a06d631c82da35b610c","bugs":{"url":"https://github.com/bitcoinjs/bech32/issues"},"homepage":"https://github.com/bitcoinjs/bech32#readme","_id":"bech32@0.0.1","_shasum":"da6da04b309c9770e61e9a7c317d74c0bce3052b","_from":".","_npmVersion":"4.4.4","_nodeVersion":"7.7.3","_npmUser":{"name":"dcousens","email":"email@dcousens.com"},"dist":{"shasum":"da6da04b309c9770e61e9a7c317d74c0bce3052b","tarball":"http://registry-npm.ywwl.com/bech32/download/bech32-0.0.1.tgz","integrity":"sha512-LB74hMz5PLZX1Tcjl9yuY8wDtL+DvJTFM/8Vml66/4N5s6OUe7dJQP6l+v+KJl4bywkKSSyij+RNOu0EtDeV4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2s8dZ7SCkMmBqOkH9GTqfcYZHHNoS2UlsdPv/rUIbhAiB2WWvr+oyMWa93vRQaOe0nZGP1vwud2fYJd9oJDvri4w=="}],"size":1586,"noattachment":false,"key":"/bech32/-/bech32-0.0.1.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bech32-0.0.1.tgz_1490956313291_0.9111667913384736"},"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":1490956313574,"_cnpm_publish_time":1490956313574,"dist-tags":{"latest":"2.0.0"}}