Trait exonum::crypto::CryptoHash [] [src]

pub trait CryptoHash {
    fn hash(&self) -> Hash;
}

A common trait for the ability to compute a cryptographic hash.

Required Methods

Returns a hash of the value.

The hashing strategy must satisfy the basic requirements of cryptographic hashing: equal values must have the same hash and not equal values must have different hashes (except for negligible probability).

Implementations on Foreign Types

impl CryptoHash for bool
[src]

[src]

impl CryptoHash for u8
[src]

[src]

impl CryptoHash for u16
[src]

[src]

impl CryptoHash for u32
[src]

[src]

impl CryptoHash for u64
[src]

[src]

impl CryptoHash for i8
[src]

[src]

impl CryptoHash for i16
[src]

[src]

impl CryptoHash for i32
[src]

[src]

impl CryptoHash for i64
[src]

[src]

impl CryptoHash for ()
[src]

[src]

impl CryptoHash for Vec<u8>
[src]

[src]

impl CryptoHash for String
[src]

[src]

impl CryptoHash for SystemTime
[src]

[src]

Implementors