pub fn moved(
community_id: &CommunityId,
event: &DescriptorUpdated,
chain: &[SignedRootRotation],
accepted: &AcceptedState,
current_host: HostId,
now_ms: u64,
) -> Result<Option<Moved>, ValidityError>Expand description
Checks a community.descriptor_updated event against the client’s stored state (§4.3,
with anti-rollback: a lower revision or delegation epoch is refused) and says whether the
community moved to another host. chain is the rotation chain the client holds; a
rotation embedded in the new descriptor extends it, as at the host.
Ok(None): valid, and still delegated to current_host (a descriptor edit).
§Errors
ValidityError for a pair that is not valid, or older than accepted. A descriptor
without a delegation (suspension) is ValidityError::NoDelegation.