Why Nostr? What is Njump?
2024-07-08 12:13:26
in reply to

buttercat1791 on Nostr: I like the idea of using an ISBN for the d tag, if we have it. The thing with the d ...

I like the idea of using an ISBN for the d tag, if we have it.

The thing with the d tag is that it carries a particular meaning for 30000-series parameterized replaceable events.

Since the ID field in the event JSON is a unique hash of the contents of that event, it will change every time the contents of the event change. So, to allow editing (i.e., replacing) events, a second identifier that does not change with the event contents is needed. That is the d tag.

It can be relatively human readable, but I would tend towards a guaranteed unique identifier, such as a GUID or UUID.

I had forgotten that about parameterized replaceable events until talking with Pablo. We have to be careful to avoid ID clashes in the d tag, which is more likely to occur if we use just the user-friendly title. Since we're early, though, the d tags we've used for the books of the Bible ought to stand just fine. No one else has published an event with a d tag of "1-john" yet, I don't think.

Additionally, parameterized replaceable events are identified by kind. The identifiers for queries and share links consist of kind number + d tag ID. So that gives us an extra layer of safety for avoiding name clashes.
Author Public Key
npub1wqfzz2p880wq0tumuae9lfwyhs8uz35xd0kr34zrvrwyh3kvrzuskcqsyn