{"name":"bitcore-payment-protocol","version":"1.2.2","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":"=4.5.2","bitcore-lib":"^0.14.0","jsrsasign":"=5.0.10","protobufjs":"=5.0.1"},"devDependencies":{"bitcore-build":"git://github.com/bitpay/bitcore-build.git","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^3.8.10","sinon":"^1.17.3"},"license":"MIT","gitHead":"955459834f74660bdb117ae736dbd649ca8976a3","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol#readme","_id":"bitcore-payment-protocol@1.2.2","_shasum":"b1128130a19c78caace9d53e849b1f098f7344b1","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"ematiu","email":"ematiu@gmail.com"},"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"}],"dist":{"shasum":"b1128130a19c78caace9d53e849b1f098f7344b1","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-1.2.2.tgz","integrity":"sha512-LPX13uh01hsiQ/DJR3gx5iPBj/5ORPpEqeKe5klLVlbTehBP1dWABsi497mfXfiym4Q0YtsbkHzIDTm07QONyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxi5BW6VwhsZCh4fX5SdLWhe8vyWqAIRXzAysw8sk+JwIgRkdXxzvg0aSHSQ2mxmFnMo73PQEGW2UFBMLJG+kpB64="}],"size":177789,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-1.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bitcore-payment-protocol-1.2.2.tgz_1489592546737_0.3285667474847287"},"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":1489592548978,"_cnpm_publish_time":1489592548978,"dist-tags":{"latest":"8.1.1"}}