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
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.