Function secure_serialisation::pre_computed_deserialise [] [src]

pub fn pre_computed_deserialise<T: DeserializeOwned + Serialize>(
    message: &[u8],
    pre_computed_key: &PrecomputedKey
) -> Result<T, Error>

Parse a data type from an encoded message from a sender whose public key we know, and which is pre-computed. This is less CPU-intensive than deserialise() which can be useful if many messages are to be transferred. Success ensures the message was from the holder of the private key related to the public key we know of the sender.