pub struct RuntimeReceiptV1 {
pub pipeline_id: String,
pub stages: Vec<StageReceiptSummary>,
pub non_claim: String,
pub receipt_hash: String,
}Expand description
A sealed record of one pipeline run (schema v1).
Fields§
§pipeline_id: String§stages: Vec<StageReceiptSummary>The ordered per-stage receipt summaries (input/output hashes + authorities).
non_claim: StringThe load-bearing non-claim.
receipt_hash: StringSHA-256 (via CanonicalHasher) over the pipeline id, the frozen-authority allow-list, and every stage
summary in order — the run’s tamper-evident root.
Implementations§
Source§impl RuntimeReceiptV1
impl RuntimeReceiptV1
pub const NON_CLAIM: &'static str = "A deterministic record of which stages ran over which densors against \ which frozen authorities — NOT a claim that the result is correct, optimal, or meaningful in any domain; \ the runtime is a mechanism, the meaning lives in the authorities it cites."
Sourcepub fn build(
manifest: &DensorManifest,
stages: Vec<StageReceiptSummary>,
) -> Self
pub fn build( manifest: &DensorManifest, stages: Vec<StageReceiptSummary>, ) -> Self
Build a sealed run receipt from the manifest + the ordered stage summaries.
Sourcepub fn verify(&self, manifest: &DensorManifest) -> bool
pub fn verify(&self, manifest: &DensorManifest) -> bool
Re-derive the seal and confirm it matches (tamper-evident). Requires the same manifest the run used.
Trait Implementations§
Source§impl Clone for RuntimeReceiptV1
impl Clone for RuntimeReceiptV1
Source§fn clone(&self) -> RuntimeReceiptV1
fn clone(&self) -> RuntimeReceiptV1
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 RuntimeReceiptV1
impl Debug for RuntimeReceiptV1
Source§impl<'de> Deserialize<'de> for RuntimeReceiptV1
impl<'de> Deserialize<'de> for RuntimeReceiptV1
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
Source§impl PartialEq for RuntimeReceiptV1
impl PartialEq for RuntimeReceiptV1
Source§fn eq(&self, other: &RuntimeReceiptV1) -> bool
fn eq(&self, other: &RuntimeReceiptV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeReceiptV1
impl Serialize for RuntimeReceiptV1
impl Eq for RuntimeReceiptV1
impl StructuralPartialEq for RuntimeReceiptV1
Auto Trait Implementations§
impl Freeze for RuntimeReceiptV1
impl RefUnwindSafe for RuntimeReceiptV1
impl Send for RuntimeReceiptV1
impl Sync for RuntimeReceiptV1
impl Unpin for RuntimeReceiptV1
impl UnsafeUnpin for RuntimeReceiptV1
impl UnwindSafe for RuntimeReceiptV1
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