Struct filecoin_hashers::poseidon::PoseidonFunction [−][src]
pub struct PoseidonFunction(_);
Trait Implementations
impl Algorithm<PoseidonDomain> for PoseidonFunction
[src]
impl Algorithm<PoseidonDomain> for PoseidonFunction
[src]fn hash(&mut self) -> PoseidonDomain
[src]
fn reset(&mut self)
[src]
fn leaf(&mut self, leaf: PoseidonDomain) -> PoseidonDomain
[src]
fn node(
&mut self,
left: PoseidonDomain,
right: PoseidonDomain,
_height: usize
) -> PoseidonDomain
[src]
&mut self,
left: PoseidonDomain,
right: PoseidonDomain,
_height: usize
) -> PoseidonDomain
fn multi_node(
&mut self,
parts: &[PoseidonDomain],
_height: usize
) -> PoseidonDomain
[src]
&mut self,
parts: &[PoseidonDomain],
_height: usize
) -> PoseidonDomain
impl Clone for PoseidonFunction
[src]
impl Clone for PoseidonFunction
[src]fn clone(&self) -> PoseidonFunction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PoseidonFunction
[src]
impl Copy for PoseidonFunction
[src]impl Default for PoseidonFunction
[src]
impl Default for PoseidonFunction
[src]fn default() -> PoseidonFunction
[src]
impl Eq for PoseidonFunction
[src]
impl Eq for PoseidonFunction
[src]impl HashFunction<PoseidonDomain> for PoseidonFunction
[src]
impl HashFunction<PoseidonDomain> for PoseidonFunction
[src]fn hash(data: &[u8]) -> PoseidonDomain
[src]
fn hash2(a: &PoseidonDomain, b: &PoseidonDomain) -> PoseidonDomain
[src]
fn hash_md(input: &[PoseidonDomain]) -> PoseidonDomain
[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_multi_leaf_circuit<Arity: 'static + PoseidonArity, 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_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>
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: &AllocatedNum<Bls12>,
b: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
[src]
cs: CS,
a: &AllocatedNum<Bls12>,
b: &AllocatedNum<Bls12>
) -> Result<AllocatedNum<Bls12>, SynthesisError> where
CS: ConstraintSystem<Bls12>,
fn hash_leaf(data: &dyn LightHashable<Self>) -> T
[src]
fn hash_single_node(data: &dyn LightHashable<Self>) -> T
[src]
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>
impl Hashable<PoseidonFunction> for PoseidonDomain
[src]
impl Hashable<PoseidonFunction> for PoseidonDomain
[src]fn hash(&self, state: &mut PoseidonFunction)
[src]
pub fn hash_slice(data: &[Self], state: &mut H)
[src]
impl Hasher for PoseidonFunction
[src]
impl Hasher for PoseidonFunction
[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]
impl PartialEq<PoseidonFunction> for PoseidonFunction
[src]
impl PartialEq<PoseidonFunction> for PoseidonFunction
[src]fn eq(&self, other: &PoseidonFunction) -> bool
[src]
fn ne(&self, other: &PoseidonFunction) -> bool
[src]
impl StructuralEq for PoseidonFunction
[src]
impl StructuralEq for PoseidonFunction
[src]impl StructuralPartialEq for PoseidonFunction
[src]
impl StructuralPartialEq for PoseidonFunction
[src]Auto Trait Implementations
impl RefUnwindSafe for PoseidonFunction
impl RefUnwindSafe for PoseidonFunction
impl Send for PoseidonFunction
impl Send for PoseidonFunction
impl Sync for PoseidonFunction
impl Sync for PoseidonFunction
impl Unpin for PoseidonFunction
impl Unpin for PoseidonFunction
impl UnwindSafe for PoseidonFunction
impl UnwindSafe for PoseidonFunction