Trait gclient::ext::sp_runtime::app_crypto::AppCrypto
pub trait AppCrypto:
Sized
+ 'static
+ CryptoType {
type Public: AppPublic;
type Signature: AppSignature;
type Pair: AppPair;
const ID: KeyTypeId;
const CRYPTO_ID: CryptoTypeId;
}
Expand description
Application-specific cryptographic object.
Combines all the core types and constants that are defined by a particular cryptographic scheme when it is used in a specific application domain.
Typically, the implementers of this trait are its associated types themselves. This provides a convenient way to access generic information about the scheme given any of the associated types.
Required Associated Types§
type Signature: AppSignature
type Signature: AppSignature
The corresponding signature type in this application scheme.
Required Associated Constants§
const CRYPTO_ID: CryptoTypeId
const CRYPTO_ID: CryptoTypeId
Identifier of the crypto type of this application-specific key type.
Object Safety§
This trait is not object safe.