Skip to main content

MAX_NIP44_ENCODED_PAYLOAD_BYTES

Constant MAX_NIP44_ENCODED_PAYLOAD_BYTES 

Source
pub const MAX_NIP44_ENCODED_PAYLOAD_BYTES: usize = _; // 524_288usize
Expand description

Cheap encoded-payload bound applied before base64 decoding.

The 512-KiB bound matches the current complete relay-message bound and limits temporary decoding and decryption allocations.