[][src]Trait rcmerkle::Hash

pub trait Hash: Default + Clone + Eq + PartialEq {
    fn hash(data: &[u8]) -> Self;
fn to_string(hash: &Self) -> String; }

trait to define different hash function

Required methods

fn hash(data: &[u8]) -> Self

fn to_string(hash: &Self) -> String

Loading content...

Implementors

impl Hash for Keccak256[src]

impl Hash for SHA256[src]

Loading content...