
BIP47 Payment Code support for bitcore
=======

A module for bitcore that implements Payment Code
Getting Started
This library is distributed in both the npm and bower packaging systems.
npm install bitcore-payment-code
bower install bitcore-payment-code
var PaymentCode = require('bitcore-payment-code');
var xPrivKey = MasterPrivKey.derive("m/47'/0'/0'");
var xPubKey = xPrivKey.hdPublicKey;
var alicePc = new PaymentCode([xPubKey]);
var serializedPaymentCode = alicePc.toString();
var aliceNotificationPubKey = alicePc.publicKey;
var aliceNotificationAddress = aliceNotificationPubKey.toAddress();
var paymentInfo = alice.makePaymentInfo(BobPaymentCode, xPrivKey, index, outpoint);
{
publicKeys: [ '023ded791973898f6892cead1b62ba57b9e5dc6c45aeaf0f20813acec96540cec1' ],
paymentAddress: '1AJ3gNTaJ96NBDcj4cVmPZVBB7sF9rVA31',
notificationOutputs: [ '010003874d18c82ce5fa774d3cefa16129159cc893007015e5791c0e1d1edba8d4fec48654656a77d16a1c25aaf61423c56973f71d526aab8a10fcc6cb65f3f21c403d00000000000000000000000000' ],
notificationAddresses: [ '14L2fpcYwQQMmJvVJeewyuvdGfi49HmCZY' ] }
}
Contributing
See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.
License
Code released under the MIT license.
Copyright 2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.