Struct filecoin_hashers::sha256::Sha256Function [−][src]
pub struct Sha256Function(_);
Trait Implementations
impl Algorithm<Sha256Domain> for Sha256Function
[src]
impl Algorithm<Sha256Domain> for Sha256Function
[src]fn hash(&mut self) -> Sha256Domain
[src]
fn reset(&mut self)
[src]
fn leaf(&mut self, leaf: Sha256Domain) -> Sha256Domain
[src]
fn node(
&mut self,
left: Sha256Domain,
right: Sha256Domain,
_height: usize
) -> Sha256Domain
[src]
&mut self,
left: Sha256Domain,
right: Sha256Domain,
_height: usize
) -> Sha256Domain
fn multi_node(&mut self, parts: &[Sha256Domain], _height: usize) -> Sha256Domain
[src]
impl Clone for Sha256Function
[src]
impl Clone for Sha256Function
[src]fn clone(&self) -> Sha256Function
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Sha256Function
[src]
impl Default for Sha256Function
[src]fn default() -> Sha256Function
[src]
impl HashFunction<Sha256Domain> for Sha256Function
[src]
impl HashFunction<Sha256Domain> for Sha256Function
[src]fn hash(data: &[u8]) -> Sha256Domain
[src]
fn hash2(a: &Sha256Domain, b: &Sha256Domain) -> Sha256Domain
[src]
fn hash_multi_leaf_circuit<Arity, CS: ConstraintSystem<Bls12>>(
cs: CS,
leaves: &[AllocatedNum<Bls12>],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]
cs: CS,
leaves: &[AllocatedNum<Bls12>],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
fn hash_leaf_bits_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]
cs: CS,
left: &[Boolean],
right: &[Boolean],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
fn hash_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
bits: &[Boolean]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]
cs: CS,
bits: &[Boolean]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
fn hash2_circuit<CS>(
cs: CS,
a_num: &AllocatedNum<Bls12>,
b_num: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
[src]
cs: CS,
a_num: &AllocatedNum<Bls12>,
b_num: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
fn hash_md(input: &[T]) -> T
[src]
fn hash_leaf(data: &dyn LightHashable<Self>) -> T
[src]
fn hash_single_node(data: &dyn LightHashable<Self>) -> T
[src]
fn hash_leaf_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
left: &AllocatedNum<Bls12>,
right: &AllocatedNum<Bls12>,
height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]
cs: CS,
left: &AllocatedNum<Bls12>,
right: &AllocatedNum<Bls12>,
height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
fn hash_md_circuit<CS: ConstraintSystem<Bls12>>(
_cs: &mut CS,
_elements: &[AllocatedNum<Bls12>]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]
_cs: &mut CS,
_elements: &[AllocatedNum<Bls12>]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
impl Hashable<Sha256Function> for Sha256Domain
[src]
impl Hashable<Sha256Function> for Sha256Domain
[src]fn hash(&self, state: &mut Sha256Function)
[src]
pub fn hash_slice(data: &[Self], state: &mut H)
[src]
impl Hasher for Sha256Function
[src]
impl Hasher for Sha256Function
[src]fn write(&mut self, msg: &[u8])
[src]
fn finish(&self) -> u64
[src]
pub fn write_u8(&mut self, i: u8)
1.3.0[src]
pub fn write_u16(&mut self, i: u16)
1.3.0[src]
pub fn write_u32(&mut self, i: u32)
1.3.0[src]
pub fn write_u64(&mut self, i: u64)
1.3.0[src]
pub fn write_u128(&mut self, i: u128)
1.26.0[src]
pub fn write_usize(&mut self, i: usize)
1.3.0[src]
pub fn write_i8(&mut self, i: i8)
1.3.0[src]
pub fn write_i16(&mut self, i: i16)
1.3.0[src]
pub fn write_i32(&mut self, i: i32)
1.3.0[src]
pub fn write_i64(&mut self, i: i64)
1.3.0[src]
pub fn write_i128(&mut self, i: i128)
1.26.0[src]
pub fn write_isize(&mut self, i: isize)
1.3.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Sha256Function
impl RefUnwindSafe for Sha256Function
impl Send for Sha256Function
impl Send for Sha256Function
impl Sync for Sha256Function
impl Sync for Sha256Function
impl Unpin for Sha256Function
impl Unpin for Sha256Function
impl UnwindSafe for Sha256Function
impl UnwindSafe for Sha256Function