Skip to main content

ZkappCheck

Trait ZkappCheck 

Source
pub trait ZkappCheck {
    type T;

    // Required method
    fn zcheck<Ops: ZkappCheckOps>(
        &self,
        x: &Self::T,
        w: &mut Witness<Fp>,
    ) -> Boolean;
}
Expand description

Check zkapp preconditions

Required Associated Types§

Source

type T

Required Methods§

Source

fn zcheck<Ops: ZkappCheckOps>( &self, x: &Self::T, w: &mut Witness<Fp>, ) -> Boolean

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<DefaultFn> ZkappCheck for (&OrIgnore<Boolean>, DefaultFn)
where DefaultFn: Fn() -> Boolean,

Source§

type T = Boolean

Source§

fn zcheck<Ops: ZkappCheckOps>( &self, x: &Self::T, w: &mut Witness<Fp>, ) -> Boolean

Source§

impl<DefaultFn> ZkappCheck for (&OrIgnore<CompressedPubKey>, DefaultFn)
where DefaultFn: Fn() -> CompressedPubKey,

Source§

type T = CompressedPubKey

Source§

fn zcheck<Ops: ZkappCheckOps>( &self, x: &Self::T, w: &mut Witness<Fp>, ) -> Boolean

Source§

impl<DefaultFn> ZkappCheck for (&OrIgnore<Fp>, DefaultFn)
where DefaultFn: Fn() -> Fp,

Source§

type T = Fp<MontBackend<FqConfig, 4>, 4>

Source§

fn zcheck<Ops: ZkappCheckOps>( &self, x: &Self::T, w: &mut Witness<Fp>, ) -> Boolean

Source§

impl<T, DefaultFn> ZkappCheck for (&OrIgnore<ClosedInterval<T>>, DefaultFn)
where DefaultFn: Fn() -> ClosedInterval<T>, T: ForZkappCheck<Fp>,

Source§

type T = T

Source§

fn zcheck<Ops: ZkappCheckOps>( &self, x: &Self::T, w: &mut Witness<Fp>, ) -> Boolean

Implementors§