#Nostr101

"npub" is your public key. It never changes.

"nprofile" has both your public key and your current home relay. It changes as your outbox relay list changes.

When you are sharing your user, prefer to share it as an nprofile since the receiving user / app can quickly figure out where to get more information from the user.

If the receiving app only has the npub, it has to search for a relay that has the user. If the receiver is using the same relays as the sender, that's easy. But if the receiver is on a separate relay set, then it's likely the receiver will never load the user.

Outbox model fixes this but it requires you to share the nprofile, not just the npub.

Reply to this note

Please Login to reply.

Discussion

How can a nprofile pack so much info?

Does it store only one really or as many as wished?

It can store more relays but devs generally add just one to keep it small.

Thank you for the info!

clients must prefer share nprofile than npub

In amethyst you can get the nprofile by clicking "share" on the user profile and removing the Njump address.

Where can I get my nprofile on #Amethyst?

If you go to your profile screen and tap the 3 vertical dots in the upper right hand corner, you'll see a "share" option. That shares your nprofile link.

OK, I see I can extract it from the njump.me link. Thanks!

If 90% of the time users just share QR codes, do they even have to know?

Good advice, thank you!