CryptoDrew on Nostr: Nostr Dev Question: When serializing an event to generate the hash ID, how should ...
Nostr Dev Question:
When serializing an event to generate the hash ID, how should tags be ordered?
I cannot find anything under NIP-01 for this.
Currently, I am storing metadata external to the event to keep track of the tag order respective of how it was received, but that doesn't seem optimal.
Is there a recommended standard? Maybe alphabetical based on the UTF8 serialized strings of each tag? Although, that is certainly less optimal since that would require individual serialization of each tag plus a string compare sort.
#nostrdev #nostrdevs #devstr #nip01 #asknostr
When serializing an event to generate the hash ID, how should tags be ordered?
I cannot find anything under NIP-01 for this.
Currently, I am storing metadata external to the event to keep track of the tag order respective of how it was received, but that doesn't seem optimal.
Is there a recommended standard? Maybe alphabetical based on the UTF8 serialized strings of each tag? Although, that is certainly less optimal since that would require individual serialization of each tag plus a string compare sort.
#nostrdev #nostrdevs #devstr #nip01 #asknostr