Trait frame_system::offchain::SignedPayload
source · pub trait SignedPayload<T: SigningTypes>: Encode {
fn public(&self) -> T::Public;
fn sign<C: AppCrypto<T::Public, T::Signature>>(
&self
) -> Option<T::Signature> { ... }
fn verify<C: AppCrypto<T::Public, T::Signature>>(
&self,
signature: T::Signature
) -> bool { ... }
}
Expand description
Utility trait to be implemented on payloads that can be signed.