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§
Sourcetype Public: Clone + PartialEq + IdentifyAccount<AccountId = Self::AccountId> + Debug + Codec + Ord + TypeInfo
type Public: Clone + PartialEq + IdentifyAccount<AccountId = Self::AccountId> + Debug + Codec + Ord + TypeInfo
A public key that is capable of identifying AccountId
s.
Usually that’s either a raw crypto public key (e.g. sr25519::Public
) or
an aggregate type for multiple crypto public keys, like MultiSigner
.
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.