Skip to main content

validated_route_payload_with

Function validated_route_payload_with 

pub fn validated_route_payload_with(
    route: &RouteSpec,
    envelope: &SignedOp,
    decrypted_payload: Option<&[u8]>,
) -> Option<WholeDocumentPayload>
Expand description

validated_route_payload for an envelope as it reaches the endpoint: a reassembled cleartext transfer arrives on its last segment’s envelope with the complete mutation beside it. The segment envelope must belong to route, and the complete payload must be a current-format mutation (the only format that is ever segmented).