Martti Malmi on Nostr: Event IDs, pubkeys and sigs are such high entropy data that gzip probably won't ...
Event IDs, pubkeys and sigs are such high entropy data that gzip probably won't compress them much. Also binary formats are faster to decode than json (+ gzip).
Published at
2024-10-06 18:54:59Event JSON
{
"id": "d1fff77d8834b847c1985a5892c6309aec6ffed89d45b398a189866255f3c336",
"pubkey": "4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0",
"created_at": 1728240899,
"kind": 1,
"tags": [
[
"q",
"625440cbce831c69ece17c9d834e68fd756aa385055fecaa23bc58590bb70b07"
],
[
"e",
"625440cbce831c69ece17c9d834e68fd756aa385055fecaa23bc58590bb70b07",
"",
"reply",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
]
],
"content": "Event IDs, pubkeys and sigs are such high entropy data that gzip probably won't compress them much. Also binary formats are faster to decode than json (+ gzip).",
"sig": "a78ce455fed2e8400249836c1ac19bb2054f6eb254f5eceed748c234391a5d647d111942d0304bb100d572a28bfe67d2d99a73537f69cab9dcc4493cba8a498e"
}