Struct filecoin_hashers::sha256::Sha256Function [−][src]
pub struct Sha256Function(_);
Trait Implementations
Returns the hash value for the data stream written so far.
Returns hash value for MT leaf (prefix 0x00).
Returns hash value for MT interior node (prefix 0x01).
Returns hash value for MT interior node (prefix 0x01).
Returns the “default value” for a type. Read more
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 Sha256Function
impl Send for Sha256Function
impl Sync for Sha256Function
impl Unpin for Sha256Function
impl UnwindSafe for Sha256Function
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