payjoin / rust-payjoin

Supercharged payment batching to save you fees and preserve your privacy
https://payjoindevkit.org
85 stars 37 forks source link

Pad ohttp req/res messages to consistent 8192 bytes #395

Open DanGould opened 3 days ago

DanGould commented 3 days ago

Padded messages (POST, GET, Response 202, Response 200) are no longer distinguishable

This must be the last wire protocol change for BIP 77 🤞

Rationale: 7kb x 2x/min / 1h = ~1MB/hr which is not too much overhead.

nit TODO: allocate fixed length arrays instead of resizeing vectors.