
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
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 8 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.