pub struct Capsule {
pub capsule_id: String,
pub intent: IntentData,
pub authority: AuthorityData,
pub identity: IdentityData,
pub witness: WitnessData,
pub intent_hash: String,
pub authority_hash: String,
pub identity_hash: String,
pub witness_hash: String,
pub capsule_root: String,
pub crypto: CryptoData,
pub request_commitment: Option<RequestCommitment>,
}Expand description
A Composite Evidence Capsule (The v0.1.0 “Zero-Trust Singularity” Root) Binds Intent, Authority, Identity, and Witness into a single commitment.
Fields§
§capsule_id: String§intent: IntentDataVEX Pillar: What was intended
CHORA Pillar: Who authorized it
identity: IdentityDataATTEST Pillar: Where it executed (Silicon)
witness: WitnessDataCHORA Log Pillar: Where the receipt lives
intent_hash: String§identity_hash: String§witness_hash: String§capsule_root: String§crypto: CryptoDataEd25519 signature details
request_commitment: Option<RequestCommitment>Optional auditable link to raw payload (v0.2+)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Capsule
impl<'de> Deserialize<'de> for Capsule
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 StructuralPartialEq for Capsule
Auto Trait Implementations§
impl Freeze for Capsule
impl RefUnwindSafe for Capsule
impl Send for Capsule
impl Sync for Capsule
impl Unpin for Capsule
impl UnsafeUnpin for Capsule
impl UnwindSafe for Capsule
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<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