AppKey

Trait AppKey 

Source
pub trait AppKey:
    'static
    + Send
    + Sync
    + Sized
    + CryptoType
    + Clone {
    type UntypedGeneric: IsWrappedBy<Self>;
    type Public: AppPublic;
    type Pair: AppPair;
    type Signature: AppSignature;

    const ID: KeyTypeId;
    const CRYPTO_ID: CryptoTypeId;
}
Expand description

An application-specific key.

Required Associated Constants§

Source

const ID: KeyTypeId

An identifier for this application-specific key type.

Source

const CRYPTO_ID: CryptoTypeId

The identifier of the crypto type of this application-specific key type.

Required Associated Types§

Source

type UntypedGeneric: IsWrappedBy<Self>

The corresponding type as a generic crypto type.

Source

type Public: AppPublic

The corresponding public key type in this application scheme.

Source

type Pair: AppPair

The corresponding key pair type in this application scheme.

Source

type Signature: AppSignature

The corresponding signature type in this application scheme.

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§

Source§

impl AppKey for tet_application_crypto::ecdsa::AppPair

Source§

impl AppKey for tet_application_crypto::ecdsa::AppPublic

Source§

impl AppKey for tet_application_crypto::ecdsa::AppSignature

Source§

impl AppKey for tet_application_crypto::ed25519::AppPair

Source§

impl AppKey for tet_application_crypto::ed25519::AppPublic

Source§

impl AppKey for tet_application_crypto::ed25519::AppSignature

Source§

impl AppKey for tet_application_crypto::sr25519::AppPair

Source§

impl AppKey for tet_application_crypto::sr25519::AppPublic

Source§

impl AppKey for tet_application_crypto::sr25519::AppSignature