# Function client::owner::rotate_root

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

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

```rust
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.

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/owner/revise/fn.rotate_root.html)
