{"name":"bitcore-payment-protocol","version":"1.5.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":"63138a1685be8db552390b3c763592a1e7fd07ae","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol#readme","_id":"bitcore-payment-protocol@1.5.0","_npmVersion":"5.5.1","_nodeVersion":"8.5.0","_npmUser":{"name":"ematiu","email":"ematiu@gmail.com"},"dist":{"integrity":"sha512-ShBZ9eMpP2bS6phKHTdL2AonYzUYvc1xdsB/Ot1mG9G2o8Tmx44zNL5+JpOQ2VYk3FtBFQZzpnLPIA19Apvi1g==","shasum":"fd9bb8e0595c65326dc3f9d135d2bbaa0bde2590","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-1.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk+398ZAHxdfGFhwigk/eE5GRAz4Ntt1VvAhcZ4JSRSQIgQB7xAMm502/e8aN6/YLlXX2CFdK3n+ohnpyRd2ebM70="}],"size":180682,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-1.5.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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcore-payment-protocol-1.5.0.tgz_1509118849701_0.051654896000400186"},"directories":{},"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":1509118849794,"_cnpm_publish_time":1509118849794,"dist-tags":{"latest":"8.1.1"}}