Skip to main content

padded

Function padded 

Source
pub fn padded(payload: &PushPayload) -> Result<Vec<u8>>
Expand description

payload as JSON, padded with trailing spaces (still valid JSON) to the next multiple of PAD_TO, at most MAX_PLAINTEXT. Err for one that cannot fit, which the notices’ caps rule out.