{"name":"bitcore-payment-protocol","version":"0.10.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"},"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":"https://github.com/bitpay/bitcore-payment-protocol.git"},"browser":"lib/browser.js","dependencies":{"asn1.js":"=0.4.1","bitcore":"^0.10.2","jsrsasign":"=0.0.3","protobufjs":"=3.0.0"},"devDependencies":{"bitcore-build":"git://github.com/bitpay/bitcore-build.git","brfs":"^1.2.0","chai":"~1.10.0","gulp":"^3.8.10"},"license":"MIT","gitHead":"490d359e383ea00e049d7321e851daacf5c9124d","bugs":{"url":"https://github.com/bitpay/bitcore-payment-protocol/issues"},"homepage":"https://github.com/bitpay/bitcore-payment-protocol","_id":"bitcore-payment-protocol@0.10.1","_shasum":"9e0255c826d0646f2a39b0dd2f0e13f2b350e4c4","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.11.15","_npmUser":{"name":"maraoz","email":"manuelaraoz@gmail.com"},"maintainers":[{"name":"eordano","email":"eordano@gmail.com"},{"name":"maraoz","email":"manuelaraoz@gmail.com"},{"name":"yemel","email":"angel.jardi@gmail.com"},{"name":"braydonf","email":"braydon@bitpay.com"}],"dist":{"shasum":"9e0255c826d0646f2a39b0dd2f0e13f2b350e4c4","tarball":"http://registry-npm.ywwl.com/bitcore-payment-protocol/download/bitcore-payment-protocol-0.10.1.tgz","integrity":"sha512-4VuGRqw8xCuAk7isWwbj/cWfQQYFv1V9QNBWdlsm/n+qkzhVV/xjiUJrIh3lbl4QeAcgqAGhTJ35e1tmupn0DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMbKL2lOSerfGWw/fsFjhF3aG0bQviHFY6RvhUffpneAiAbmKY8Mv9RX3Psx82Hlm6To8aRsNk4P1nSoMdKwNGzBw=="}],"size":148609,"noattachment":false,"key":"/bitcore-payment-protocol/-/bitcore-payment-protocol-0.10.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":1423695490543,"_cnpm_publish_time":1423695490543,"dist-tags":{"latest":"8.1.1"}}