pub trait CommitUncompressed {
    type Input;
    type Output;
    type Randomizer;

    // Required method
    fn commit_uncompressed(
        &self,
        input: &[Self::Input],
        randomizer: &Self::Randomizer
    ) -> Self::Output;
}
Expand description

A trait for a commitment scheme.

Required Associated Types§

Required Methods§

source

fn commit_uncompressed( &self, input: &[Self::Input], randomizer: &Self::Randomizer ) -> Self::Output

Returns the commitment to the given input and randomizer.

Trait Implementations§

source§

impl<E, const NUM_BITS: u8> Metrics<dyn CommitUncompressed<Randomizer = Scalar<E>, Output = Group<E>, Input = Boolean<E>>> for Pedersen<E, NUM_BITS>where E: Environment,

§

type Case = (Vec<Mode, Global>, Vec<Mode, Global>)

source§

fn count( case: &<Pedersen<E, NUM_BITS> as Metrics<dyn CommitUncompressed<Randomizer = Scalar<E>, Output = Group<E>, Input = Boolean<E>>>>::Case ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
source§

impl<E, const NUM_BITS: u8> OutputMode<dyn CommitUncompressed<Randomizer = Scalar<E>, Output = Group<E>, Input = Boolean<E>>> for Pedersen<E, NUM_BITS>where E: Environment,

§

type Case = (Vec<Mode, Global>, Vec<Mode, Global>)

source§

fn output_mode( parameters: &<Pedersen<E, NUM_BITS> as OutputMode<dyn CommitUncompressed<Randomizer = Scalar<E>, Output = Group<E>, Input = Boolean<E>>>>::Case ) -> Mode

Returns the mode of the output.

Implementors§

source§

impl<E, const NUM_BITS: u8> CommitUncompressed for Pedersen<E, NUM_BITS>where E: Environment,

§

type Input = Boolean<E>

§

type Output = Group<E>

§

type Randomizer = Scalar<E>

source§

impl<E, const NUM_WINDOWS: u8, const WINDOW_SIZE: u8> CommitUncompressed for BHP<E, NUM_WINDOWS, WINDOW_SIZE>where E: Environment,

§

type Input = Boolean<E>

§

type Output = Group<E>

§

type Randomizer = Scalar<E>