absorb method
void
absorb(
- F value
Absorb an element into the sponge
Implementation
void absorb(F value) {
final mode = _mode;
if (mode is! Absorbing<F>) {
throw const PoseidonException(
"Invalid State: this operation is not permitted in the current mode",
);
}
try {
mode.absorb(value);
return;
} on PoseidonException catch (_) {}
PoseidonUtils.poseidonSponge(_state, mode, spec);
_mode = Absorbing.initWith(value, rate);
}