Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
int24 is a simple utility library for serializing 24-bit integers.
A really good question. Probably not very useful to most people. I needed this for work I'm doing in Node.js with the Hadoop Writable serialization (e.g. VLong), so I figured I'd share what I used.
var int24 = require('int24');
var buf = new Buffer(3); // 3 byte Buffer
int24.writeUInt24BE(buf, 0, 16777215); // writes out 0xFFFFFF to the buffer at offset 0
var val;
var buf = new Buffer([0x01, 0x02, 0x03]);
val = int24.readInt24LE(buf, 0); // 197121
val = int24.readInt24BE(buf, 0); // 66051
npm install int24
npm test
MIT License
FAQs
24-bit integer serialization
We found that int24 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.