npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bsv/rando

v1.0.3

Published

Generate BSV private keys with user-generated entropy

Downloads

375

Readme

@bsv/rando

Generate BSV private keys with user-generated entropy.

Description

rando is a command-line tool that creates Bitcoin SV (BSV) private keys by combining user-generated entropy with system randomness. This approach ensures high-quality randomness for secure key generation.

Installation

npm install -g @bsv/rando

Or use directly with npx:

npx @bsv/rando

Usage

Simply run the command:

rando

You will be prompted to type random characters to add entropy:

Please type random characters to add entropy (press Enter when done):
>

Type any random characters you like, then press Enter. The tool will:

  1. Hash your input using SHA-256
  2. Generate 32 bytes of system randomness
  3. XOR combine both sources for maximum entropy
  4. Generate a BSV private key from the combined entropy
  5. Save the key and display the results

Output

The command will display:

  • wif: Wallet Import Format (WIF) private key
  • private: Private key in hexadecimal format
  • address: The corresponding BSV address

Example output:

{
  wif: 'L2vJK...',
  private: '8f3a...',
  address: '1A1zP1...'
}

Where Files Are Saved

Private keys are automatically saved to:

~/.wifs/

Each key is saved in a file named after its address:

~/.wifs/<address>.key

For example:

~/.wifs/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa.key

The file contains the WIF (Wallet Import Format) private key.

Security Notes

Intended Use

This tool is designed for generating keys for small, casual amounts of BSV - amounts that wouldn't be worth the effort of hacking into your laptop to obtain. Think of it as a convenient tool for:

  • Testing and development
  • Small transactions
  • Casual everyday use
  • Learning and experimentation

For Large Amounts

If you plan to store significant amounts of BSV, this tool is NOT appropriate. Instead, you should:

  • Use a dedicated, air-gapped computer that has never been connected to the internet
  • Generate keys on that isolated system
  • Never connect that system to any network
  • Follow industry best practices for cold storage

The security of keys generated on an internet-connected laptop is fundamentally limited by the security of that laptop. Any malware, keyloggers, or compromise of your system could potentially expose your keys.

General Security

  • Keep the ~/.wifs/ directory secure and backed up
  • Never share your private keys with anyone
  • The combination of user and system entropy provides strong randomness
  • Make sure to provide truly random input when prompted
  • Remember: your keys are only as secure as the computer they're generated on

License

Apache-2.0