Vitor Pamplona on Nostr: The hash and signatures are based on the JSON structures and string encodings (hex, ...
The hash and signatures are based on the JSON structures and string encodings (hex, base64, bech32, etc) instead of the raw binary. Which means, even if you do run everything in binary, you end up going back to the text protocol to do everything.
But one could create a parallel spec with binary payloads in mind. Clients could offer both as long as they use the same crypto primitives.
Published at
2024-07-23 09:24:49Event JSON
{
"id": "b633d06d01bddd138085a932ac14b9869adb7a14558a2731742443674abc693c",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1721726689,
"kind": 1,
"tags": [
[
"e",
"ceb39104606cba558df26b0592cfb991c58aad64d1522976b8f215ea17b6dba9",
"",
"root"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
]
],
"content": "The hash and signatures are based on the JSON structures and string encodings (hex, base64, bech32, etc) instead of the raw binary. Which means, even if you do run everything in binary, you end up going back to the text protocol to do everything.\n\nBut one could create a parallel spec with binary payloads in mind. Clients could offer both as long as they use the same crypto primitives. ",
"sig": "8fbed3d1f6db803636d8b2ea48b3cbb7bb85d63221202c99ff895e84eec2b20b00e518207ab0892189530083e4ea20f7557281643c4834cd8021a3121c29f810"
}