pub struct AcceptedState {
pub revision: u64,
pub descriptor_hash: [u8; 32],
pub delegation: Option<DelegationRef>,
pub rotation_seq: u64,
pub root_key_hash: [u8; 32],
pub min_suite: u8,
}Expand description
What a verifier stores per community for anti-rollback (rule 5).
Fields§
§revision: u64Highest accepted descriptor revision.
descriptor_hash: [u8; 32]SHA3-256 of that descriptor’s bytes (an equal revision must have equal bytes).
delegation: Option<DelegationRef>Highest accepted delegation epoch and its hash; none before the first delegation.
rotation_seq: u64Highest accepted rotation_seq (0 when never rotated).
root_key_hash: [u8; 32]SHA3-256 of the root key accepted at rotation_seq; every later chain must pass
through that key, so a retired key cannot fork the chain.
min_suite: u8Highest accepted min_suite.
Trait Implementations§
Source§impl Clone for AcceptedState
impl Clone for AcceptedState
Source§fn clone(&self) -> AcceptedState
fn clone(&self) -> AcceptedState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcceptedState
impl Debug for AcceptedState
impl Eq for AcceptedState
Source§impl PartialEq for AcceptedState
impl PartialEq for AcceptedState
impl StructuralPartialEq for AcceptedState
Auto Trait Implementations§
impl Freeze for AcceptedState
impl RefUnwindSafe for AcceptedState
impl Send for AcceptedState
impl Sync for AcceptedState
impl Unpin for AcceptedState
impl UnsafeUnpin for AcceptedState
impl UnwindSafe for AcceptedState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more