Global Feed Post Login
Replying to Avatar MichaelJ

One thing I don't completely understand is why every Nostr event kind uses the exact same data structure.

JSON is very flexible, we could simply define additional fields to our hearts' content. Instead, `content` always has to be a string, and the most flexibility we get is to define tags as arrays within arrays.

Array-based tags are stupid, IMO. It's needlessly difficult to parse. All you need is a few common top-level fields (pubkey, sig, kind), and the `kind` field tells the client what other *top-level fields to expect on this JSON blob.

For a JSON-lover's protocol, we're really underutilizing JSON.

Avatar
Sats paa BTC 1y ago

Anyone?

#asknostr

nostr:nevent1qqsfzftvqxe9l9p07w9p6q53fxkhmeddnva0drfvtsvc63jtpd3u92gpzpmhxue69uhkummnw3ezumt0d5hsygrszgsjsfemmsr6lxl8wf06t39uplq5dpntasudgsmqm39udnqchypsgqqqqqqs54smrd

Reply to this note

Please Login to reply.

Discussion

No replies yet.