noskey

noskey

Generate nostr keys from command line

Getting Started


GitHub license npm npm Github Stars

⚡️ Features

  ✓  Generate Private Key
  ✓  Generate nsec Private Key
  ✓  Generate Public Key
  ✓  Generate compressed Public Key
  ✓  Generate bitcoin address
  ✓  Generate bitcoin testnet3 address
  ✓  Generate npub Public Key
  ✓  Generate nrepo Public Key
  ✓  Generate taproot Public Key
  ✓  Generate taproot test Public Key
  ✓  Generate ed25519 Public Key
  ✓  Generate pubky Public Key
  ✓  Generate ed25519 openssh Public Key
  ✓  Generate ed25519 openssh Private Key PEM
  ✓  Generate from private key
  ✓  Generate from nsec
  ✓  Vanity Keys
  ✓  Run with npx or install

✍️ Getting Started


Generate random keys

npx noskey

Generate a vanity key

npx noskey --vanity 123

Generate a from private key

npx noskey -p 123

Install locally

sudo npm install -g noskey

Usage

Usage: noskey [options]

Options:
      --version  Show version number
  -v, --vanity   Vanity string
  -p, --priv     Private key
  -s, --nsec     From nsec
  -h, --help     Show help

Example Output

{
  "privkey": "096267c08957fe0a83399d3e6be45fb283aefed6487fac55350d828142362f68",
  "nsec": "nsec1p93x0syf2llq4qeen5lxhezlk2p6alkkfpl6c4f4pkpgzs3k9a5qs7nk3j",
  "pubkey": "3104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",
  "pubkeycompressed": "033104afd3bc605665d1e92afdc33bb50d8d8c47293916374f45a965fc390a0333",
  "bitcoinPubkey": "1LcHKWvoVW7ZXVtVf7cX3JS6hqvWNnphaB",
  "bitcoinTestnet3Pubkey": "n18Eca1nJXYpJcN7NgatsDeRZqXDJ8EwFD",
  "npub": "npub1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesle5tfn",
  "nrepo": "nrepo1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qveskz7ewj",
  "taproot": "bc1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesx55cr2",
  "taproottestnet": "tb1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qves66y2cu",
  "liquidtaproot": "ex1p1xyz2l5auvptxt50f9t7uxwa4pkxcc3ef8ytrwn6949jlcwg2qvesdq02p7",
  "ed25519pubkey": "c6fcabb4927adf2eb64beb2a99004c836c71944220fe8b7568e04616eac34c29",
  "pubky": "a56kzpr1xmx17p1m7cij1yncops8dfnnrd9es7mehbdbp4sdjowo",
  "openSSHed25519pubkey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb8q7SSet8utkvrKpkATINscZRCIP6LdWjgRhbqw0wp",
  "openSSHed25519privkey": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW\nQyNTUxOQAAACADAQAEAAAAAwAABgAFBgYFAAEACQIAAAAAAwMAAAUAAAAAAIiJTFkeiUxZ\nHgAAAAtzc2gtZWQyNTUxOQAAACADAQAEAAAAAwAABgAFBgYFAAEACQIAAAAAAwMAAAUAAA\nAAAEAACQYCBgcAAAgJBQcAAAAACAMDCQkAAwAGAAAEBQAAAgMBAAQAAAADAAAGAAUGBgUA\nAQAJAgAAAAADAwAABQAAAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----\n"
}

📚 Documentation

Check out the documentation for noskey in the docs directory. There, you can find more detailed information about the features and usage of this tool.

Documenatation

⚖️ License

This project is under the MIT License. See the LICENSE file for the full license text.