Trait bitcoin_hashes::HashEngine
source · pub trait HashEngine: Clone + Write {
type MidState;
fn midstate(&self) -> Self::MidState;
fn input(&mut self, data: &[u8]) { ... }
}
Expand description
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write
trait, but to never return errors under
any conditions.