pull down to refresh

I want to get more info about different ways to generate NOSTR Keys (Npub & Nsec) and off corse, some recommendations about the custody of the private key.
My keys were generate by GETALBY.
I've use a browser extension called "Nos2x" to generate keys. And I also know Coinos generates keys for their users. But, is there a way to generate keys off line?
All info about generating and storing keys is welcome!
21 sats \ 1 reply \ @Wumbo 5h
@supertestnet has a video that seems to walk one through how to code a simple way to generate key pair.
reply
thanks
reply
import { generatePrivateKey, getPublicKey } from 'nostr-tools'
const p = generatePrivateKey()
console.log({
    privateKey: p,
    publicKey: getPublicKey(Buffer.from(p, 'hex'))
})
reply
0 sats \ 0 replies \ @brave 6h
I believe almost every Nostr Client have a way of generating Nostr Keys as a feature.
reply