b70
Payment protocol (BIP70) for bcoin.
Usage
const b70 = ;// Create a payment request.const req =version: 1paymentDetails:network: 'testnet'paymentUrl: 'http://bcoin.io/payment'memo: 'foobar'time: Mathexpires: Math + 3600outputs:value: 10000 script: Buffervalue: 50000 script: BuffermerchantData: foo: 'bar';// Sign it.req; // Certificate Chainreq; // DER formatted private key// Serialize to protobuf format.const raw = req;
Contribution and License Agreement
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
License
- Copyright (c) 2017, Christopher Jeffrey (MIT License).
See LICENSE for more info.