Skip to main content

Hashable

Trait Hashable 

Source
pub trait Hashable {
    // Required method
    fn hash(&self) -> [u8; 32];
}
Expand description

Trait indicating that an object can be hased with respect to the CT protocol

This for now always refers to the Sha256 algorithm, but this might change in the future

Required Methods§

Source

fn hash(&self) -> [u8; 32]

Hash the object

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§