ZmnSCPxj on Nostr: LSPS0 uses JSON because binary encodings are just prebuilt dictionary compression ...
LSPS0 uses JSON because binary encodings are just prebuilt dictionary compression algorithms for human-readable text. Yes, on the wire it is encrypted and unreadable, but I imagine that developers would appreciate logging the raw JSON to and from the peer, while debugging their first LSPS implementations. Fast human developers (while still ensuring you do not go so fast as to break things) trumps any elegance arguments here.
Published at
2023-04-24 14:06:35Event JSON
{
"id": "e348ab69cb92dfa7efd7ddca3d7c6f4fff22847acaecd7dfd28997fe39723d26",
"pubkey": "0ab8ce60ed30f08679a23aba9ba629f76f1f9a9393184c2e4dc23b53224879d7",
"created_at": 1682345195,
"kind": 1,
"tags": [],
"content": "LSPS0 uses JSON because binary encodings are just prebuilt dictionary compression algorithms for human-readable text. Yes, on the wire it is encrypted and unreadable, but I imagine that developers would appreciate logging the raw JSON to and from the peer, while debugging their first LSPS implementations. Fast human developers (while still ensuring you do not go so fast as to break things) trumps any elegance arguments here.",
"sig": "5a854f6759cc91f68381cc54d48581223c90ce9156d3e6ca7b2364dc4d329a86b4a8c40d2a476957c4d5d1ed531bc10f24801ac96cd3806aa154ce1d03ce9933"
}