Sponge<F extends PastaFieldElement<F> > class
Sponge construction driving a Poseidon permutation.
Constructors
-
Sponge({required F initialCapacityElement, required PoseidonSpec<
F> state}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rate → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spec
→ PoseidonSpec<
F> -
final
Methods
-
absorb(
F value) → void - Absorb an element into the sponge
-
finishAbsorbing(
) → void - Finish absorbing and transition to squeezing
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
squeeze(
) → F - Squeeze an element from the sponge
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited