
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.
This libary provides basic functions for creating and validating tx's
npm install dfinity-tx
const DfinityTx = require('dfinity-tx')
const crypto = require('crypto')
// create a new tx
const tx = new DfinityTx({
version: 0,
to: new Uint8Array(20),
caps: 4,
ticks: 1000,
ticksPrice: 0,
nonce: 0,
data: new Uint8Array([])
})
// get properties from
tx.ticks // 1000
// set properties
tx.nonce = 1
const secretKey = crypto.randomBytes(32)
// sign the tx, this returns a signed serialized tx
const signedTx = await tx.sign(sk)
// parse a tx
const tx2 = DfinityTx.deserialize(signedTx)
// get the public key used to sign the message
tx2.publicKey
All code and designs are open sourced under GPL V3.
FAQs
This libary provides basic functions for creating and validating txs
The npm package dfinity-tx receives a total of 0 weekly downloads. As such, dfinity-tx popularity was classified as not popular.
We found that dfinity-tx 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.