pub trait ReceiptHasher {
// Required method
fn hash(&self, bytes: &[u8]) -> ReceiptHash;
}Expand description
Caller-owned raw byte hasher for runtime receipt input/output hashes.
Required Methods§
Sourcefn hash(&self, bytes: &[u8]) -> ReceiptHash
fn hash(&self, bytes: &[u8]) -> ReceiptHash
Return a stable hash for already-encoded operation bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".