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

Object Safety§

This trait is not object safe.

Implementors§