pub fn seal(
bundle: &UploadBundle,
delegate: Uuid,
trust: &PinnedTrust,
) -> Result<SealedHandOff, DelegationError>Expand description
Seal bundle for delegate: the full upload bundle exactly as the origin would upload it,
and the hashes the origin computed itself.
The delegate must be a device of trust’s directory that is not revoked, and not the device
that signed the bundle.
§Errors
DelegationError::SelfDelegation, a PeeringError for a delegate the directory does not
admit, DelegationError::Inbox when the original cannot be read, or
DelegationError::Malformed when the container cannot be encoded.