pub struct AttestedWeights {
pub sha256: String,
pub signature: Option<String>,
pub label: String,
}Expand description
Attested model-weight provenance returned by
InferenceBackend::attested_weights. MVP supply-chain attestation
per issue #654 — SHA-256 of the on-disk weight file, plus an
optional Ed25519 signature attested by the operator key.
v0.8 will extend this with a full Sigstore-style chain (cosign bundle, transparency log entry, key-rotation reference). Today the MVP shape is enough to refuse to serve from a tampered weight file at load time.
Fields§
§sha256: StringHex-encoded SHA-256 of the model weight bytes.
signature: Option<String>Optional base64-encoded Ed25519 signature over sha256.
None for backends that have not been signed yet.
label: StringOperator-readable label identifying the model
(e.g. "all-MiniLM-L6-v2" or "distilled-hot-path-v0.8").
Trait Implementations§
Source§impl Clone for AttestedWeights
impl Clone for AttestedWeights
Source§fn clone(&self) -> AttestedWeights
fn clone(&self) -> AttestedWeights
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 AttestedWeights
impl Debug for AttestedWeights
impl Eq for AttestedWeights
Source§impl PartialEq for AttestedWeights
impl PartialEq for AttestedWeights
Source§fn eq(&self, other: &AttestedWeights) -> bool
fn eq(&self, other: &AttestedWeights) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttestedWeights
Auto Trait Implementations§
impl Freeze for AttestedWeights
impl RefUnwindSafe for AttestedWeights
impl Send for AttestedWeights
impl Sync for AttestedWeights
impl Unpin for AttestedWeights
impl UnsafeUnpin for AttestedWeights
impl UnwindSafe for AttestedWeights
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,
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
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