[−][src]Trait frame_system::offchain::SignMessage
A message signer.
Associated Types
type SignatureData
A signature data.
May contain account used for signing and the Signature
itself.
Required methods
fn sign_message(&self, message: &[u8]) -> Self::SignatureData
Sign a message.
Implementation of this method should return a result containing the signature.
fn sign<TPayload, F>(&self, f: F) -> Self::SignatureData where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
Construct and sign given payload.
This method expects f
to return a SignedPayload
object which is then used for signing.
Implementors
impl<T: SigningTypes, C: AppCrypto<T::Public, T::Signature>> SignMessage<T> for Signer<T, C, ForAll>
[src]
type SignatureData = Vec<(Account<T>, T::Signature)>
fn sign_message(&self, message: &[u8]) -> Self::SignatureData
[src]
fn sign<TPayload, F>(&self, f: F) -> Self::SignatureData where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
[src]
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
impl<T: SigningTypes, C: AppCrypto<T::Public, T::Signature>> SignMessage<T> for Signer<T, C, ForAny>
[src]
type SignatureData = Option<(Account<T>, T::Signature)>
fn sign_message(&self, message: &[u8]) -> Self::SignatureData
[src]
fn sign<TPayload, F>(&self, f: F) -> Self::SignatureData where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
[src]
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,