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

Implementors§