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 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.

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.

Implementors§

source§

impl AppKey for sp_application_crypto::ecdsa::AppPair

§

type UntypedGeneric = Pair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

source§

const ID: KeyTypeId = ECDSA

source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

source§

impl AppKey for sp_application_crypto::ecdsa::AppPublic

source§

impl AppKey for sp_application_crypto::ecdsa::AppSignature

source§

impl AppKey for sp_application_crypto::ed25519::AppPair

§

type UntypedGeneric = Pair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

source§

const ID: KeyTypeId = ED25519

source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

source§

impl AppKey for sp_application_crypto::ed25519::AppPublic

§

type UntypedGeneric = Public

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

source§

const ID: KeyTypeId = ED25519

source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

source§

impl AppKey for sp_application_crypto::ed25519::AppSignature

source§

impl AppKey for sp_application_crypto::sr25519::AppPair

§

type UntypedGeneric = Pair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

source§

const ID: KeyTypeId = SR25519

source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

source§

impl AppKey for sp_application_crypto::sr25519::AppPublic

§

type UntypedGeneric = Public

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

source§

const ID: KeyTypeId = SR25519

source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

source§

impl AppKey for sp_application_crypto::sr25519::AppSignature