pub trait CompressionFunction<T, const N: usize>: Clone {
// Required method
fn compress(&self, input: [T; N]) -> T;
}Expand description
An N-to-1 compression function used to build the inner nodes of a hash tree.
It folds N values into a single value of the same type, so it can be applied level by level:
the children of an inner node are compressed to produce that node.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.