it generates in damus format instead of normal hex?

Reply to this note

Please Login to reply.

Discussion

When I initialized Damus it said that the other format was “old” so I assumed the `nsec`/`npub` format was preferred. But I dunno.

i honestly don't know either? i just noticed that all other clients seem to use the hex format and damus.io/key exists to convert keys.

nsec/npub preferred because it makes one slightly less likely to paste the wrong key

Gah, all this pasting of private keys into apps and web browsers is just so icky!

💯

yeah... thankfully nos2x chrome extension exists. and i believe alby also works as well.

We’ve been trained to not trust chrome extensions either, though!

sure, you're correct. that said, it's written by #[4] and you can run the open source version in dev mode.

That's my impression as well; nsec/npub preferred.

“Damus format” is really bech32 encoded keys/ids from NIP-19 (https://github.com/nostr-protocol/nips/blob/master/19.md)

yes hex keys are very much deprecated for obvious reasons. No client should be using them.

I believe the nPub format is not specific to Damus. Ref: https://github.com/nostr-protocol/nips/blob/master/19.md

Hex is deprecated, clients should always use nprofile, npub and note instead of hex values.

Beautify Profile PR displays the nPub format too.

What is nprofile?

New thing. It’s an npub with relays inside

Dope

Those are bech32 addresses

Looks like this NIP explains it. I hadn’t come across those either

https://github.com/nostr-protocol/nips/blob/master/19.md