Skip to main content

AccountIdInterface

Trait AccountIdInterface 

Source
pub trait AccountIdInterface
where Self: Sized,
{ type W: WitnessGenerator<Fp>; // Required method fn derive_token_id(account_id: &AccountId, w: &mut Self::W) -> TokenId; }

Required Associated Types§

Required Methods§

Source

fn derive_token_id(account_id: &AccountId, w: &mut Self::W) -> TokenId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl AccountIdInterface for AccountId

Source§

type W = ()

Source§

impl AccountIdInterface for SnarkAccountId

Source§

type W = Witness<Fp<MontBackend<FqConfig, 4>, 4>>