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

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

Implementors§

source§

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