Enum did_key::KeyPair[][src]

pub enum KeyPair {
    Ed25519(Ed25519KeyPair),
    X25519(X25519KeyPair),
    P256(P256KeyPair),
    Bls12381G1G2(Bls12381KeyPair),
    Secp256k1(Secp256k1KeyPair),
}

Variants

Tuple Fields of Ed25519

0: Ed25519KeyPair

Tuple Fields of X25519

0: X25519KeyPair

Tuple Fields of P256

0: P256KeyPair
Bls12381G1G2(Bls12381KeyPair)

Tuple Fields of Bls12381G1G2

0: Bls12381KeyPair
Secp256k1(Secp256k1KeyPair)

Tuple Fields of Secp256k1

0: Secp256k1KeyPair

Trait Implementations

Perform key exchange operation

Performs sign operation

Performs verify operation

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Returns the public key bytes as slice

Returns the secret key bytes as slice

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.