ynniv on Nostr: Are you sending JSON or some custom packing? Do you need packet switching, or is open ...
Are you sending JSON or some custom packing? Do you need packet switching, or is open broadcast okay? A minimal, TLV based Kind 1 event could look like:
"Hello Nostr":
- 32B (pubkey) + 4B (timestamp) + 1B (kind) + 1B (content length) + 10B (content) + 64B (signature) = 112 bytes
Published at
2025-03-02 02:49:31Event JSON
{
"id": "4946976bf496817ca1621b2ccf58ba8cbbb9b5b544c5ed660d052983c8d7d9fa",
"pubkey": "576d23dc3db2056d208849462fee358cf9f0f3310a2c63cb6c267a4b9f5848f9",
"created_at": 1740883771,
"kind": 1,
"tags": [
[
"e",
"797109e6f3daa051c3afb31a60187e6f9343714b6328bb79327b1eb2a534d6c3",
"",
"root"
],
[
"e",
"ce59f86154c1b7ab1c7dfcfa791949ef5c99606d8567dd6b857f3c09e49d1ac8",
"",
"reply"
],
[
"p",
"e3aefda887252a72cee3578d33b2dcd90e9fe53b8bed6347ef5e26f74211adbb"
]
],
"content": "Are you sending JSON or some custom packing? Do you need packet switching, or is open broadcast okay? A minimal, TLV based Kind 1 event could look like:\n\n\"Hello Nostr\":\n- 32B (pubkey) + 4B (timestamp) + 1B (kind) + 1B (content length) + 10B (content) + 64B (signature) = 112 bytes",
"sig": "2f67dcd179825b17ac0a8fbeab905dfe181c777f33b9b2b8580085c7e62881d32f610e2b8cd4adbe871168fb997e695f956d47f4880680a0a35cf1c49ab6315c"
}