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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.