Struct filecoin_hashers::blake2s::Blake2sFunction [−][src]
pub struct Blake2sFunction(_);
Trait Implementations
impl Algorithm<Blake2sDomain> for Blake2sFunction
[src]
impl Algorithm<Blake2sDomain> for Blake2sFunction
[src]fn hash(&mut self) -> Blake2sDomain
[src]
fn hash(&mut self) -> Blake2sDomain
[src]Returns the hash value for the data stream written so far.
fn leaf(&mut self, leaf: Blake2sDomain) -> Blake2sDomain
[src]
fn leaf(&mut self, leaf: Blake2sDomain) -> Blake2sDomain
[src]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).
fn multi_node(
&mut self,
parts: &[Blake2sDomain],
_height: usize
) -> Blake2sDomain
[src]
fn multi_node(
&mut self,
parts: &[Blake2sDomain],
_height: usize
) -> Blake2sDomain
[src]Returns hash value for MT interior node (prefix 0x01).
impl Clone for Blake2sFunction
[src]
impl Clone for Blake2sFunction
[src]fn clone(&self) -> Blake2sFunction
[src]
fn clone(&self) -> Blake2sFunction
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Blake2sFunction
[src]
impl Debug for Blake2sFunction
[src]impl Default for Blake2sFunction
[src]
impl Default for Blake2sFunction
[src]impl HashFunction<Blake2sDomain> for Blake2sFunction
[src]
impl HashFunction<Blake2sDomain> for Blake2sFunction
[src]fn hash(data: &[u8]) -> Blake2sDomain
[src]
fn hash2(a: &Blake2sDomain, b: &Blake2sDomain) -> Blake2sDomain
[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<Blake2sFunction> for Blake2sDomain
[src]
impl Hashable<Blake2sFunction> for Blake2sDomain
[src]impl Hasher for Blake2sFunction
[src]
impl Hasher for Blake2sFunction
[src]fn write_u128(&mut self, i: u128)
1.26.0[src]
fn write_u128(&mut self, i: u128)
1.26.0[src]Writes a single u128
into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0[src]
fn write_usize(&mut self, i: usize)
1.3.0[src]Writes a single usize
into this hasher.
fn write_i128(&mut self, i: i128)
1.26.0[src]
fn write_i128(&mut self, i: i128)
1.26.0[src]Writes a single i128
into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0[src]
fn write_isize(&mut self, i: isize)
1.3.0[src]Writes a single isize
into this hasher.
impl PartialEq<Blake2sFunction> for Blake2sFunction
[src]
impl PartialEq<Blake2sFunction> for Blake2sFunction
[src]impl Eq for Blake2sFunction
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,