Abhay on Nostr: Yess, I was just trying to get around the issues in the current scheme, but nip01 ...
Yess, I was just trying to get around the issues in the current scheme,
but nip01 actually specifies the order of the keys in the event structure right? I think it is at least a little detailed on how to avoid ambiguity in the serialization infact the event id is a sha256 of a JSON array and not an object, it also details on how to escape special characters, whuch should resolve most of the ambiguities right?
Published at
2025-04-20 11:51:59Event JSON
{
"id": "d53601106da29eaedc110e22fa9b28a1e20e891540d525c87ef8876bf200f14b",
"pubkey": "c21b1a6cdb247ccbd938dcb16b15a4fa382d00ffd7b12d5cbbad172a0cd4d170",
"created_at": 1745149919,
"kind": 1,
"tags": [
[
"e",
"af8f774c6e46f19bd7f0aadf9d085638ac7435e62b450dbdb280bcc566928706",
"",
"root"
],
[
"e",
"27c1d6464702a6ed7a3b4bda02602461a3632a9a961e5ad1ad750bdb23224afc"
],
[
"e",
"c0d7feda9cad5eb7f5d8f8ffc023817fa540b595ccf24f9e5adf101798f7d82c",
"",
"reply"
],
[
"p",
"b7ed68b062de6b4a12e51fd5285c1e1e0ed0e5128cda93ab11b4150b55ed32fc"
],
[
"p",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc"
],
[
"p",
"c21b1a6cdb247ccbd938dcb16b15a4fa382d00ffd7b12d5cbbad172a0cd4d170"
]
],
"content": "Yess, I was just trying to get around the issues in the current scheme, \n\nbut nip01 actually specifies the order of the keys in the event structure right? I think it is at least a little detailed on how to avoid ambiguity in the serialization infact the event id is a sha256 of a JSON array and not an object, it also details on how to escape special characters, whuch should resolve most of the ambiguities right?",
"sig": "ff44fbf8bb12a873fd1931f91c170805d4917b63bb42b09391fabe157cfd072bfe9fc515cef860ca310b245edf80bb0691b5a5e7a48507b0954d9eac7ec05f83"
}