[][src]Trait solana_libra_crypto::hash::TestOnlyHash

pub trait TestOnlyHash {
    fn test_only_hash(&self) -> HashValue;
}

Provides a test_only_hash() method that can be used in tests on types that implement serde::Serialize.

Example

use solana_libra_crypto::hash::TestOnlyHash;

b"hello world".test_only_hash();

Required methods

fn test_only_hash(&self) -> HashValue

Generates a hash used only for tests.

Loading content...

Implementors

impl<T: Serialize + ?Sized> TestOnlyHash for T[src]

Loading content...