Trait ark_crypto_primitives::commitment::CommitmentScheme [−][src]
Associated Types
type Output: ToBytes + Clone + Default + Eq + Hash + Debug
[src]
type Parameters: Clone
[src]
type Randomness: Clone + ToBytes + Default + Eq + UniformRand + Debug
[src]
Required methods
fn setup<R: Rng>(r: &mut R) -> Result<Self::Parameters, Error>
[src]
fn commit(
parameters: &Self::Parameters,
input: &[u8],
r: &Self::Randomness
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8],
r: &Self::Randomness
) -> Result<Self::Output, Error>
Implementors
impl CommitmentScheme for ark_crypto_primitives::commitment::blake2s::Commitment
[src]
type Parameters = ()
type Randomness = [u8; 32]
type Output = [u8; 32]
fn setup<R: Rng>(_: &mut R) -> Result<Self::Parameters, Error>
[src]
fn commit(
_: &Self::Parameters,
input: &[u8],
r: &Self::Randomness
) -> Result<Self::Output, Error>
[src]
_: &Self::Parameters,
input: &[u8],
r: &Self::Randomness
) -> Result<Self::Output, Error>
impl<C: ProjectiveCurve, I: InjectiveMap<C>, W: Window> CommitmentScheme for PedersenCommCompressor<C, I, W>
[src]
type Output = I::Output
type Parameters = Parameters<C>
type Randomness = Randomness<C>
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn commit(
parameters: &Self::Parameters,
input: &[u8],
randomness: &Self::Randomness
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8],
randomness: &Self::Randomness
) -> Result<Self::Output, Error>
impl<C: ProjectiveCurve, W: Window> CommitmentScheme for ark_crypto_primitives::commitment::pedersen::Commitment<C, W>
[src]
type Parameters = Parameters<C>
type Randomness = Randomness<C>
type Output = C::Affine
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn commit(
parameters: &Self::Parameters,
input: &[u8],
randomness: &Self::Randomness
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8],
randomness: &Self::Randomness
) -> Result<Self::Output, Error>