Skip to content

Struct signed::ValidDescriptor

zaun_community_protocol::signed::ValidDescriptor · Struct

pub struct ValidDescriptor { … }

A descriptor that passed rule 1 and the descriptor parts of rule 5.

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

The verified descriptor.

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

The verified rotation chain.

pub fn accepted_state(&self, previous: Option<&AcceptedState>) -> AcceptedState

The state to store after accepting this descriptor alone (for example a suspension): the delegation part is carried over from previous.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page