Trait ethereum_hashing::Sha256
source · pub trait Sha256 {
type Context: Sha256Context;
fn hash(&self, input: &[u8]) -> Vec<u8> ⓘ;
fn hash_fixed(&self, input: &[u8]) -> [u8; 32];
}
Expand description
Top-level trait implemented by both sha2
and ring
implementations.