pub trait Conceal {
    type Concealed;

    // Required method
    fn conceal(&self) -> Self::Concealed;
}
Expand description

Trait that should perform conversion of a given client-side-validated data type into a concealed (private) form, for instance hiding some of the data behind hashed - or homomorphically-encrypted version.

Since the resulting concealed version must be unequally derived from the original data with negligible risk of collisions, it is a form of commitment.

Required Associated Types§

source

type Concealed

The resulting confidential type concealing original data.

Required Methods§

source

fn conceal(&self) -> Self::Concealed

Performs conceal procedure returning confidential data concealing original data.

Implementors§