Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@samouraiwallet/boltzmann
Advanced tools
This library is a Typescript port of the Java library - boltzmann-java.
npm i @samouraiwallet/boltzmann
OR
pnpm add @samouraiwallet/boltzmann
OR
yarn add @samouraiwallet/boltzmann
See @samouraiwallet/boltzmann-cli
Boltzmann computation is CPU bound and blocking, so it is recommended to run it in a separate worker thread or dedicated process to prevent blocking of the main thread.
import {Boltzmann, BoltzmannResult} from '@samouraiwallet/boltzmann';
// instantiate Boltzmann
const boltzmann = new Boltzmann({
maxDuration: 30,
maxTxos: 16,
logLevel: "INFO"
});
// transaction object with entries for inputs and outputs
const transaction = {
inputs: [
["address1", 1000],
["address2", 2000]
],
outputs: [
["address3", 500],
["address4", 2200]
]
}
const result: BoltzmannResult = boltzmann.process(transaction);
console.log(result.toJSON());
/*
{
nbCmbn: number,
matLnkCombinations: number[][] | null,
matLnkProbabilities: number[][] | null,
entropy: number,
dtrmLnksById: [number, number][],
dtrmLnks: [string, string][],
txos: {
inputs: [string, number][],
outputs: [string, number][],
},
fees: number,
intraFees: {
feesMaker: number,
feesTaker: number,
hasFees: boolean,
},
efficiency: number | null,
nbCmbnPrfctCj: string | null,
nbTxosPrfctCj: {
nbIns: number
nbOuts: number
},
}
*/
FAQs
## @samouraiwallet/boltzmann
We found that @samouraiwallet/boltzmann demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.