pub fn verify_hand_off(
bytes: &[u8],
trust: &PinnedTrust,
versions: &dyn DirectoryVersions,
delegate_device: Uuid,
max_protocol: &str,
) -> Result<VerifiedHandOff, DelegationError>Expand description
Verify a hand-off addressed to delegate_device, all or nothing.
trust is the account’s directory as this device pins it (admitted against versions, so a
stale directory cannot readmit a revoked origin); max_protocol is the newest upload
protocol this delegate speaks.
§Errors
The DelegationError naming the first check that failed. Nothing is persisted.