pub struct GovernanceAttestation {
pub envelope_version: u32,
pub chain_seq: u64,
pub prev_hash: Option<Sha256Hex>,
pub data_hash: Sha256Hex,
pub entry_hash: Sha256Hex,
pub signature: SignatureHex,
pub signed_at: DateTime<Utc>,
pub retroactive: bool,
}Expand description
What the server attests about one governance log entry
Fields§
§envelope_version: u32Envelope version; see the module docs for what 1 commits to
chain_seq: u64Position in the chain, from 1. An index, not part of the envelope:
the prev_hash links are what prove order.
prev_hash: Option<Sha256Hex>entry_hash of the previous entry; null only for the first
data_hash: Sha256HexSHA-256 of the entry’s canonical data
entry_hash: Sha256HexSHA-256 of the envelope; what the signature covers
signature: SignatureHexEd25519 over entry_hash and signed_at, by the platform’s
governance signing key
signed_at: DateTime<Utc>When the signature was made. Distinct from created_at: see
retroactive.
retroactive: booltrue when signed well after the entry was recorded — the entries
that predate signing were attested this way, which proves the
Steward vouches for them, not that they were signed at the time
Trait Implementations§
Source§impl Clone for GovernanceAttestation
impl Clone for GovernanceAttestation
Source§impl Debug for GovernanceAttestation
impl Debug for GovernanceAttestation
Source§impl<'de> Deserialize<'de> for GovernanceAttestation
impl<'de> Deserialize<'de> for GovernanceAttestation
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 GovernanceAttestation
Source§impl PartialEq for GovernanceAttestation
impl PartialEq for GovernanceAttestation
Source§impl Serialize for GovernanceAttestation
impl Serialize for GovernanceAttestation
impl StructuralPartialEq for GovernanceAttestation
Auto Trait Implementations§
impl Freeze for GovernanceAttestation
impl RefUnwindSafe for GovernanceAttestation
impl Send for GovernanceAttestation
impl Sync for GovernanceAttestation
impl Unpin for GovernanceAttestation
impl UnsafeUnpin for GovernanceAttestation
impl UnwindSafe for GovernanceAttestation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.