[−][src]Trait storage_proofs::hasher::HashFunction
Required methods
fn hash(data: &[u8]) -> T
fn hash_leaf_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
Provided methods
fn hash_leaf(data: &dyn LightHashable<Self>) -> T
fn hash_single_node(data: &dyn LightHashable<Self>) -> T
Implementors
impl HashFunction<Blake2sDomain> for Blake2sFunction
[src]
fn hash(data: &[u8]) -> Blake2sDomain
[src]
fn hash_leaf_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
bits: &[Boolean],
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
bits: &[Boolean],
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
impl HashFunction<PedersenDomain> for PedersenFunction
[src]
fn hash(data: &[u8]) -> PedersenDomain
[src]
fn hash_leaf_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
impl<D: Digester> HashFunction<DigestDomain> for DigestFunction<D>
[src]
fn hash(data: &[u8]) -> DigestDomain
[src]
fn hash_leaf_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
_cs: CS,
_left: &[Boolean],
_right: &[Boolean],
_height: usize,
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
_cs: CS,
_left: &[Boolean],
_right: &[Boolean],
_height: usize,
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
_cs: CS,
_bits: &[Boolean],
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
_cs: CS,
_bits: &[Boolean],
_params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>