# Function client::owner::resign_delegation

> Re-signs an existing delegation under a new root key. The bytes, hence the `delegation_hash` and epoch, are unchanged.

`zaun_community_protocol::client::owner::resign_delegation` · Function

```rust
pub fn resign_delegation(new_root: &SecretKey, delegation: &HostDelegation) -> Result<Signed<HostDelegation>, BuildError>
```

Re-signs an existing delegation under a new root key. The bytes, hence the
`delegation_hash` and epoch, are unchanged.

# Errors
Signing errors.

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