Trait common_primitives::msa::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§
Required Methods§
sourcefn ensure_valid_msa_key(
key: &Self::AccountId
) -> Result<MessageSourceId, DispatchError>
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.