Skip to main content

HasKeyBackend

Trait HasKeyBackend 

Source
pub trait HasKeyBackend: Debug {
    // Provided method
    fn key_backend(&self) -> KeyBackend { ... }
}
Expand description

A trait for accessing the backend of a key, used when converting to generic AnyKey instances.

Provided Methods§

Source

fn key_backend(&self) -> KeyBackend

Get the corresponding key backend.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HasKeyBackend for Ed25519KeyPair

Available on crate feature ed25519 only.
Source§

impl HasKeyBackend for K256KeyPair

Available on crate feature k256 only.
Source§

impl HasKeyBackend for P256KeyPair

Available on crate features p256_hardware or p256 only.
Source§

impl HasKeyBackend for P384KeyPair

Available on crate feature p384 only.
Source§

impl HasKeyBackend for X25519KeyPair

Available on crate feature ed25519 only.
Source§

impl<Pk: BlsPublicKeyType> HasKeyBackend for BlsKeyPair<Pk>

Available on crate feature bls only.
Source§

impl<T: AesType> HasKeyBackend for AesKey<T>

Available on crate feature aes only.
Source§

impl<T: Chacha20Type> HasKeyBackend for Chacha20Key<T>

Available on crate feature chacha only.