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

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

A trait for a commitment scheme.

Required Associated Types§

type Input

type Output

type Randomizer

Required Methods§

fn commit( &self, input: &[Self::Input], randomizer: &Self::Randomizer ) -> Result<Self::Output, Error>

Returns the commitment to the given input and randomizer.

Implementors§

source§

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

§

type Input = bool

§

type Output = Field<E>

§

type Randomizer = Scalar<E>

source§

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

§

type Input = bool

§

type Output = Field<E>

§

type Randomizer = Scalar<E>