{"name":"bip66","version":"1.1.3","description":"Strict DER signature encoding/decoding.","keywords":["bip66","bitcoin"],"homepage":"https://github.com/bitcoinjs/bip66","bugs":{"url":"https://github.com/bitcoinjs/bip66/issues"},"license":"MIT","author":{"name":"Daniel Cousens"},"files":["index.js"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/bitcoinjs/bip66.git"},"scripts":{"coverage":"nyc --check-coverage --branches 100 --functions 100 tape test/*.js","lint":"standard","test":"npm run lint && npm run unit","unit":"tape test/*.js"},"devDependencies":{"nyc":"^6.4.0","standard":"^6.0.8","tape":"^4.5.1"},"gitHead":"196bcead610a321671ee742d27a232fff4ebfbe1","_id":"bip66@1.1.3","_shasum":"9d2056c9b515f27c71f282095de024478e61b8f7","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.11.0","_npmUser":{"name":"dcousens","email":"email@dcousens.com"},"dist":{"shasum":"9d2056c9b515f27c71f282095de024478e61b8f7","tarball":"http://registry-npm.ywwl.com/bip66/download/bip66-1.1.3.tgz","integrity":"sha512-487AQwf6LIzQLcM1t82Pa7Br2yL1NQ5I/l/dalDoVcrP6fnCHq1jfRaIsu5Pdoi3QL7m5PVO3E0gANFYFdpm4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1ONVxtenEcns22DjdxNvW5J++4yBVeSFyUQ2bDn5zlAiEA3lErs2DV5N+QFYfUtMA2eBydjWL9hEu+wxjpPIHfTHs="}],"size":3001,"noattachment":false,"key":"/bip66/-/bip66-1.1.3.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bip66-1.1.3.tgz_1461651779437_0.7905431850813329"},"directories":{},"readme":"# bip66\n\n[![NPM Package](https://img.shields.io/npm/v/bip66.svg?style=flat-square)](https://www.npmjs.org/package/bip66)\n[![Build Status](https://img.shields.io/travis/bitcoinjs/bip66.svg?branch=master&style=flat-square)](https://travis-ci.org/bitcoinjs/bip66)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nStrict DER signature encoding/decoding.\n\nSee [bip66](https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki).\n\n- This module **works only with [two's complement](https://en.wikipedia.org/wiki/Two's_complement) numbers**.\n- BIP66 doesn't check that `r` or `s` are fully valid.\n  - `check`/`decode` doesn't check that `r` or `s` great than 33 bytes or that this number represent valid point on elliptic curve.\n  - `encode` doesn't check that `r`/`s` represent valid point on elliptic curve.\n\n## Example\n\n``` javascript\nvar bip66 = require('bip66')\nvar r = new Buffer('1ea1fdff81b3a271659df4aad19bc4ef83def389131a36358fe64b245632e777', 'hex')\nvar s = new Buffer('29e164658be9ce810921bf81d6b86694785a79ea1e52dbfa5105148d1f0bc1', 'hex')\n\nbip66.encode(r, s)\n// Buffer <30 43 02 20 1e a1 fd ff 81 b3 a2 71 65 9d f4 aa d1 9b c4 ef 83 de f3 89 13 1a 36 35 8f e6 4b 24 56 32 e7 77 02 1f 29 e1 64 65 8b e9 ce 81 09 21 bf 81 d6 b8 66 94 78 5a 79 ea 1e 52 db fa 51 05 14 8d 1f 0b c1>\n\nvar signature = new Buffer('304302201ea1fdff81b3a271659df4aad19bc4ef83def389131a36358fe64b245632e777021f29e164658be9ce810921bf81d6b86694785a79ea1e52dbfa5105148d1f0bc1', 'hex')\nbip66.decode(signature)\n// => {\n//\tr: Buffer <1e a1 fd ff 81 b3 a2 71 65 9d f4 aa d1 9b c4 ef 83 de f3 89 13 1a 36 35 8f e6 4b 24 56 32 e7 77>,\n//\ts: Buffer <29 e1 64 65 8b e9 ce 81 09 21 bf 81 d6 b8 66 94 78 5a 79 ea 1e 52 db fa 51 05 14 8d 1f 0b c1>\n// }\n```\n\nA catch-all exception regex:\n``` javascript\n/Expected DER (integer|sequence)|(R|S) value (excessively padded|is negative)|(R|S|DER sequence) length is (zero|too short|too long|invalid)/\n```\n\n## LICENSE [MIT](LICENSE)\n","publish_time":1461651782831,"_cnpm_publish_time":1461651782831,"dist-tags":{"latest":"2.0.0"}}