Struct filecoin_hashers::blake2s::Blake2sFunction [−][src]
pub struct Blake2sFunction(_);
Trait Implementations
Returns the hash value for the data stream written so far.
Returns hash value for MT leaf (prefix 0x00).
fn node(
&mut self,
left: Blake2sDomain,
right: Blake2sDomain,
_height: usize
) -> Blake2sDomain
[src]
fn node(
&mut self,
left: Blake2sDomain,
right: Blake2sDomain,
_height: usize
) -> Blake2sDomain
[src]Returns hash value for MT interior node (prefix 0x01).
Returns hash value for MT interior node (prefix 0x01).
fn hash_multi_leaf_circuit<Arity, CS: ConstraintSystem<Bls12>>(
cs: CS,
leaves: &[AllocatedNum<Bls12>],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash_leaf_bits_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
bits: &[Boolean]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash2_circuit<CS>(
cs: CS,
a_num: &AllocatedNum<Bls12>,
b_num: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
[src]fn hash_leaf_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
left: &AllocatedNum<Bls12>,
right: &AllocatedNum<Bls12>,
height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash_md_circuit<CS: ConstraintSystem<Bls12>>(
_cs: &mut CS,
_elements: &[AllocatedNum<Bls12>]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]Writes a single u128
into this hasher.
Writes a single usize
into this hasher.
Writes a single i128
into this hasher.
Writes a single isize
into this hasher.
Auto Trait Implementations
impl RefUnwindSafe for Blake2sFunction
impl Send for Blake2sFunction
impl Sync for Blake2sFunction
impl Unpin for Blake2sFunction
impl UnwindSafe for Blake2sFunction
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V