
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@ducatuscore/wallet-client
Advanced tools
The official client library for ducatuscore-wallet-service
This package communicates with DWS Ducauscore wallet service using the REST API. All REST endpoints are wrapped as simple async methods. All relevant responses from DWS are checked independently by the peers, thus the importance of using this library when talking to a third party DWS instance.
See [Ducatuscore-wallet] (https://google.com) for a simple CLI wallet implementation that relays on DWS and uses ducatuscore-wallet-client.
You can start using ducatuscore-wallet-client via NPM: by running npm install @ducatuscore/wallet-client from your console.
Start your own local Ducatuscore wallet service instance. In this example we assume you have ducatuscore-wallet-service running on your localhost:3232.
Then create two files irene.js and tomas.js with the content below:
var Client = require('@ducatusducatuscore-wallet-client');
var fs = require('fs');
var DWS_INSTANCE_URL = 'https://localhost:3232/';
var client = new Client({
baseUrl: DWS_INSTANCE_URL,
verbose: false,
});
client.createWallet('My Wallet', 'Irene', 2, 2, { network: 'testnet' }, function (err, secret) {
if (err) {
console.log('error: ', err);
return;
}
// Handle err
console.log('Wallet Created. Share this secret with your copayers: ' + secret);
fs.writeFileSync('irene.dat', client.export());
});
var Client = require('@ducatuscore/wallet-client');
var fs = require('fs');
var DWS_INSTANCE_URL = 'https://localhost:3232';
var secret = process.argv[2];
if (!secret) {
console.log('./tomas.js <Secret>');
process.exit(0);
}
var client = new Client({
baseUrl: DWS_INSTANCE_URL,
verbose: false,
});
client.joinWallet(secret, 'Tomas', {}, function (err, wallet) {
if (err) {
console.log('error: ', err);
return;
}
console.log('Joined ' + wallet.name + '!');
fs.writeFileSync('tomas.dat', client.export());
client.openWallet(function (err, ret) {
if (err) {
console.log('error: ', err);
return;
}
console.log('\n\n** Wallet Info', ret); //TODO
console.log('\n\nCreating first address:', ret); //TODO
if (ret.wallet.status == 'complete') {
client.createAddress({}, function (err, addr) {
if (err) {
console.log('error: ', err);
return;
}
console.log('\nReturn:', addr);
});
}
});
});
Install @ducatuscore/wallet-client before start:
npm i @ducatuscore/wallet-client
Create a new wallet with the first script:
$ node irene.js
info Generating new keys
Wallet Created. Share this secret with your copayers: JbTDjtUkvWS4c3mgAtJf4zKyRGzdQzZacfx2S7gRqPLcbeAWaSDEnazFJF6mKbzBvY1ZRwZCbvT
Join to this wallet with generated secret:
$ node tomas.js JbTDjtUkvWS4c3mgAtJf4zKyRGzdQzZacfx2S7gRqPLcbeAWaSDEnazFJF6mKbzBvY1ZRwZCbvT
Joined My Wallet!
Wallet Info: [...]
Creating first address:
Return: [...]
FAQs
Client for ducatuscore-wallet-service
The npm package @ducatuscore/wallet-client receives a total of 3 weekly downloads. As such, @ducatuscore/wallet-client popularity was classified as not popular.
We found that @ducatuscore/wallet-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.