pub struct Witness {
pub wasm_op_label: String,
pub arm_op_count: usize,
pub solver_result: SolverResultKind,
}Expand description
A witness recording the validator’s acceptance of a selection.
For the prototype this is intentionally minimal. A v0.5 expansion will embed the SMT-LIB2 script that Z3 was given, so a third party can independently replay the verification without trusting the validator’s encoding logic.
Fields§
§wasm_op_label: StringHuman-readable label for the WASM op (e.g. "I32Add").
arm_op_count: usizeNumber of ARM instructions in the validated sequence.
solver_result: SolverResultKindThe Z3 result that produced this witness (always Unsat for accepted
selections — Unsat of wasm ≠ arm means wasm ≡ arm).
Trait Implementations§
impl Eq for Witness
impl StructuralPartialEq for Witness
Auto Trait Implementations§
impl Freeze for Witness
impl RefUnwindSafe for Witness
impl Send for Witness
impl Sync for Witness
impl Unpin for Witness
impl UnsafeUnpin for Witness
impl UnwindSafe for Witness
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.