Trait dock_core::common::authorization::AuthorizeSignedAction
source · 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§
This signature allows Self::Signer
to perform the supplied action.