pub trait TestOnlyHash {
    // Required method
    fn test_only_hash(&self) -> HashValue;
}
Expand description

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

Example

use diem_crypto::hash::TestOnlyHash;

b"hello world".test_only_hash();

Required Methods§

source

fn test_only_hash(&self) -> HashValue

Generates a hash used only for tests.

Implementors§