Struct signed::HostDelegation
zaun_community_protocol::signed::HostDelegation · Struct
pub struct HostDelegation { … }The root key’s authorisation of one host to operate the community.
Fields
Section titled “Fields”community_id: CommunityId
Section titled “community_id: CommunityId”2: the community.
host_id: HostId
Section titled “host_id: HostId”3: MUST equal the derivation from host_public_key.
host_public_key: PublicKey
Section titled “host_public_key: PublicKey”4: the host key.
host_addresses: Vec<String>
Section titled “host_addresses: Vec<String>”5: 1–4 SimpleX contact addresses of the host, each ≤ 2 048 bytes.
scopes: Scopes
Section titled “scopes: Scopes”6: scopes.
epoch: u64
Section titled “epoch: u64”7: ≥ 1.
not_before: u64
Section titled “not_before: u64”8: ms.
expires_at: Option<u64>
Section titled “expires_at: Option<u64>”9: ms; none = until replaced or revoked.
issued_at: u64
Section titled “issued_at: u64”10: ms.
Methods
Section titled “Methods”grants
Section titled “grants”pub fn grants(&self, required: Scopes) -> boolWhether the delegation grants every scope in required (unknown bits never count).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Decode, Encode, Eq, PartialEq, SignedObject, StructuralPartialEq