build_zone_succession_document

Function build_zone_succession_document 

Source
pub fn build_zone_succession_document(
    old_zone_key: &ZoneKey,
    successor_did: impl Into<String>,
) -> DidDocument
Expand description

Build a deactivated zone DID Document expressing zone succession.

When a zone owner rotates to a new zone, they publish this document at the old zone root name. The successor_did is listed in alsoKnownAs. Resolvers that check [DidResolutionResult::is_deactivated] will follow the succession chain.