Btcnano 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 btcnano-libnpm install btcnano-payment-protocol
bower install btcnano-libbower install btcnano-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 2015-2021 Btcnano, Inc. Btcnano is a trademark maintained by Btcnano, Inc.