Show thread history
Anthony Accioly
2w ago
@fiatjaf, @Mike Dilger, @AsaiToshiya, @k., sorry for spamming, but I feel like at least one of you may have some guidance around this.
See translation
0
0
0
0
0
Replies
Mike Dilger
@Mike Dilger
2w ago
First, NIP-65 'write' is outbox, and 'read' is inbox. Confusing terms because read & write don't specify who is doing it. It is from the perspective of the user, not followers of the user. So the user writes to their own outbox (even though others read from it) and that is called your 'write' relay. We noticed this confusion only after the NIP was in use.
For NIP-05 nostr.json relays, yes I would include them, and I would only include the 'write' (outbox) relays. Because they are just meant for finding someone. For example, if I told you I was 'mike@mikedilger.com' you could find my pubkey, you could get at least one of my relays, and you could look up my 10002 and now you are off to the races. Ideally you could also look up my 10002 from any prominent relay if I spread it widely enough,
For NIP-05 nostr.json relays, yes I would include them, and I would only include the 'write' (outbox) relays. Because they are just meant for finding someone. For example, if I told you I was 'mike@mikedilger.com' you could find my pubkey, you could get at least one of my relays, and you could look up my 10002 and now you are off to the races. Ideally you could also look up my 10002 from any prominent relay if I spread it widely enough,
... See more
See translation
0
0
0
0
0
Anthony Accioly
@Anthony Accioly
2w ago
Many thanks, Mike. I think I understood what you said above, but just to clarify with a simplified, illustrated example for a not-so-smart dev like me:
Say I have a relay at wss://haven.accioly.social, where I write and my followers should read from (i.e., an Outbox/NIP-65 write relay, if I understood you correctly).
I also have a relay at wss://haven.accioly.social/inbox, where my followers should write and I read from (i.e., an Inbox/NIP-65 read relay).
Your advice here would be to add wss://haven.accioly.social by itself to nostr.json, since this is where I'll be writing my 10002 event. Is that the correct understanding?
Say I have a relay at wss://haven.accioly.social, where I write and my followers should read from (i.e., an Outbox/NIP-65 write relay, if I understood you correctly).
I also have a relay at wss://haven.accioly.social/inbox, where my followers should write and I read from (i.e., an Inbox/NIP-65 read relay).
Your advice here would be to add wss://haven.accioly.social by itself to nostr.json, since this is where I'll be writing my 10002 event. Is that the correct understanding?
See translation
0
0
0
0
0
Mike Dilger
@Mike Dilger
2w ago
Yes. Also your kind-0 metadata will be there, which is the first or second thing loaded by most clients.
See translation
0
0
0
0
0
Anthony Accioly
@Anthony Accioly
2w ago
Thanks Mike. You were immensely helpful. I'll make sure to implement this correctly.
See translation
0
0
0
0
0
Mike Dilger
@Mike Dilger
2w ago
Actually I just looked at my code and I'm dealing with nip-05 nostr.json relays differently. Gossip assumes relays in nostr.json are both read and write. I'm not sure if a write-only relay going in there would be a problem though.
See translation
0
0
0
0
0