Commitment

Trait Commitment 

Source
pub trait Commitment<T> {
    // Required methods
    fn create_commitment_with_user_defined_randomness(
        message: &BigInt,
        blinding_factor: &BigInt,
    ) -> T;
    fn create_commitment(message: &BigInt) -> (T, BigInt);
}

Required Methods§

Source

fn create_commitment_with_user_defined_randomness( message: &BigInt, blinding_factor: &BigInt, ) -> T

Source

fn create_commitment(message: &BigInt) -> (T, BigInt)

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§