Skip to main content

MAX_NOTE_BYTES

Constant MAX_NOTE_BYTES 

Source
pub const MAX_NOTE_BYTES: usize = _ /* 456_010usize */;
Expand description

Encoded-size bound for one maximum-length note from the bundled profile: the 10-byte header plus, per 20 ms packet, a 2-byte length prefix and the 40 kbit/s payload budget (100 bytes) with 1.5x headroom. SILK rate control is soft, so single packets may exceed the budget; the observed 60-second worst case (full-scale white noise) averages about 2.2 KB/s, or 131 KB.