ben on Nostr: I agree TLV seems fine if you’re just encoding a stable schema. worst case is ...
I agree TLV seems fine if you’re just encoding a stable schema. worst case is you’re incrementing types and clients have to add another case to their switch statement… which we already do with ‘kind’ today.
Published at
2023-04-15 14:31:47Event JSON
{
"id": "b87c371e37749dae0577723420785265ba58cc3aa5b3d86c00e6e8b0241cccee",
"pubkey": "7bdef7bdebb8721f77927d0e77c66059360fa62371fdf15f3add93923a613229",
"created_at": 1681569107,
"kind": 1,
"tags": [
[
"e",
"9d89ef468ec690f2177635b8c0fd589aca840de1a749a08a44de5b148654bb49",
""
],
[
"e",
"3148bfe6a71a5f1a1d03b40ddc4349aecc3f2608559d42ef1fe43453f0bf0ff6"
],
[
"p",
"319077691435b6958a8e1846aaaeb1e14d53a7bcdf565ea2329b7307d39ea8f6"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
]
],
"content": "I agree TLV seems fine if you’re just encoding a stable schema. worst case is you’re incrementing types and clients have to add another case to their switch statement… which we already do with ‘kind’ today.",
"sig": "50ce809701b59162cae2feae6798e545275f1e21a62f98039c0dc43cde9f056dcebc7be5791337cfda2bbfae3db34afd1b803100ae3f5ac4a07c78f4071b5f4a"
}