[−][src]Trait iota_crypto::Sponge
The sponge trait specifys the main functionality of all sponges used throughout IOTA
Required methods
fn absorb(&mut self, trits: &[i8]) -> Result<(), Error>
Absorb trits into the sponge
trits
- A slice of trits whose length is a multiple of 243
fn squeeze(&mut self, out: &mut [i8]) -> Result<(), Error>
Squeeze trits out of the sponge and copy them into out
out
- A slice of trits whose length is a multiple of 243
fn reset(&mut self)
Reset the sponge to initial state