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.
Methods
Section titled “Methods”descriptor
Section titled “descriptor”pub const fn descriptor(&self) -> &Signed<CommunityDescriptor>The verified descriptor.
pub const fn chain(&self) -> &ChainHeadThe verified rotation chain.
accepted_state
Section titled “accepted_state”pub fn accepted_state(&self, previous: Option<&AcceptedState>) -> AcceptedStateThe state to store after accepting this descriptor alone (for example a suspension):
the delegation part is carried over from previous.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq