common_primitives::msa

Trait MsaKeyProvider

Source
pub trait MsaKeyProvider {
    type AccountId;

    // Required method
    fn key_eligible_for_subsidized_addition(
        old_key: Self::AccountId,
        new_key: Self::AccountId,
        msa_id: MessageSourceId,
    ) -> bool;
}
Expand description

A trait that allows checking whether adding a key may be subsidized

Required Associated Types§

Source

type AccountId

the type to use for looking up keys in storage.

Required Methods§

Source

fn key_eligible_for_subsidized_addition( old_key: Self::AccountId, new_key: Self::AccountId, msa_id: MessageSourceId, ) -> bool

Returns whether adding new_key to msa_id may be subsidized

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§