common_primitives::msa

Trait MsaValidator

Source
pub trait MsaValidator {
    type AccountId;

    // Required method
    fn ensure_valid_msa_key(
        key: &Self::AccountId,
    ) -> Result<MessageSourceId, DispatchError>;
}
Expand description

A behavior that allows for validating an MSA

Required Associated Types§

Source

type AccountId

The association between key and MSA

Required Methods§

Source

fn ensure_valid_msa_key( key: &Self::AccountId, ) -> Result<MessageSourceId, DispatchError>

Check that a key is associated to an MSA and returns key information. Returns a DispatchError if there is no MSA associated with the key

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§