JeffG on Nostr: Ok - this might be left curve but... Why would we not just encode using CBOR, then ...
Ok - this might be left curve but... Why would we not just encode using CBOR, then attach a signature. 🤷♂️ Seems like that's all we'd need.
Relays could destructure however they want for indexing but the data structure and event creation/encode/decode would be super simple.
Published at
2024-10-07 18:02:55Event JSON
{
"id": "6a5e2f9c64d7529d1a06a8e30f4f7b722830fe722616915a3ea3a7884a484d99",
"pubkey": "1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef",
"created_at": 1728324175,
"kind": 1,
"tags": [
[
"e",
"61d540a890c7b8df120b3c8b6440acb1395ff335ae82b47932dfe61d6f45fd11",
"",
"root"
],
[
"e",
"96f424dafd3cfc9cafb73cc5b225f005851a6ede379a564d5f1fdf28085ffe2c",
"",
"reply"
],
[
"p",
"1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd"
]
],
"content": "Ok - this might be left curve but... Why would we not just encode using CBOR, then attach a signature. 🤷♂️ Seems like that's all we'd need. \n\nRelays could destructure however they want for indexing but the data structure and event creation/encode/decode would be super simple.",
"sig": "2bfc8a9cd89e4342ca148b64d841bbee72ff4ddba0f47ceb004a5d43fd606d465f90ca1c537fdf64692859fb7ef022a67fbb6f573c452d3a7474ddbb012a4e46"
}