Trait massa_models::secure_share::Id

source ·
pub trait Id {
    // Required methods
    fn new(hash: Hash) -> Self;
    fn get_hash(&self) -> &Hash;
}
Expand description

Used by signed structure TODO: Make this trait use versions

Required Methods§

source

fn new(hash: Hash) -> Self

New id from hash

source

fn get_hash(&self) -> &Hash

Get a reference to the underlying hash

Object Safety§

This trait is not object safe.

Implementors§