Struct prio::pcp::types::Boolean [−][src]
pub struct Boolean<F: FieldElement> { /* fields omitted */ }
Expand description
Values of this type encode a simple boolean (either true
or false
).
Implementations
Trait Implementations
type Field = F
type Field = F
The finite field used for this type.
Evaluates the validity circuit on the given input (i.e., self
) and returns the output.
joint_rand
is the joint randomness shared by the prover and verifier. g
is the sequence
of gadgets called by the circuit. Read more
The number of calls to the gadget made when evaluating the validity circuit.
The length of the random input used by both the prover and the verifier.
The length of the random input consumed by the prover to generate a proof. This is the same as the sum of the arity of each gadget in the validity circuit. Read more
The length of the random input consumed by the verifier to make queries against inputs and proofs. This is the same as the number of gadgets in the validity circuit. Read more
Returns the sequence of gadgets associated with the validity circuit. Read more
When verifying a proof over secret shared data, this method may be used to distinguish the “leader” share from the others. This is useful, for example, when some of the gadget inputs are constants used for both proof generation and verification. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for Boolean<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for Boolean<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self