Trait duniter_primitives::Idty

source ·
pub trait Idty<IdtyIndex, AccountId> {
    // Required methods
    fn owner_key(index: IdtyIndex) -> Option<AccountId>;
    fn idty_index(owner_key: AccountId) -> Option<IdtyIndex>;
}
Expand description

trait used to go from index to owner key and reverse

Required Methods§

source

fn owner_key(index: IdtyIndex) -> Option<AccountId>

source

fn idty_index(owner_key: AccountId) -> Option<IdtyIndex>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Idty<T, T> for ()

source§

fn owner_key(t: T) -> Option<T>

source§

fn idty_index(t: T) -> Option<T>

Implementors§