Skip to main content

ReceiptHasher

Trait ReceiptHasher 

Source
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§

Source

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".

Implementors§

Source§

impl<F> ReceiptHasher for F
where F: Fn(&[u8]) -> ReceiptHash,