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.
bitcoin-seed
Advanced tools
fromRandom({ passphrase, entropyFn })
Creates a random new seed
instance with optional passphrase
. If entropyFn
is passed, it must return a 16-byte random Buffer
; crypto.randomBytes(16)
is used by default.
fromEntropy(entropy, passphrase)
Returns a seed
for the given raw Buffer
entropy
and optional passphrase
.
fromMnemonic(mnemonic, passphrase)
Returns a seed
for the given mnemonic
and optional passphrase
.
fromBuffer(buf)
Returns seed
from a buf
generated by seed.serialize()
isBitcoinSeed(obj)
Returns whether obj
looks like a seed
; this is just basic duck typing.
seed.entropy
Raw Buffer
entropy of the seed
.
seed.seed
Raw Buffer
of the seed.
seed.mnemonicString
String mnemonic representation of the seed's entropy.
seed.destroy()
Zero-fills all internal Buffer
s.
seed.isDestroyed
Boolean property indicating whether seed.destroy()
has been called on this seed
.
seed.serialize()
Return seed encoded as a serialized Buffer
, which can be passed to fromBuffer()
to convert it back to a seed
.
FAQs
Generate Bitcoin BIP39 seeds as buffers for control of memory.
The npm package bitcoin-seed receives a total of 225 weekly downloads. As such, bitcoin-seed popularity was classified as not popular.
We found that bitcoin-seed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.