Trait ZkappCheckOps

Source
pub trait ZkappCheckOps {
    // Required methods
    fn compare_closed_interval<T: ForZkappCheck<Fp>>(
        interval: &ClosedInterval<T>,
        value: &T,
        w: &mut Witness<Fp>,
    ) -> Boolean;
    fn is_boolean_equal(
        a: &Boolean,
        b: &Boolean,
        w: &mut Witness<Fp>,
    ) -> Boolean;
    fn is_field_equal(a: &Fp, b: &Fp, w: &mut Witness<Fp>) -> Boolean;
    fn is_compressed_key_equal(
        a: &CompressedPubKey,
        b: &CompressedPubKey,
        w: &mut Witness<Fp>,
    ) -> Boolean;
    fn boolean_all<I>(bools: I, w: &mut Witness<Fp>) -> Boolean
       where I: IntoIterator<Item = Boolean>;
    fn boolean_any<I>(bools: I, w: &mut Witness<Fp>) -> Boolean
       where I: IntoIterator<Item = Boolean>;
}

Required Methods§

Source

fn compare_closed_interval<T: ForZkappCheck<Fp>>( interval: &ClosedInterval<T>, value: &T, w: &mut Witness<Fp>, ) -> Boolean

Source

fn is_boolean_equal(a: &Boolean, b: &Boolean, w: &mut Witness<Fp>) -> Boolean

Source

fn is_field_equal(a: &Fp, b: &Fp, w: &mut Witness<Fp>) -> Boolean

Source

fn is_compressed_key_equal( a: &CompressedPubKey, b: &CompressedPubKey, w: &mut Witness<Fp>, ) -> Boolean

Source

fn boolean_all<I>(bools: I, w: &mut Witness<Fp>) -> Boolean
where I: IntoIterator<Item = Boolean>,

Source

fn boolean_any<I>(bools: I, w: &mut Witness<Fp>) -> Boolean
where I: IntoIterator<Item = Boolean>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§