[][src]Trait storage_proofs::hasher::Hasher

pub trait Hasher: Clone + Debug + Eq + Default + Send + Sync {
    type Domain: Domain + LightHashable<Self::Function>;
    type Function: HashFunction<Self::Domain>;
    fn kdf(data: &[u8], m: usize) -> Self::Domain;
fn sloth_encode(
        key: &Self::Domain,
        ciphertext: &Self::Domain,
        rounds: usize
    ) -> Self::Domain;
fn sloth_decode(
        key: &Self::Domain,
        ciphertext: &Self::Domain,
        rounds: usize
    ) -> Self::Domain;
fn name() -> String; }

Associated Types

Loading content...

Required methods

fn kdf(data: &[u8], m: usize) -> Self::Domain

fn sloth_encode(
    key: &Self::Domain,
    ciphertext: &Self::Domain,
    rounds: usize
) -> Self::Domain

fn sloth_decode(
    key: &Self::Domain,
    ciphertext: &Self::Domain,
    rounds: usize
) -> Self::Domain

fn name() -> String

Loading content...

Implementors

impl Hasher for Blake2sHasher[src]

type Domain = Blake2sDomain

type Function = Blake2sFunction

impl Hasher for PedersenHasher[src]

type Domain = PedersenDomain

type Function = PedersenFunction

impl<D: Digester> Hasher for DigestHasher<D>[src]

type Domain = DigestDomain

type Function = DigestFunction<D>

Loading content...