[−][src]Trait storage_proofs::hasher::Hasher
Associated Types
type Domain: Domain + LightHashable<Self::Function>
type Function: HashFunction<Self::Domain>
Required methods
fn kdf(data: &[u8], m: usize) -> Self::Domain
fn sloth_encode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
fn sloth_decode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
fn name() -> String
Implementors
impl Hasher for Blake2sHasher
[src]
type Domain = Blake2sDomain
type Function = Blake2sFunction
fn name() -> String
[src]
fn kdf(data: &[u8], m: usize) -> Self::Domain
[src]
fn sloth_encode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
fn sloth_decode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
impl Hasher for PedersenHasher
[src]
type Domain = PedersenDomain
type Function = PedersenFunction
fn name() -> String
[src]
fn kdf(data: &[u8], m: usize) -> Self::Domain
[src]
fn sloth_encode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
fn sloth_decode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
impl<D: Digester> Hasher for DigestHasher<D>
[src]
type Domain = DigestDomain
type Function = DigestFunction<D>
fn name() -> String
[src]
fn kdf(data: &[u8], m: usize) -> Self::Domain
[src]
fn sloth_encode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
fn sloth_decode(
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain
[src]
key: &Self::Domain,
ciphertext: &Self::Domain,
rounds: usize
) -> Self::Domain