# Function client::owner::generate_root_key

> Generates a fresh root key: the community's identity. Store it sealed; it cannot be recovered (ADR-0011).

`zaun_community_protocol::client::owner::generate_root_key` · Function

```rust
pub fn generate_root_key() -> Result<SecretKey, RngError>
```

Generates a fresh root key: the community's identity. Store it sealed; it cannot
be recovered (ADR-0011).

# Errors
`RngError` when the OS CSPRNG fails.

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