Caleb James DeLisle on Nostr: On the wire, that response is bencoded, so it looks like this: ...
On the wire, that response is bencoded, so it looks like this:
d1:n40:.^..#..b......._...q.....w....a.......S2:np2:..1:pi21e8:recvTimei1742158534125e4:txid0:e
With '.' replacing any non-printing char.
Bencoding is a nice compromise between simple parsing, compact representation, JSON-like, and readable if absolutely necessary,
Published at
2025-03-16 20:59:40Event JSON
{
"id": "fce1d3f31786f26454b1d7b6b6381cfa0f5f7aa77b68da06c09bbe5a94bb7ccb",
"pubkey": "dde9dd6efbaf3c747c06bfd60f732666acd686e4c2eff471937f0c7c5fca5e0e",
"created_at": 1742158780,
"kind": 1,
"tags": [
[
"p",
"dde9dd6efbaf3c747c06bfd60f732666acd686e4c2eff471937f0c7c5fca5e0e",
"wss://relay.mostr.pub"
],
[
"e",
"1b2d32e16a1e32e4f44c3726bcb8b5d1368f4a1d24905d7754c0cee5e37daec9",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://pkteerium.xyz/objects/a200f46d-0206-4ad5-a8a3-b3017852bec8",
"activitypub"
]
],
"content": "On the wire, that response is bencoded, so it looks like this:\n\nd1:n40:.^..#..b......._...q.....w....a.......S2:np2:..1:pi21e8:recvTimei1742158534125e4:txid0:e\n\nWith '.' replacing any non-printing char.\n\nBencoding is a nice compromise between simple parsing, compact representation, JSON-like, and readable if absolutely necessary,",
"sig": "fccb0b460b181d230396ceb709b50a1c385fc0d38d1315cef3a44a9191ae4935f73ec79b4f9a7ec2e6d76267f2ba8dc4be2a650a7bc15775e3c18ee3ca78a225"
}