pub enum CheckpointKind {
LocalJournal,
HubOrg,
}Expand description
What a JournalCheckpoint is committing to. The discriminator lets a
verifier physically distinguish a local-journal record from a
Hub/org checkpoint, so a checkpoint can never accidentally promote
replay-hub-org just because the on-disk shape happens to match.
PR 6 v0.9.9 release rule: a verifier emits replay-hub-org PASS
ONLY when:
- checkpoint_kind == HubOrg AND
- hub_id is set AND
- hub_public_key is set AND
- hub_signature is set AND verifies AND
- covered_use_ids includes every use under verification
Default value is LocalJournal so checkpoints written before PR 6 (which serialized without this field) deserialize as local-only.
Variants§
LocalJournal
Internal local-journal commitment. Cannot promote replay
posture beyond included-checkpoint.
HubOrg
Signed by a Hub / org. May promote replay-hub-org if the
signature verifies and coverage is asserted.
Implementations§
Trait Implementations§
Source§impl Clone for CheckpointKind
impl Clone for CheckpointKind
Source§fn clone(&self) -> CheckpointKind
fn clone(&self) -> CheckpointKind
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 moreimpl Copy for CheckpointKind
Source§impl Debug for CheckpointKind
impl Debug for CheckpointKind
Source§impl Default for CheckpointKind
impl Default for CheckpointKind
Source§fn default() -> CheckpointKind
fn default() -> CheckpointKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CheckpointKind
impl<'de> Deserialize<'de> for CheckpointKind
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 CheckpointKind
Source§impl PartialEq for CheckpointKind
impl PartialEq for CheckpointKind
Source§fn eq(&self, other: &CheckpointKind) -> bool
fn eq(&self, other: &CheckpointKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CheckpointKind
impl Serialize for CheckpointKind
impl StructuralPartialEq for CheckpointKind
Auto Trait Implementations§
impl Freeze for CheckpointKind
impl RefUnwindSafe for CheckpointKind
impl Send for CheckpointKind
impl Sync for CheckpointKind
impl Unpin for CheckpointKind
impl UnsafeUnpin for CheckpointKind
impl UnwindSafe for CheckpointKind
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
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.