Trait frame_system::offchain::SignMessage[][src]

pub trait SignMessage<T: SigningTypes> {
    type SignatureData;
    fn sign_message(&self, message: &[u8]) -> Self::SignatureData;
fn sign<TPayload, F>(&self, f: F) -> Self::SignatureData
    where
        F: Fn(&Account<T>) -> TPayload,
        TPayload: SignedPayload<T>
; }
Expand description

A message signer.

Associated Types

A signature data.

May contain account used for signing and the Signature itself.

Required methods

Sign a message.

Implementation of this method should return a result containing the signature.

Construct and sign given payload.

This method expects f to return a SignedPayload object which is then used for signing.

Implementors