Dashcore Payment Protocol
This library is distributed in both the npm and bower packaging systems.
npm install dashcore-libnpm install dashcore-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:
const PaymentProtocol = ;const body = PaymentProtocolPaymentRequest;const request = ;const version = pr;const pki_type = pr;const pki_data = pr;const serializedDetails = pr;const signature = pr;// Verify the signatureconst verified = request;
See CONTRIBUTING.md on the main dashcore repo for information about how to contribute.
Code released under the MIT license.
Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.