Payment Protocol (BIP70 and related) support for bitcore-mue
Last updated 3 years ago by bbobb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bitcore-payment-protocol-mue 
SYNC missed versions from official npm registry.

Bitcore-Dash Payment Protocol

NPM Package Build Status Coverage Status

A module for bitcore-dash 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-lib-mue
npm install bitcore-payment-protocol-mue
bower install bitcore-lib-mue
bower install bitcore-payment-protocol-mue

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 = require('bitcore-payment-protocol-mue');

var body = PaymentProtocol.PaymentRequest.decode(rawbody);
var request = new PaymentProtocol().makePaymentRequest(body);

var version = pr.get('payment_details_version');
var pki_type = pr.get('pki_type');
var pki_data = pr.get('pki_data');
var serializedDetails = pr.get('serialized_payment_details');
var signature = pr.get('signature');

// Verify the signature
var verified = request.verify();


See on the main bitcore-dash 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.

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

1 Versions

  • 0.1.0                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (5)
Dependents (0)

Copyright 2014 - 2016 © |