Trait askar_crypto::repr::KeypairMeta[][src]

pub trait KeypairMeta: KeyMeta {
    type PublicKeySize: ArrayLength<u8>;
    type KeypairSize: ArrayLength<u8>;
}
Expand description

For concrete secret + public key types

Associated Types

type PublicKeySize: ArrayLength<u8>[src]

Expand description

The size of the key public bytes

type KeypairSize: ArrayLength<u8>[src]

Expand description

The size of the secret bytes and public bytes combined

Loading content...

Implementors

impl KeypairMeta for Ed25519KeyPair[src]

This is supported on crate feature ed25519 only.

type PublicKeySize = U32

type KeypairSize = U64

impl KeypairMeta for K256KeyPair[src]

This is supported on crate feature k256 only.

type PublicKeySize = U33

type KeypairSize = U65

impl KeypairMeta for P256KeyPair[src]

This is supported on crate feature p256 only.

type PublicKeySize = U33

type KeypairSize = U65

impl KeypairMeta for X25519KeyPair[src]

This is supported on crate feature ed25519 only.

type PublicKeySize = U32

type KeypairSize = U64

impl<Pk> KeypairMeta for BlsKeyPair<Pk> where
    Pk: BlsPublicKeyType,
    U32: Add<Pk::BufferSize>,
    <U32 as Add<Pk::BufferSize>>::Output: ArrayLength<u8>, 
[src]

This is supported on crate feature bls only.

type PublicKeySize = Pk::BufferSize

type KeypairSize = Sum<Self::KeySize, Pk::BufferSize>

Loading content...