pub struct ShadowPublicInputs {
pub schema: String,
pub start_root: String,
pub commitment_hash: String,
pub circuit_id: String,
pub public_salt: String,
pub verifier_params_hash: Option<String>,
}Expand description
Typed Public Inputs for Shadow Intents (Phase 2 Hardening)
Fields§
§schema: String§start_root: String§commitment_hash: String§circuit_id: String§public_salt: StringThe salt used in the semantic commitment (Phase 3 Binding)
verifier_params_hash: Option<String>Implementations§
Source§impl ShadowPublicInputs
impl ShadowPublicInputs
pub const SCHEMA_V1: &'static str = "vex.shadow_intent.public_inputs.v1"
pub fn validate(&self) -> Result<(), String>
pub fn to_schema_value(&self) -> SchemaValue
pub fn from_schema_value(v: &SchemaValue) -> Result<Self, String>
Sourcepub fn verify_opening(&self, prompt: &str) -> bool
pub fn verify_opening(&self, prompt: &str) -> bool
Verifies that the commitment hash matches the provided prompt and salt. This is the “Commitment Opening” step for auditors (Phase 5).
Trait Implementations§
Source§impl Clone for ShadowPublicInputs
impl Clone for ShadowPublicInputs
Source§fn clone(&self) -> ShadowPublicInputs
fn clone(&self) -> ShadowPublicInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ShadowPublicInputs
impl ComposeSchema for ShadowPublicInputs
Source§impl Debug for ShadowPublicInputs
impl Debug for ShadowPublicInputs
Source§impl<'de> Deserialize<'de> for ShadowPublicInputs
impl<'de> Deserialize<'de> for ShadowPublicInputs
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 ShadowPublicInputs
impl PartialEq for ShadowPublicInputs
Source§impl Serialize for ShadowPublicInputs
impl Serialize for ShadowPublicInputs
Source§impl ToSchema for ShadowPublicInputs
impl ToSchema for ShadowPublicInputs
impl Eq for ShadowPublicInputs
impl StructuralPartialEq for ShadowPublicInputs
Auto Trait Implementations§
impl Freeze for ShadowPublicInputs
impl RefUnwindSafe for ShadowPublicInputs
impl Send for ShadowPublicInputs
impl Sync for ShadowPublicInputs
impl Unpin for ShadowPublicInputs
impl UnsafeUnpin for ShadowPublicInputs
impl UnwindSafe for ShadowPublicInputs
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§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<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