This package has been deprecated

Author message:

this package has been deprecated

raidencore-payment-protocol

1.7.1 • Public • Published

Raidencore Payment Protocol

NPM Package Build Status Coverage Status

A module for raidencore-node that implements Payment Protocol and other related BIPs.

Getting Started

This library is distributed in both the npm and bower packaging systems.

npm install raidencore-lib
npm install raidencore-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 = require('raidencore-payment-protocol');
 
const body = PaymentProtocol.PaymentRequest.decode(rawbody);
const request = new PaymentProtocol().makePaymentRequest(body);
 
const version = pr.get('payment_details_version');
const pki_type = pr.get('pki_type');
const pki_data = pr.get('pki_data');
const serializedDetails = pr.get('serialized_payment_details');
const signature = pr.get('signature');
 
// Verify the signature
const verified = request.verify();

Contributing

See CONTRIBUTING.md on the main raidencore 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.

Package Sidebar

Install

npm i raidencore-payment-protocol

Weekly Downloads

2

Version

1.7.1

License

MIT

Unpacked Size

373 kB

Total Files

24

Last publish

Collaborators

  • npm