{"name":"bitcore-payment-protocol","version":"1.6.0","description":"Payment Protocol (BIP70 and related) support for bitcore","author":{"name":"BitPay","email":"dev@bitpay.com"},"main":"index.js","scripts":{"lint":"gulp lint","test":"gulp test","coverage":"gulp coverage","build":"gulp","rootcerts":"node ./update-rootcerts.js"},"contributors":[{"name":"Christopher Jeffrey","email":"chjeffrey@gmail.com"},{"name":"Manuel Araoz","email":"manuelaraoz@gmail.com"},{"name":"Ryan X. Charles","email":"ryan@bitpay.com"},{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Esteban Ordano","email":"eordano@gmail.com"},{"name":"Matias Alejo Garcia","email":"ematiu@gmail.com"}],"keywords":["bitcoin","bitcore","payment protocol","BIP70"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-payment-protocol.git"},"browser":"lib/browser.js","dependencies":{"asn1.js":"=4.9.1","asn1.js-rfc3280":"=4.0.0","asn1.js-rfc5280":"=2.0.0","bitcore-lib":"^0.15.0","bs58":"^4.0.1","jsrsasign":"^8.0.4","protobufjs":"=5.0.1"},"devDependencies":{"bitcore-build":"git+https://github.com/bitpay/bitcore-build.git#d4e8b2b2f1e2c065c3a807dcb6a6250f61d67ab3","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^3.8.10","sinon":"^1.17.3"},"license":"MIT","gitHead":"95eead8edaf80ef434287864cf5ea1846ca7efb0","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol#readme","_id":"bitcore-payment-protocol@1.6.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"ematiu","email":"ematiu@gmail.com"},"dist":{"integrity":"sha512-w9JHO6XGXj/fKMRnBIeiLgCLTnxrv3iipzdnnnEWjca/VXpv57bCDQrq2i+TZJDkN0XqW8hJqyXPgLId2mRRAg==","shasum":"805be7325c8e855b3a8852ab31efec61f75f0efd","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-1.6.0.tgz","fileCount":22,"unpackedSize":373517,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9CrznpFfvJ/3uqRUN9GgMKhl6abjIOkh6aK1k6LGcswIgH2e8xs7/9tLnrD2LxH7fwKnKB+Rq+v869vsxRUylxWY="}],"size":180882,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-1.6.0.tgz"},"maintainers":[{"name":"braydonf","email":"courier@braydon.com"},{"name":"ematiu","email":"ematiu@gmail.com"},{"name":"gabegattis","email":"gabegattis@gmail.com"},{"name":"patrickbitpay","email":"patrick@bitpay.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcore-payment-protocol_1.6.0_1519239116080_0.5294293129382062"},"_hasShrinkwrap":false,"readme":"Bitcore Payment Protocol\n=======\n\n[![NPM Package](https://img.shields.io/npm/v/bitcore-payment-protocol.svg?style=flat-square)](https://www.npmjs.org/package/bitcore-payment-protocol)\n[![Build Status](https://img.shields.io/travis/bitpay/bitcore-payment-protocol.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/bitcore-payment-protocol)\n[![Coverage Status](https://img.shields.io/coveralls/bitpay/bitcore-payment-protocol.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitcore-payment-protocol)\n\nA module for [bitcore](https://github.com/bitpay/bitcore) that implements [Payment Protocol](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki) and other related BIPs.\n\n## Getting Started\n\nThis library is distributed in both the npm  packaging systems.\n\n```sh\nnpm install bitcore-lib\nnpm install bitcore-payment-protocol\n```\n\n\nThere are many examples of how to use it on the developer guide [section for payment protocol](https://bitcore.io/api/paypro). For example, the following code would verify a payment request:\n\n```javascript\nvar PaymentProtocol = require('bitcore-payment-protocol');\n\nvar body = PaymentProtocol.PaymentRequest.decode(rawbody);\nvar request = new PaymentProtocol().makePaymentRequest(body);\n\nvar version = pr.get('payment_details_version');\nvar pki_type = pr.get('pki_type');\nvar pki_data = pr.get('pki_data');\nvar serializedDetails = pr.get('serialized_payment_details');\nvar signature = pr.get('signature');\n\n// Verify the signature\nvar verified = request.verify();\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md) on the main bitcore repo for information about how to contribute.\n\n## License\n\nCode released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).\n\nCopyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.\n","publish_time":1519239116161,"_cnpm_publish_time":1519239116161,"dist-tags":{"latest":"8.1.1"}}