Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
bsv-minimal
Advanced tools
Parse raw bitcoin block and transaction buffers with minimal overhead
Parse raw bitcoin block and transaction buffers with minimal overhead
You must use node.js v12+
npm i bsv-minimal
const { Block, Transaction, Header } = require('bsv-minimal')
const block = Block.fromBuffer(yourBlockBuffer)
block.getHash()
block.getTransactions()
block.getHeight()
await block.getTransactionsAsync(({ header, txs, finished }), => {
for (const {index, tx, offset, size} of txs) {
console.log(`tx ${tx.getTxid()}`)
}
})
const header = Header.fromBuffer(yourHeaderBuffer)
header.getHash()
const transaction = Transaction.fromBuffer(yourTransactionBuffer)
transaction.getTxid()
transaction.getCoinbaseHeight()
npm run test
FAQs
Parse raw bitcoin block and transaction buffers with minimal overhead
We found that bsv-minimal demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.