pub struct ProofCarrying<T> {
pub value: T,
/* private fields */
}Expand description
A value carrying cryptographic proof of verification.
This type can only be constructed by successful SMT verification. Its existence in a type signature proves that formal verification occurred.
§Type Safety Guarantee
ProofCarrying<T> cannot be forged - the private _proof field
ensures only the prover crate can construct it.
Fields§
§value: TThe carried value.
Implementations§
Source§impl<T> ProofCarrying<T>
impl<T> ProofCarrying<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Extracts the inner value, consuming the proof.
Trait Implementations§
Source§impl<T: Clone> Clone for ProofCarrying<T>
impl<T: Clone> Clone for ProofCarrying<T>
Auto Trait Implementations§
impl<T> Freeze for ProofCarrying<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProofCarrying<T>where
T: RefUnwindSafe,
impl<T> Send for ProofCarrying<T>where
T: Send,
impl<T> Sync for ProofCarrying<T>where
T: Sync,
impl<T> Unpin for ProofCarrying<T>where
T: Unpin,
impl<T> UnwindSafe for ProofCarrying<T>where
T: 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