referrerpolicy=no-referrer-when-downgrade
sp_application_crypto

Trait AppCrypto

Source
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 Constants§

Source

const ID: KeyTypeId

Identifier for application-specific key type.

Source

const CRYPTO_ID: CryptoTypeId

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

Required Associated Types§

Source

type Public: AppPublic

The corresponding public key type in this application scheme.

Source

type Signature: AppSignature

The corresponding signature type in this application scheme.

Source

type Pair: AppPair

The corresponding key pair 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 AppCrypto for sp_application_crypto::bandersnatch::AppPair

Source§

const ID: KeyTypeId = sp_core::testing::BANDERSNATCH

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::bandersnatch::AppPublic

Source§

const ID: KeyTypeId = sp_core::testing::BANDERSNATCH

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::bandersnatch::AppSignature

Source§

const ID: KeyTypeId = sp_core::testing::BANDERSNATCH

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::bls381::AppPair

Source§

const ID: KeyTypeId = sp_core::testing::BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::bls381::AppPublic

Source§

const ID: KeyTypeId = sp_core::testing::BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::bls381::AppSignature

Source§

const ID: KeyTypeId = sp_core::testing::BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppPair

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppPublic

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppSignature

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppPair

Source§

const ID: KeyTypeId = sp_core::testing::ECDSA_BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppPublic

Source§

const ID: KeyTypeId = sp_core::testing::ECDSA_BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppSignature

Source§

const ID: KeyTypeId = sp_core::testing::ECDSA_BLS381

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppPair

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppPublic

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppSignature

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppPair

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppPublic

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppSignature

Source§

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

Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Source§

type Public = Public

Source§

type Pair = Pair

Source§

type Signature = Signature