Global Feed Post Login
Replying to Avatar Leo Wandersleb

The nip mentions:

`e`, `p`, `a`, `r`, or `t` tags. This allows for labeling of events, people, relays, or topics respectively.

So e and a are events.

p is pubkeys, some of which represent people.

r being relays is as of nip01 explicitly not universal (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002) so I wonder how do r-tags work. I found some 1985 events using r-tags for non-relay stuff.

t are topics? How do these work? In the wild I see events using t tags to reference IMDB movies by their ID.

Who wants to help me clarify the nip a bit?

Avatar
hodlbod 2y ago

r just means "resource", so may be any url, including a relay url. t tags should be human readable topics, referencing an id with a t tag is incorrect. All those tags in nip32 are " targets", so the things being labeled. Does that help?

Reply to this note

Please Login to reply.

Discussion

Avatar
Leo Wandersleb 2y ago

Thanks for the reply. I'll try to come up with a patch for the nip so others don't have to struggle there.

Thread collapsed