Trait polkadot_parachain::primitives::AccountIdConversion[][src]

pub trait AccountIdConversion<AccountId>: Sized {
    fn into_account(&self) -> AccountId;
fn try_from_account(a: &AccountId) -> Option<Self>; }
Expand description

This type can be converted into and possibly from an [AccountId] (which itself is generic).

Required methods

Convert into an account ID. This is infallible.

Try to convert an account ID into this type. Might not succeed.

Implementors

Format is b“para“ ++ encode(parachain ID) ++ 00…. where 00… is indefinite trailing zeroes to fill [AccountId].