pub struct GovernanceKeyRecord {
pub public_key: PublicKeyHex,
pub from_seq: u64,
pub through_seq: Option<u64>,
pub status: KeyStatus,
pub introduced_by: Option<GovernanceLogId>,
pub retired_by: Option<GovernanceLogId>,
pub certified: bool,
}Expand description
One key’s span of the chain, as verify_chain derives it and
GET /api/governance/signing-keys publishes it
Fields§
§public_key: PublicKeyHex§from_seq: u64The first chain_seq this key signed
through_seq: Option<u64>The last chain_seq this key is trusted for; null while active.
For a compromised key this is last_trusted, not the seq at which
the compromise was declared.
status: KeyStatus§introduced_by: Option<GovernanceLogId>The rotation entry that introduced this key; null for the genesis
key, which predates the chain
retired_by: Option<GovernanceLogId>The rotation entry that ended this key’s span
certified: boolA KeyCertificate from the root vouches for this key. false
only for a genesis key whose retroactive certificate the chain does
not carry yet.
Trait Implementations§
Source§impl Clone for GovernanceKeyRecord
impl Clone for GovernanceKeyRecord
Source§impl Debug for GovernanceKeyRecord
impl Debug for GovernanceKeyRecord
Source§impl<'de> Deserialize<'de> for GovernanceKeyRecord
impl<'de> Deserialize<'de> for GovernanceKeyRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GovernanceKeyRecord
Source§impl PartialEq for GovernanceKeyRecord
impl PartialEq for GovernanceKeyRecord
Source§impl Serialize for GovernanceKeyRecord
impl Serialize for GovernanceKeyRecord
impl StructuralPartialEq for GovernanceKeyRecord
Auto Trait Implementations§
impl Freeze for GovernanceKeyRecord
impl RefUnwindSafe for GovernanceKeyRecord
impl Send for GovernanceKeyRecord
impl Sync for GovernanceKeyRecord
impl Unpin for GovernanceKeyRecord
impl UnsafeUnpin for GovernanceKeyRecord
impl UnwindSafe for GovernanceKeyRecord
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