Trait Payload

Source
pub trait Payload {
    // Required method
    fn hash(&self) -> CryptoHash;
}
Expand description

Data that can be deterministically hashed for signing or verification.

Implementations of this trait typically represent a message formatted according to an external signing standard. The [hash] method returns the digest that should be signed or used for verification.

Required Methods§

Source

fn hash(&self) -> CryptoHash

Implementors§