pub fn encrypt_sensor(
events_json: &[u8],
pf: &[u8],
cu: &[u8],
) -> Result<Vec<u8>, AppError>Expand description
Encrypt a fully serialised sensor event batch.
events_json— UTF-8 bytes ofJSON.stringify(events)output (hYin the JS reference is JSON.stringify for our input shapes).pf—pf()page-fingerprint bytes (or the tenant fallback when the runtime would have usedgC(365)).cu— thectx.cusalt (thevKfield).