Trait gclient::ext::sp_runtime::traits::Checkable
pub trait Checkable<Context>: Sized {
type Checked;
// Required method
fn check(
self,
c: &Context,
) -> Result<Self::Checked, TransactionValidityError>;
}
Expand description
Extract the digest type for a block.
A “checkable” piece of information, used by the standard Substrate Executive in order to
check the validity of a piece of extrinsic information, usually by verifying the signature.
Implement for pieces of information that require some additional context Context
in order to
be checked.
Required Associated Types§
type Checked
type Checked
Returned if check
succeeds.
Required Methods§
fn check(self, c: &Context) -> Result<Self::Checked, TransactionValidityError>
fn check(self, c: &Context) -> Result<Self::Checked, TransactionValidityError>
Check self, given an instance of Context.
Object Safety§
This trait is not object safe.