pub fn validate_successor(
predecessor: &ChainState,
candidate: &UpdateRecord,
now: &str,
) -> Result<ChainState, SuccessorError>Expand description
Validate that candidate is an authorized successor of predecessor as of
now, enforcing every successor-check gate (design #879 §5.5) fail-closed.
now is an ISO-8601 UTC (Z-terminated) instant supplied by the caller;
this function performs no clock I/O so it stays pure and deterministic.
On success returns the candidate’s ChainState — feed it back as the
predecessor for the next link, and (for the B2 duplicity layer, #886)
persist its (epoch, record_digest) as the identity’s high-watermark.