and yeah, you mention JSONRPC

if you read nip-01 with the question in your mind "how complex is it going to be to parse these "envelopes" compared to using a common, old format like JSONRPC?"

implicit context isn't as bad as types specified in fields of dynamic typed wrappers but the code that parses it has to have the extra context of "is this a request or a response" in order to determine how to decode it

that annoyed the bejesus out of me because i shouldn't have to have this context missing from the message format

why did i write my own bespoke parser, btw?

because it's more than 3x faster than using even the best library for the task, and part of the reason is that it doesn't check for syntax violations that simply are not going to appear or have material impact on nostr JSON encoding for filter and event

Reply to this note

Please Login to reply.

Discussion

No replies yet.