Skip to main content

EntryVerdict

Struct EntryVerdict 

Source
pub struct EntryVerdict {
Show 19 fields pub id: GovernanceLogId, pub chain_seq: u64, pub signature_valid: bool, pub link_valid: bool, pub content_matches: Option<bool>, pub retroactive: bool, pub out_of_order: bool, pub amended_by: Vec<GovernanceLogId>, pub signed_by: Option<PublicKeyHex>, pub redacted: bool, pub redacted_data_hash: Option<Sha256Hex>, pub revisions: Vec<GovernanceLogId>, pub latest_data_hash: Option<Sha256Hex>, pub superseded_revisions: Vec<GovernanceLogId>, pub history: RevisionHistory, pub repudiated: bool, pub reattested_by: Vec<GovernanceLogId>, pub texts: Option<AmendmentTextStatus>, pub problem: Option<String>,
}
Expand description

The verdict on one entry

Fields§

§id: GovernanceLogId§chain_seq: u64§signature_valid: bool

The signature verifies over entry_hash and signed_at under the published key

§link_valid: bool

entry_hash recomputes from the envelope fields, prev_hash is the previous entry’s entry_hash, and chain_seq is contiguous

§content_matches: Option<bool>

The entry’s stored data hashes to the attested data_hash — or, when a redaction names the entry, to the redaction’s resulting_data_hash — or data is the entry’s latest version. null when the verifier did not read data. false with a clean chain means the content was changed after attestation and no amendment says so.

§retroactive: bool§out_of_order: bool

created_at is earlier than the previous link’s. Informational: chain order is what is attested, and a clock step does not break it.

§amended_by: Vec<GovernanceLogId>

Amendment entries that name this one

§signed_by: Option<PublicKeyHex>

The key the signature was checked under — the one in force at this position, or for a compromise declaration the certified new key

§redacted: bool

A redaction amendment names this entry, so its data has lawfully changed since it was attested

§redacted_data_hash: Option<Sha256Hex>

What the entry’s data must hash to now, when it has been redacted

§revisions: Vec<GovernanceLogId>

Revision amendments naming this entry, in chain order: its latest version is its stored data with each one’s patch applied (0.43)

§latest_data_hash: Option<Sha256Hex>

What the entry’s latest version hashes to: the last revision’s resulting_data_hash, or a later redaction’s resulting_latest_hash (0.43)

§superseded_revisions: Vec<GovernanceLogId>

Revisions whose own resulting_data_hash a later redaction superseded: they describe the unredacted history, and the redaction’s resulting_latest_hash is checked instead. Reported, not a failure. (0.43)

§history: RevisionHistory

What check_content folds. Not on the wire: the amendments carry it.

§repudiated: bool

Signed inside a compromise window and not reattested: the key holder of record disclaims it

§reattested_by: Vec<GovernanceLogId>

AmendmentKind::Reattested amendments vouching for this entry under a later, trusted key

§texts: Option<AmendmentTextStatus>

A version 2 amendment’s texts: each beside the entry and matching what it committed to, or withheld. A text that does not match is a problem.

§problem: Option<String>

What failed, when something did

Trait Implementations§

Source§

impl Clone for EntryVerdict

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EntryVerdict

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EntryVerdict

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for EntryVerdict

Source§

impl PartialEq for EntryVerdict

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EntryVerdict

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EntryVerdict

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PendingHandle for T
where T: Send + 'static,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V