Skip to content

Struct signed::HostDelegation

zaun_community_protocol::signed::HostDelegation · Struct

pub struct HostDelegation { … }

The root key’s authorisation of one host to operate the community.

2: the community.

3: MUST equal the derivation from host_public_key.

4: the host key.

5: 1–4 SimpleX contact addresses of the host, each ≤ 2 048 bytes.

6: scopes.

7: ≥ 1.

8: ms.

9: ms; none = until replaced or revoked.

10: ms.

pub fn grants(&self, required: Scopes) -> bool

Whether the delegation grants every scope in required (unknown bits never count).

Clone, Debug, Decode, Encode, Eq, PartialEq, SignedObject, StructuralPartialEq

Full rustdoc page