Skip to content

Struct signed::ValidPair

zaun_community_protocol::signed::ValidPair · Struct

pub struct ValidPair { … }

A (descriptor, delegation) pair valid at the time it was checked, with the state to store. Only validate_pair creates one.

pub const fn descriptor(&self) -> &Signed<CommunityDescriptor>

The verified descriptor.

pub const fn delegation(&self) -> &Signed<HostDelegation>

The verified delegation.

pub const fn chain(&self) -> &ChainHead

The verified rotation chain.

pub const fn state(&self) -> &AcceptedState

The anti-rollback state to store for the community after accepting this pair.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page