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§fn clone(&self) -> VerifiedContextCheckpointV2
fn clone(&self) -> VerifiedContextCheckpointV2
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 moreSource§impl Debug for VerifiedContextCheckpointV2
impl Debug for VerifiedContextCheckpointV2
Source§impl Deref for VerifiedContextCheckpointV2
impl Deref for VerifiedContextCheckpointV2
Source§type Target = ContextCheckpointV2
type Target = ContextCheckpointV2
The resulting type after dereferencing.
impl Eq for VerifiedContextCheckpointV2
impl StructuralPartialEq for VerifiedContextCheckpointV2
Auto Trait Implementations§
impl Forget for VerifiedContextCheckpointV2
impl Freeze for VerifiedContextCheckpointV2where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ReceiptId>: Freeze,
PhantomData<Sha256Digest>: Freeze,
PhantomData<ProtocolReference>: Freeze,
PhantomData<ContextCheckpointDecisionV1>: Freeze,
PhantomData<ContextCheckpointTextV1>: Freeze,
PhantomData<ContextCheckpointFileV1>: Freeze,
PhantomData<ContextCheckpointPolicyPinV1>: Freeze,
PhantomData<ContextCheckpointPackagePinV1>: Freeze,
impl Move for VerifiedContextCheckpointV2
impl RefUnwindSafe for VerifiedContextCheckpointV2
impl Send for VerifiedContextCheckpointV2where
RawVecInner: Send,
impl Sync for VerifiedContextCheckpointV2where
RawVecInner: Sync,
impl Unpin for VerifiedContextCheckpointV2
impl UnsafeUnpin for VerifiedContextCheckpointV2where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReceiptId>: UnsafeUnpin,
PhantomData<Sha256Digest>: UnsafeUnpin,
PhantomData<ProtocolReference>: UnsafeUnpin,
PhantomData<ContextCheckpointDecisionV1>: UnsafeUnpin,
PhantomData<ContextCheckpointTextV1>: UnsafeUnpin,
PhantomData<ContextCheckpointFileV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPolicyPinV1>: UnsafeUnpin,
PhantomData<ContextCheckpointPackagePinV1>: UnsafeUnpin,
impl UnwindSafe for VerifiedContextCheckpointV2where
RawVecInner: UnwindSafe,
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
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