Struct filecoin_hashers::sha256::Sha256Domain [−][src]
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 AsRef<Sha256Domain> for Sha256Domain
[src]
impl AsRef<Sha256Domain> for Sha256Domain
[src]impl Clone for Sha256Domain
[src]
impl Clone for Sha256Domain
[src]fn clone(&self) -> Sha256Domain
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Sha256Domain
[src]
impl Copy for Sha256Domain
[src]impl Default for Sha256Domain
[src]
impl Default for Sha256Domain
[src]fn default() -> Sha256Domain
[src]
impl<'de> Deserialize<'de> for Sha256Domain
[src]
impl<'de> Deserialize<'de> for Sha256Domain
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Domain for Sha256Domain
[src]
impl Domain for Sha256Domain
[src]impl Element for Sha256Domain
[src]
impl Element for Sha256Domain
[src]impl Eq for Sha256Domain
[src]
impl Eq for Sha256Domain
[src]impl From<Fr> for Sha256Domain
[src]
impl From<Fr> for Sha256Domain
[src]impl From<FrRepr> for Sha256Domain
[src]
impl From<FrRepr> for Sha256Domain
[src]impl Hash for Sha256Domain
[src]
impl Hash for Sha256Domain
[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 Ord for Sha256Domain
[src]
impl Ord for Sha256Domain
[src]impl PartialEq<Sha256Domain> for Sha256Domain
[src]
impl PartialEq<Sha256Domain> for Sha256Domain
[src]fn eq(&self, other: &Sha256Domain) -> bool
[src]
fn ne(&self, other: &Sha256Domain) -> bool
[src]
impl PartialOrd<Sha256Domain> for Sha256Domain
[src]
impl PartialOrd<Sha256Domain> for Sha256Domain
[src]fn partial_cmp(&self, other: &Sha256Domain) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Serialize for Sha256Domain
[src]
impl Serialize for Sha256Domain
[src]impl StructuralEq for Sha256Domain
[src]
impl StructuralEq for Sha256Domain
[src]impl StructuralPartialEq for Sha256Domain
[src]
impl StructuralPartialEq for Sha256Domain
[src]Auto Trait Implementations
impl RefUnwindSafe for Sha256Domain
impl RefUnwindSafe for Sha256Domain
impl Send for Sha256Domain
impl Send for Sha256Domain
impl Sync for Sha256Domain
impl Sync for Sha256Domain
impl Unpin for Sha256Domain
impl Unpin for Sha256Domain
impl UnwindSafe for Sha256Domain
impl UnwindSafe for Sha256Domain
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,