Global Feed Post Login
Replying to Avatar Lyn Alden

I have an #asknostr about Nostr.

In a client, we select which relays to connect to. Is that list of relays that we have chosen to connect to stored on the client side, or does that list of relays become an event that gets sent to relays as well?

I assumed the latter, that my relay list is published to relays, because if I spin up my keys in a new client it seems to have the same relay connections. But then if I change the relays there in that new client, it doesn’t seem to change the relays on my other prior clients. I assume this is because of the basic Nostr fact that there is no global state and thus relays can have different information about the same user/keypair. Or is some of the relay network connection list stored locally on the client as well?

I guess a broader question is, what types of Nostr information are persistently stored locally on a client?

Avatar
Nostr Dev Team 1y ago

It depends on the client, maybe they are caching the relay list.

There are many sources for relays.. Hard coded (app) relays, nip-05 relays, extension relays, relays embedded in notes, nprofiles, and the "actual" kind 10002 list as defined in NIP-65

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

TLDR; it's messy, implementations differ, and making it performant is a challenge

Reply to this note

Please Login to reply.

Discussion

No replies yet.