{"name":"bitcore-payment-protocol","version":"1.8.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":"^5.0.1","asn1.js-rfc3280":"^4.0.0","asn1.js-rfc5280":"^3.0.0","bs58":"^4.0.1","jsrsasign":"^8.0.12","protobufjs":"=5.0.3"},"peerDependencies":{"bitcore-lib":"=0.16.0"},"devDependencies":{"bitcore-build":"git+https://github.com/bitpay/bitcore-build.git#1023e8a99cd42b9241ccafe8e34c52f308c10284","brfs":"^2.0.1","chai":"^4.2.0","gulp":"^4.0.0","sinon":"^7.1.1"},"license":"MIT","gitHead":"ef3c54b40cba996e36f539ebedf9acb378fd4e59","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol#readme","_id":"bitcore-payment-protocol@1.8.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"ematiu","email":"ematiu@gmail.com"},"dist":{"integrity":"sha512-1+C4KbcRbeXKo6YQh+n5THVNU6V9uWZB/A2v9ZWAr/Opf4dX/OIMzacI9E7Y5/sBaAPnJs/LzukpmsR9AKmpfQ==","shasum":"821af582b80fc6fd495874c5047069f82624d656","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-1.8.0.tgz","fileCount":21,"unpackedSize":373426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAcwqCRA9TVsSAnZWagAAMxEQAI8DLw3UPF49jTMFfjFo\ne8uFtTr3js6ZiC+UB7dd1+XKoXKtBSXgelSnLzwz6r8mbUV3QVYtfcvE9VRG\nUiR1MrGbGBkQhH7bgUXThslblfS+VWujbtsm0XCuqfOtwLd5vHLiHiWH9WTH\nxTV9sAYg4CP5I7+FDRAg4Sb4R4ehUMeTfgxyTF8enkKwjdUYfcP8xU0pi4jQ\nYHsQ0Yyyvxa5ODuO/MqJ48tWRYiPbCkA0yjIWiHXC9+/nzS8LGwYdfUAn/nv\ncq53G65DeQn7MFHZVParQUS8Wh5blK9gtue/IIFuV3OReMku6sEo6iTsyFHp\nrFsEsen0h4TUdSJGgAZF/EadYjLRGmHsYosV0yln+zpgBZrKsSPBtexFVu12\nBBgZdgEg+jU817FS1RyDvSG3dHjoQSf2zoT5tB/hAVinBNFlKe/nTwmPhO6q\nG3oz/cuBvDzs+mTS+6DVQEyI1zafWjCo0M0h3VzwaqzSzGakg6EaQ5YXmRlC\nBisGyOV/PjUWHBcbFy2W2qeaPFrOCOoln5YFgr3sxm1r/ekWr3OERg+w3xnX\npMq54bmVFKSN1Qg0vWOw42Y6OS8f5KOI7xsdVEVCyFRLlPmgckRSktfQMuZj\nzsUheDVqBG6L0kFuA+MlEm3YtVK3z2ZR+c2mYtWtr8VG6u0WN+mnwGXM/Syg\nT1nv\r\n=26Zo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAbylMNkWkNmdVEw6DnhaKmA/+TJiHi0+/K6d9S6CrDwIhAK/ipclGcWgmX4CfBt76PThmoBWSlU50QsjVQyE/WNlz"}],"size":180790,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-1.8.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.8.0_1543621673904_0.7605843511899844"},"_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":1543621674131,"_cnpm_publish_time":1543621674131,"dist-tags":{"latest":"8.1.1"}}