Trait mina_poseidon::poseidon::Sponge
source · pub trait Sponge<Input: Field, Digest> {
// Required methods
fn new(params: &'static ArithmeticSpongeParams<Input>) -> Self;
fn absorb(&mut self, x: &[Input]);
fn squeeze(&mut self) -> Digest;
fn reset(&mut self);
}
Expand description
Cryptographic sponge interface - for hashing an arbitrary amount of data into one or more field elements
Required Methods§
sourcefn new(params: &'static ArithmeticSpongeParams<Input>) -> Self
fn new(params: &'static ArithmeticSpongeParams<Input>) -> Self
Create a new cryptographic sponge using arithmetic sponge params