
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
dfinity-block
Advanced tools
This libary provides basic functions for creating serializing and deserializing blocks
This library provides basic functions for creating serializing and deserializing blocks
npm install dfinity-block
const block = new DfinityBlock({
version: 0,
height: 1000,
timestamp: 0,
preBlockHash: new Uint8Array(20),
stateRoot: new Uint8Array(20),
beaconSig: new Uint8Array(32),
preNotarySig: new Uint8Array(32),
minterID: 0,
minterSig: new Uint8Array(32)
})
const sk = crypto.randomBytes(32)
// sign the block as a minter and serialize the block
const signedBlock = await block.sign(sk)
// desialize the block
const block2 = await DfinityBlock.deserialize(signedBlock)
// read the height of the block
block2.height
All code and designs are open sourced under GPL V3.
FAQs
This libary provides basic functions for creating serializing and deserializing blocks
The npm package dfinity-block receives a total of 2 weekly downloads. As such, dfinity-block popularity was classified as not popular.
We found that dfinity-block 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.