nips icon indicating copy to clipboard operation
nips copied to clipboard

NIP-85: `d` Tag References in Addressable Events

Open alexgleason opened this issue 1 year ago • 6 comments

This is an alternative solution to https://github.com/nostr-protocol/nips/pull/1510 inspired by the discussion in https://github.com/nostr-protocol/nips/pull/1534

alexgleason avatar Oct 11 '24 22:10 alexgleason

Can you clarify again what is this fixing? I went back into the old discussions but it's hard to find the actual problem.

vitorpamplona avatar Oct 11 '24 23:10 vitorpamplona

@vitorpamplona Relay hints. Putting them on the d tag breaks conventions. People already have code that does things with "p" and "e" tags automatically, since they're considered "standardized tags". Querying with nak for example has special CLI flags for #p queries. Another example is using p-tags to connect nodes in a graph database. Semantically, it just should have them. This method ties them together. But it's only useful if people commit to doing it strictly so it can always be depended upon.

alexgleason avatar Oct 12 '24 00:10 alexgleason

ohhh interesting..

Ack

vitorpamplona avatar Oct 12 '24 00:10 vitorpamplona

In pretty much every case I've seen it's better for d tags to be random. Maybe p/e tags would make sense though, since they're immutable, but what's the use case?

staab avatar Oct 14 '24 15:10 staab

@staab In Ditto I need to manage records about other users and events, about things that don't make sense to use labels.

https://github.com/nostr-protocol/nips/pull/1534 is a good example. Also: https://docs.soapbox.pub/ditto/nsec#user-records

This probably doesn't deserve to be a NIP on its own, but https://github.com/nostr-protocol/nips/pull/1510 exists so I went for it.

alexgleason avatar Oct 14 '24 17:10 alexgleason

I think #1540 could be a better alternative

arthurfranca avatar Oct 15 '24 18:10 arthurfranca