monlovesmango / astral

Nostr client made with Quasar
https://astral.ninja
MIT License
100 stars 38 forks source link

"Failed to verify NIP05 identifier on server" error #105

Closed snarfed closed 1 year ago

snarfed commented 1 year ago

Hi! First off, thank you for building and running astral. It's great!

I'm having trouble getting it to accept my NIP05 id. When I enter _@snarfed.org in the NIP-05 identifier field on https://astral.ninja/settings and click Save, it says Failed to verify NIP05 identifier on server. I think I've set it up right though, based on https://github.com/nostr-protocol/nips/blob/master/05.md :

monlovesmango commented 1 year ago

hey there! so... it looks like a01069041cd37e1c14159e0e5b2854e80420cc44299a446d2290b9cac0e234b3 is your private key. for nip05 you need to list the public key, so for you it would be cfcc2bc32c92ec33e827ddc28b41dc2b40727ed44cee71a193e2d6b3523f6c03.

good news is when I tested logging in using a01069041cd37e1c14159e0e5b2854e80420cc44299a446d2290b9cac0e234b3 as the pubkey the nip05 did save correctly. so you should easily be able get your nip05 sorted out once you update it with the appropriate key.

bad news is that your private key is now compromised and you should discard this nostr key pair and start over with a new one. with your new key pair, make sure to use the npub key, converted into hex format for the nip05 json.

feel free to let me know if you have additional questions or issues

snarfed commented 1 year ago

Wow, that's embarrassing, and confusing. Sorry for this. I guess I thought astral's key generation gave me a0106... as the hex version of my NIP-19 public key npub.... So a0106... is the hex version of my NIP-19 private key nsec... instead? Funny, OK. I'll delete that account and keypair and generate a new one. Apologies again!

monlovesmango commented 1 year ago

correct. when i put your npub through astral's key converter it spit out 'cfcc2bc32c92ec33e827ddc28b41dc2b40727ed44cee71a193e2d6b3523f6c03'

no apologies needed! glad we could get it sorted!