{"name":"bitcore-payment-protocol","version":"1.0.1","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"}],"keywords":["bitcoin","bitcore"],"repository":{"type":"git","url":"git+https://github.com/bitpay/bitcore-payment-protocol.git"},"browser":"lib/browser.js","dependencies":{"asn1.js":"=0.4.1","bitcore-lib":"^0.13.7","jsrsasign":"=0.0.3","protobufjs":"=3.0.0"},"devDependencies":{"bitcore-build":"git://github.com/bitpay/bitcore-build.git#a93a9970e3a0b3f948309730d4e4af5100dddf5a","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^3.8.10"},"license":"MIT","gitHead":"d548cbad05d107a2a7a6bffbad3fc4584d735be1","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol#readme","_id":"bitcore-payment-protocol@1.0.1","_shasum":"672dca2e706c66bf2985add45239982dc8d71e5d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"braydonf","email":"braydon@bitpay.com"},"maintainers":[{"name":"braydonf","email":"braydon@bitpay.com"},{"name":"ematiu","email":"ematiu@gmail.com"},{"name":"gabegattis","email":"gabegattis@gmail.com"}],"dist":{"shasum":"672dca2e706c66bf2985add45239982dc8d71e5d","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-1.0.1.tgz","integrity":"sha512-d7H4PrE0tA+kQPLKDO5/JSq/HpfZ9v310di3KOzAEtK+0p+rJ4GxVafGseVo4meF/zXGuFr3P3Rq08zKQMOK+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1xsQwUOZuLJ+sipv3LoEMOgDCmcfJN0EAU3kPw/EVLAiEApT3IRPXvUDW1gcv4+VbwfrZIWr8ssuPf1T4/kgp1vs8="}],"size":180649,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-1.0.1.tgz"},"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":1445549879002,"_cnpm_publish_time":1445549879002,"dist-tags":{"latest":"8.1.1"}}