Type Alias SnarkBool

Source
pub type SnarkBool = CircuitVar<Boolean>;

Aliased Type§

pub enum SnarkBool {
    Var(Boolean),
    Constant(Boolean),
}

Variants§

§

Var(Boolean)

§

Constant(Boolean)

Trait Implementations§

Source§

impl BoolInterface for SnarkBool

Source§

type W = Witness<Fp256<FpParameters>>

Source§

type FailureStatusTable = ()

Source§

fn as_boolean(&self) -> Boolean

Source§

fn of_boolean(b: Boolean) -> Self

Source§

fn true_() -> Self

Source§

fn false_() -> Self

Source§

fn neg(&self) -> Self

Source§

fn or(a: Self, b: Self, w: &mut Self::W) -> Self

Source§

fn and(a: Self, b: Self, w: &mut Self::W) -> Self

Source§

fn equal(a: Self, b: Self, w: &mut Self::W) -> Self

Source§

fn all(bs: &[Self], w: &mut Self::W) -> Self

Source§

fn assert_any(bs: &[Self], w: &mut Self::W) -> Result<(), String>

Source§

fn assert_with_failure_status_tbl( _b: Self, _table: &Self::FailureStatusTable, ) -> Result<(), String>