Struct plonk_gadgets::AllocatedScalar [−][src]
pub struct AllocatedScalar { pub var: Variable, pub scalar: BlsScalar, }
Expand description
An allocated scalar holds the underlying witness assignment for the Prover and a dummy value for the verifier XXX: This could possibly be added to the PLONK API
Fields
var: Variable
Variable associated to the Scalar
.
scalar: BlsScalar
Scalar associated to the Variable
Implementations
Allocates a BlsScalar into the constraint system as a witness
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AllocatedScalar
impl Send for AllocatedScalar
impl Sync for AllocatedScalar
impl Unpin for AllocatedScalar
impl UnwindSafe for AllocatedScalar
Blanket Implementations
Mutably borrows from an owned value. Read more