pub trait Signable {
    type Hash: AsRef<[u8]>;

    fn hash(&self) -> Self::Hash;
}
Expand description

Data which can be signed.

Signable data should provide a hash of type Self::Hash which is build from all parts of the data which should be signed. The type Self::Hash should implement [AsRef<[u8]>], and the bytes returned by hash.as_ref() are used by a MultiKeychain to sign the data.

Required Associated Types

Required Methods

Return a hash for signing.

Implementors