Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin-seed

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-seed

Generate Bitcoin BIP39 seeds as buffers for control of memory.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
275
decreased by-16.92%
Maintainers
2
Weekly downloads
 
Created
Source

bitcoin-seed

NPM Package GitHub Actions Build

API

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 Buffers.

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.

Keywords

FAQs

Package last updated on 16 Nov 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc