Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Payment protocol (BIP70) for bcoin.
const b70 = require('b70');
// Create a payment request.
const req = new b70.PaymentRequest({
version: 1,
paymentDetails: {
network: 'testnet',
paymentUrl: 'http://bcoin.io/payment',
memo: 'foobar',
time: Math.floor(Date.now() / 1000),
expires: Math.floor(Date.now() / 1000) + 3600,
outputs: [
{ value: 10000, script: Buffer.alloc(0) },
{ value: 50000, script: Buffer.alloc(0) }
],
merchantData: { foo: 'bar' }
}
});
// Sign it.
req.setChain([crt]); // Certificate Chain
req.sign(key); // DER formatted private key
// Serialize to protobuf format.
const raw = req.toRaw();
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>
See LICENSE for more info.
FAQs
BIP70 for bcoin
The npm package b70 receives a total of 3 weekly downloads. As such, b70 popularity was classified as not popular.
We found that b70 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.