pub struct Witness<F: Field> { /* private fields */ }Expand description
A witness: wire values satisfying the constraint set.
Entry i is the value of Wire::new(i).
The vector must be long enough to cover every wire index
referenced by the constraint set.
§Examples
use plonkish_cat::F101;
use proof_cat::Witness;
// Three wires: w0=3, w1=4, w2=7.
let w = Witness::new(vec![F101::new(3), F101::new(4), F101::new(7)]);
assert_eq!(w.values().len(), 3);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Witness<F>
impl<F> RefUnwindSafe for Witness<F>where
F: RefUnwindSafe,
impl<F> Send for Witness<F>where
F: Send,
impl<F> Sync for Witness<F>where
F: Sync,
impl<F> Unpin for Witness<F>where
F: Unpin,
impl<F> UnsafeUnpin for Witness<F>
impl<F> UnwindSafe for Witness<F>where
F: 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