mleku on Nostr: just put a length prefix field at the front of the payload that is encrypted and then ...
just put a length prefix field at the front of the payload that is encrypted and then tack on a random, but reasonable amount of padding to obscure its real size. and of course make that padding filled with also random bytes, to mitigate any preimage risk of having part of the message literally being the XOR of the byte stream
i doubt there is much compressibility in it but maybe ZSTD compression could find a little redundancy in there as well
Published at
2025-06-01 12:40:47Event JSON
{
"id": "249e96da5cb328c42f2e41493ee6489f6c3e848682ed5248400e62602a533167",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1748781647,
"kind": 1,
"tags": [
[
"e",
"7f7ea091e6d1b9412db0ad648d5856764261df29a29b9963f66f17ac7a392e16",
"",
"root",
"06b7819d7f1c7f5472118266ed7bca8785dceae09e36ea3a4af665c6d1d8327c"
],
[
"e",
"10127bb7489aace89b60c2a69347b304542009e0f928f1d0d8c5671643433f68",
"wss://nos.lol/",
"reply",
"06b7819d7f1c7f5472118266ed7bca8785dceae09e36ea3a4af665c6d1d8327c"
],
[
"p",
"06b7819d7f1c7f5472118266ed7bca8785dceae09e36ea3a4af665c6d1d8327c"
]
],
"content": "just put a length prefix field at the front of the payload that is encrypted and then tack on a random, but reasonable amount of padding to obscure its real size. and of course make that padding filled with also random bytes, to mitigate any preimage risk of having part of the message literally being the XOR of the byte stream\n\ni doubt there is much compressibility in it but maybe ZSTD compression could find a little redundancy in there as well",
"sig": "3496a609dc8060935ba56cfd4699782cc0d6974ed25bfba02ff0af51368f1a7e50f3cf54f368aabd127ef721dc226d74e51eea7954060a3f0c9859c13fb87279"
}