{"name":"bip66","version":"1.0.0","description":".","author":{"name":"Daniel Cousens"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitcoinjs/bip69.git"},"bugs":{"url":"https://github.com/bitcoinjs/bip69/issues"},"homepage":"https://github.com/bitcoinjs/bip69","keywords":["bip69","bitcoin"],"main":"index.js","scripts":{"coverage":"mocha --require blanket -R travis-cov","coverage-local":"mocha --require blanket -R html-cov","standard":"standard","test":"npm run standard && npm run unit","unit":"mocha"},"config":{"blanket":{"pattern":[""],"data-cover-never":["node_modules","test"]},"travis-cov":{"threshold":100}},"dependencies":{},"devDependencies":{"blanket":"*","mocha":"*","standard":"*","travis-cov":"*"},"gitHead":"ddbfb3d665fafa4775e9100fb6b44b146a709e3d","_id":"bip66@1.0.0","_shasum":"bfa3a54120d268c4fe18ed37b4066dacc5c38413","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.12.7","_npmUser":{"name":"dcousens","email":"email@dcousens.com"},"dist":{"shasum":"bfa3a54120d268c4fe18ed37b4066dacc5c38413","tarball":"http://registry-npm.ywwl.com/bip66/download/bip66-1.0.0.tgz","integrity":"sha512-4gcykgracLE5m8j+Kut6vjFhJULVSNHVC4ze3xtR6gYKQtGekAH+DNbN4FLejfmTknXfBpX5LggbpXE1ZLx6Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHi6f6nKWl7Z3bF4HGJucCG2ySUijGyIW3epJdKkdV6lAiEAyo/6RvcWlPDPMbPN75S5jrItgAUVb5Go5dW2H35lC44="}],"size":3848,"noattachment":false,"key":"/bip66/-/bip66-1.0.0.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"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":1440133916183,"_cnpm_publish_time":1440133916183,"dist-tags":{"latest":"2.0.0"}}