pub fn rotate_root(
current: &CommunityDescriptor,
old: &SecretKey,
new: &SecretKey,
now_ms: u64,
) -> Result<SignedRootRotation, BuildError>Expand description
Signs the rotation from the current root old to new (§4.6): rotation_seq follows
the descriptor’s latest rotation, and both keys sign.
§Errors
BuildError::WrongRootKey when old is not current.root_public_key; signing errors.