pub trait AppCrypto: 'static + Sized + 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 Public: AppPublic

The corresponding public key type in this application scheme.

type Signature: AppSignature

The corresponding signature type in this application scheme.

type Pair: AppPair

The corresponding key pair type in this application scheme.

Required Associated Constants§

const ID: KeyTypeId

Identifier for application-specific key type.

const CRYPTO_ID: CryptoTypeId

Identifier of the crypto type of this application-specific key type.

Object Safety§

This trait is not object safe.

Implementors§

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ECDSA

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPublic

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ECDSA

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ecdsa::AppSignature

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ECDSA

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ed25519::AppPair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ED25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ed25519::AppPublic

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ED25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::ed25519::AppSignature

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::ED25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::sr25519::AppPair

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::SR25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::sr25519::AppPublic

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::SR25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

§

impl AppCrypto for gclient::ext::sp_runtime::app_crypto::sr25519::AppSignature

§

type Public = Public

§

type Pair = Pair

§

type Signature = Signature

§

const ID: KeyTypeId = sp_core::testing::SR25519

§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID