[][src]Trait libipld_base::hash::Hash

pub trait Hash {
    const CODE: Code;

    fn digest(bytes: &[u8]) -> Multihash;
}

Trait for hash type markers.

Associated Constants

const CODE: Code

The multihash code.

Loading content...

Required methods

fn digest(bytes: &[u8]) -> Multihash

Computes the multihash of a byte slice.

Loading content...

Implementors

impl Hash for Blake2b256[src]

impl Hash for Blake2b512[src]

impl Hash for Blake2s128[src]

impl Hash for Blake2s256[src]

impl Hash for Identity[src]

impl Hash for Keccak224[src]

impl Hash for Keccak256[src]

impl Hash for Keccak384[src]

impl Hash for Keccak512[src]

impl Hash for Sha1[src]

impl Hash for Sha2_256[src]

impl Hash for Sha2_512[src]

impl Hash for Sha3_224[src]

impl Hash for Sha3_256[src]

impl Hash for Sha3_384[src]

impl Hash for Sha3_512[src]

Loading content...