referrerpolicy=no-referrer-when-downgrade

Trait AppCrypto

Source
pub trait AppCrypto:
    'static
    + Sized
    + CryptoType {
    type Public: AppPublic;
    type Signature: AppSignature;
    type ProofOfPossession: 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 ProofOfPossession: AppSignature

The corresponding proof of possession 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§

impl AppCrypto for sp_application_crypto::bandersnatch::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::bandersnatch::AppPublic

Source§

impl AppCrypto for sp_application_crypto::bandersnatch::AppSignature

Source§

impl AppCrypto for sp_application_crypto::bls381::AppPair

Source§

impl AppCrypto for sp_application_crypto::bls381::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::bls381::AppPublic

Source§

impl AppCrypto for sp_application_crypto::bls381::AppSignature

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppPair

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppPublic

Source§

impl AppCrypto for sp_application_crypto::ecdsa::AppSignature

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppPair

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppPublic

Source§

impl AppCrypto for sp_application_crypto::ecdsa_bls381::AppSignature

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppPair

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppPublic

Source§

impl AppCrypto for sp_application_crypto::ed25519::AppSignature

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppPair

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppProofOfPossession

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppPublic

Source§

impl AppCrypto for sp_application_crypto::sr25519::AppSignature