darkfi_sdk::crypto::smt

Type Alias PoseidonFp

Source
pub type PoseidonFp = Poseidon<Base, 2>;

Aliased Type§

struct PoseidonFp(PhantomData<Fp>);

Fields§

§0: PhantomData<Fp>

Implementations

Source§

impl<F: WithSmallOrderMulGroup<3> + Ord, const L: usize> Poseidon<F, L>

Source

pub fn new() -> Self

Trait Implementations

Source§

impl<F: Clone + WithSmallOrderMulGroup<3> + Ord, const L: usize> Clone for Poseidon<F, L>

Source§

fn clone(&self) -> Poseidon<F, L>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<F: Debug + WithSmallOrderMulGroup<3> + Ord, const L: usize> Debug for Poseidon<F, L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F: WithSmallOrderMulGroup<3> + Ord, const L: usize> Default for Poseidon<F, L>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<F: WithSmallOrderMulGroup<3> + Ord, const L: usize> FieldHasher<F, L> for Poseidon<F, L>
where P128Pow5T3: Spec<F, 3, 2>,

Source§

fn hash(&self, inputs: [F; L]) -> F

Source§

fn hasher() -> Self