Struct filecoin_hashers::poseidon::PoseidonDomain [−][src]
pub struct PoseidonDomain(pub FrRepr);
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: PoseidonDomain,
right: PoseidonDomain,
_height: usize
) -> PoseidonDomain
[src]
fn node(
&mut self,
left: PoseidonDomain,
right: PoseidonDomain,
_height: usize
) -> PoseidonDomain
[src]Returns hash value for MT interior node (prefix 0x01).
Returns hash value for MT interior node (prefix 0x01).
Performs the conversion.
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
fn hash_leaf_circuit<CS: ConstraintSystem<Bls12>>(
cs: CS,
left: &AllocatedNum<Bls12>,
right: &AllocatedNum<Bls12>,
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash_multi_leaf_circuit<Arity: 'static + PoseidonArity, CS: ConstraintSystem<Bls12>>(
cs: CS,
leaves: &[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]fn hash_circuit<CS: ConstraintSystem<Bls12>>(
_cs: CS,
_bits: &[Boolean]
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]fn hash2_circuit<CS>(
cs: CS,
a: &AllocatedNum<Bls12>,
b: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
[src]fn hash_leaf_bits_circuit<CS: ConstraintSystem<Bls12>>(
_cs: CS,
_left: &[Boolean],
_right: &[Boolean],
_height: usize
) -> Result<AllocatedNum<Bls12>, SynthesisError>
[src]This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PoseidonDomain
impl Send for PoseidonDomain
impl Sync for PoseidonDomain
impl Unpin for PoseidonDomain
impl UnwindSafe for PoseidonDomain
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