{"name":"bip66","version":"1.1.4","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":"52147a4b365ac24bb3d77d5af50d300498dda0ff","_id":"bip66@1.1.4","_shasum":"8a59f8ae16eccb94681c3c2a7b224774605aadfb","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.11.0","_npmUser":{"name":"dcousens","email":"email@dcousens.com"},"dist":{"shasum":"8a59f8ae16eccb94681c3c2a7b224774605aadfb","tarball":"http://registry-npm.ywwl.com/bip66/download/bip66-1.1.4.tgz","integrity":"sha512-LjqtlYrZcblH6ijpKE/BeCFQsjcO0umuLWbN73IOfCwA75J4dUcRC4xcs1jshp/FUWUaVFdDRSuihYDghcrlrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/ibPVRfcJrRyKz2bG3R6BRLp5vAVm32hunWzhVAlpYAiEA2kAIYjfqrHaZ+zCXMpg0PDWBDEsxI8unwpqzkbIU6GQ="}],"size":2987,"noattachment":false,"key":"/bip66/-/bip66-1.1.4.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bip66-1.1.4.tgz_1461738558360_0.0511821040417999"},"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":1461738558777,"_cnpm_publish_time":1461738558777,"dist-tags":{"latest":"2.0.0"}}