pub trait AuthorizeSignedAction<T: TypesAndLimits, A>: Signature + GetKey<Self::Key>where
    A: ToStateChange<T> + Action,
    A::Target: Associated<T>,
    Self::Signer: AuthorizeTarget<T, A::Target, Self::Key> + Deref,
    <Self::Signer as Deref>::Target: AuthorizeTarget<T, A::Target, Self::Key>,{
    // Provided method
    fn authorizes_signed_action(
        &self,
        action: &A,
        value: Option<&<A::Target as Associated<T>>::Value>
    ) -> Result<Option<Authorization<<Self as Signature>::Signer, <Self as Signature>::Key>>, DispatchError>
       where T: Config { ... }
}
Expand description

Signature that can authorize a signed action.

Provided Methods§

source

fn authorizes_signed_action( &self, action: &A, value: Option<&<A::Target as Associated<T>>::Value> ) -> Result<Option<Authorization<<Self as Signature>::Signer, <Self as Signature>::Key>>, DispatchError>where T: Config,

This signature allows Self::Signer to perform the supplied action.

Implementors§

source§

impl<T: TypesAndLimits, A, S> AuthorizeSignedAction<T, A> for Swhere A::Target: Associated<T>, A: ToStateChange<T> + Action, S: Signature + GetKey<S::Key>, S::Signer: AuthorizeTarget<T, A::Target, S::Key> + Deref, <S::Signer as Deref>::Target: AuthorizeTarget<T, A::Target, S::Key>,