pub struct VerifiedContextCheckpointV2 { /* private fields */ }Expand description
V2 checkpoint whose artifact lineage was recomputed from authoritative task, plan, signed receipt, and accepted-outcome owners.
The inner wire value is private. Only this proof-carrying wrapper exposes the V2 signing payload, so structurally valid untrusted wire data cannot reach a signer through the safe API.
Implementations§
Source§impl VerifiedContextCheckpointV2
impl VerifiedContextCheckpointV2
Sourcepub fn checkpoint(&self) -> &ContextCheckpointV2
pub fn checkpoint(&self) -> &ContextCheckpointV2
Borrow the validated wire value for persistence or transport.
Sourcepub fn signing_payload(
&self,
) -> Result<VerifiedContextCheckpointSigningPayloadV2, CheckpointLineageError>
pub fn signing_payload( &self, ) -> Result<VerifiedContextCheckpointSigningPayloadV2, CheckpointLineageError>
Produce the domain-separated bytes that a checkpoint V2 signer covers.
Methods from Deref<Target = ContextCheckpointV2>§
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate every V2 invariant, including all V1 live-state bindings.
Sourcepub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
Return canonical compact JSON bytes with lexicographically sorted keys.
Sourcepub fn canonical_json(&self) -> Result<String, ValidationError>
pub fn canonical_json(&self) -> Result<String, ValidationError>
Return canonical JSON text.
Sourcepub fn digest(&self) -> Result<Sha256Digest, ValidationError>
pub fn digest(&self) -> Result<Sha256Digest, ValidationError>
Domain-separated content identity of the complete V2 checkpoint.
Sourcepub fn digest_inputs(
&self,
) -> Result<ContextCheckpointDigestInputsV1, ValidationError>
pub fn digest_inputs( &self, ) -> Result<ContextCheckpointDigestInputsV1, ValidationError>
Domain-separated digest inputs, including the V2 artifact lineage.
Trait Implementations§
Source§impl Clone for VerifiedContextCheckpointV2
impl Clone for VerifiedContextCheckpointV2
Source§impl Debug for VerifiedContextCheckpointV2
impl Debug for VerifiedContextCheckpointV2
Source§impl Deref for VerifiedContextCheckpointV2
impl Deref for VerifiedContextCheckpointV2
impl Eq for VerifiedContextCheckpointV2
impl StructuralPartialEq for VerifiedContextCheckpointV2
Auto Trait Implementations§
impl Forget for VerifiedContextCheckpointV2
impl Freeze for VerifiedContextCheckpointV2
impl Move for VerifiedContextCheckpointV2
impl RefUnwindSafe for VerifiedContextCheckpointV2
impl Send for VerifiedContextCheckpointV2
impl Sync for VerifiedContextCheckpointV2
impl Unpin for VerifiedContextCheckpointV2
impl UnsafeUnpin for VerifiedContextCheckpointV2
impl UnwindSafe for VerifiedContextCheckpointV2
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,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more