
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@circles/transfer
Advanced tools
Utility module for Circles to find the Maximum flow and necessary transitive transfers steps in a trust graph with multiple tokens.
npm i @circles/transfer
import findTransitiveTransfer from '@circles/transfer';
// Define a weighted trust graph between trusted tokens. Each edge describes
// how much ("capacity") of what token ("token") can be sent from which node
// ("from") to which ("to"):
const nodes = [
'A',
'B',
'C',
'D',
];
const edges = [
{
from: 'A',
to: 'B',
token: 'A',
capacity: 10,
},
{
from: 'B',
to: 'C',
token: 'B',
capacity: 7,
},
{
from: 'B',
to: 'C',
token: 'C',
capacity: 5,
},
...
];
// Find required transfer steps to send transfer transitively between two nodes:
const { transferSteps, maxFlowValue } = findTransitiveTransfer({
nodes,
edges,
from: 'A',
to: 'D',
value: 5,
});
// ... we get the maximum possible value:
console.log(`Can send max. ${maxFlowValue} between A and D`);
// ... and finally the transfer steps:
transferSteps.forEach(({ step, from, to, value, token }) => {
console.log(`${step}.: Send ${value} of ${token} from ${from} to ${to}`);
});
circles-transfer
is a JavaScript module written in JavaScript, tested with Jest, transpiled with Babel and bundled with Rollup.
// Install dependencies
npm install
// Run test suite
npm run test
npm run test:watch
// Check code formatting
npm run lint
// Build it!
npm run build
GNU Affero General Public License v3.0 AGPL-3.0
FAQs
Find maximum flow and transitive transfer steps in a trust graph
We found that @circles/transfer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.