referrerpolicy=no-referrer-when-downgrade
frame_system::offchain

Trait SigningTypes

Source
pub trait SigningTypes: Config {
    type Public: Clone + PartialEq + IdentifyAccount<AccountId = Self::AccountId> + Debug + Codec + Ord + TypeInfo;
    type Signature: Clone + PartialEq + Debug + Codec + TypeInfo;
}
Expand description

A wrapper around the types which are used for signing.

This trait adds extra bounds to Public and Signature types of the runtime that are necessary to use these types for signing.

Required Associated Types§

Source

type Public: Clone + PartialEq + IdentifyAccount<AccountId = Self::AccountId> + Debug + Codec + Ord + TypeInfo

A public key that is capable of identifying AccountIds.

Usually that’s either a raw crypto public key (e.g. sr25519::Public) or an aggregate type for multiple crypto public keys, like MultiSigner.

Source

type Signature: Clone + PartialEq + Debug + Codec + TypeInfo

A matching Signature type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§