Skip to content

Instantly share code, notes, and snippets.

@kdmukai
Last active September 28, 2024 13:43
Show Gist options
  • Save kdmukai/ae9911ed6fb92f8e7d2c553555b0cb86 to your computer and use it in GitHub Desktop.
Save kdmukai/ae9911ed6fb92f8e7d2c553555b0cb86 to your computer and use it in GitHub Desktop.
Generate a new airgapped Nostr key via SeedSigner

Generate a new airgapped Nostr key via SeedSigner

Create a new key with your own entropy, save it as a standard bitcoin BIP-39 mnemonic phrase and/or SeedQR, then export for use in Nostr.


Demo of Keith's experimental Nostr integration.

Other posts:


SeedSigner has tools onboard to generate new bitcoin keys.


Can use image entropy, dice rolls, pick words out of a hat.


Backup your new seed.


Optionally transcribe it to SeedQR so you can quickly load it back into SeedSigner.


Optionally add a BIP-39 passphrase.


Now comes the experimental Nostr section!


We use NIP-06 to derive your Nostr key from your bitcoin key.

Let's export our Nostr pubkey to a client app.


Select your export format.


Preview the output.


Show the pubkey QR code to your Nostr client.


Hopefully we can then use #nip26 and keep your new key's privkey safely offline.

But if you need to export the privkey, that's supported, too.


CAVEATS: This is all just an experimental SeedSigner dev branch. I built this branch just to show what's possible. Maybe it will make sense to release it as an officially-supported SeedSigner feature. Maybe not.


If you'd like to see me present this work at Nostrica, please consider helping to fund my travel expenses by DMing my fundraiser bot: @npub1yv3yqhzql8n9sj3zndulzdtx7axlcs6y2k2aun6qau7qmyvr8umsljm9zn, hitting my btcpay server, or via lnurl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment