Skip to content

Function client::owner::rotate_root

zaun_community_protocol::client::owner::rotate_root · Function

pub fn rotate_root(current: &CommunityDescriptor, old: &SecretKey, new: &SecretKey, now_ms: u64) -> Result<SignedRootRotation, BuildError>

Signs the rotation from the current root old to new: rotation_seq follows the descriptor’s latest rotation, and both keys sign.

BuildError::WrongRootKey when old is not current.root_public_key; signing errors.

Full rustdoc page