
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@secux/app-dash
Advanced tools
@secux/app-dash
SecuX Hardware Wallet DASH API
import { SecuxDASH } from "@secux/app-dash";
First, create instance of ITransport.
Get address by BIP32 path.
const path = "m/84'/5'/0'/0/0";
const address = await device.getAddress(path);
/*
// transfer data to hardware wallet by custom transport layer.
const data = SecuxDASH.prepareAddress(path);
const response = await device.Exchange(data);
const address = SecuxDASH.resolveAddress(response, path);
*/
const address = await device.getAddress("m/49'/5'/0'/0/0");
const address = await device.getAddress("m/44'/5'/0'/0/0");
Sign transaction (support legacy transaction currently).
const inputs = [
{
hash: "d1471f2c9ab2b7d1814c80f18f270efa779a489d696ee8db2ee13360111e486d",
vout: 0,
satoshis: 100000,
path: "m/44'/5'/0'/0/0",
// for custom transport layer, each utxo need publickey.
// publickey: "026fa9a6f213b6ba86447965f6b4821264aaadd7521f049f00db9c43a770ea7405"
},
{
hash: "cfdf9cac901d2b58d94b5794f71505ad13ef54739174a46657a11b74013b63de",
vout: 0,
satoshis: 99504,
path: "m/44'/5'/2'/0/0",
// for custom transport layer, each utxo need publickey.
// publickey: "033bf91bf2d1798e11c09c6523a92bbe9d0fbde3b62af0daea97beaa51a05b0d31"
}
];
const to = {
address: "XefQmd7TDrF8cMUqTBuP5FUfA1frnUc8pW",
satoshis: 99999
};
const utxo = {
path: "m/44'/5'/3'/0/4",
satoshis: 88888,
// for custom transport layer, each utxo need publickey.
// publickey: "02df0a5e4d0a03f70452f236c83995b5e37033931dab340b2570132ee727f9427b"
};
const { raw_tx } = await device.sign(inputs, { to, utxo });
/*
// transfer data to hardware wallet by custom transport layer.
const { commandData, rawTx } = SecuxDASH.prepareSign(inputs, { to, utxo });
const response = await device.Exchange(commandData);
const signed = SecuxDASH.resloveTransaction(response, rawTx, inputs.map(x => x.publickey));
*/
Similar to @secux/app-btc.
FAQs
SecuX Hardware Wallet DASH API
We found that @secux/app-dash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.