Trait ark_sponge::SpongeExt [−][src]
pub trait SpongeExt: CryptographicSponge { type State: Clone; fn from_state(state: Self::State, params: &Self::Parameters) -> Self; fn into_state(self) -> Self::State; }
Expand description
An extension for the interface of a cryptographic sponge.
In addition to operations defined in CryptographicSponge
, SpongeExt
can convert itself to
a state, and instantiate itself from state.
Associated Types
Required methods
fn from_state(state: Self::State, params: &Self::Parameters) -> Self
[src]
fn from_state(state: Self::State, params: &Self::Parameters) -> Self
[src]Returns a sponge that uses state
.
fn into_state(self) -> Self::State
[src]
fn into_state(self) -> Self::State
[src]Consumes self
and returns the state.
Implementors
type State = PoseidonSpongeState<CF>