Bitcore Payment Protocol
A module for bitcore that implements Payment Protocol and other related BIPs.
Getting Started
This library is distributed in both the npm and bower packaging systems.
npm install bitcore-libnpm install bitcore-payment-protocol
bower install bitcore-libbower install bitcore-payment-protocol
There are many examples of how to use it on the developer guide section for payment protocol. For example, the following code would verify a payment request:
var PaymentProtocol = ; var body = PaymentProtocolPaymentRequest;var request = ; var version = pr;var pki_type = pr;var pki_data = pr;var serializedDetails = pr;var signature = pr; // Verify the signaturevar verified = request;
Contributing
See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.
License
Code released under the MIT license.
Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.