Crate did_key[][src]

Structs

AsymmetricKey
Document
JWK
VerificationMethod

Enums

Error
KeyFormat
KeyPair
Payload

Constants

CONFIG_JOSE_PRIVATE
CONFIG_JOSE_PUBLIC
CONFIG_LD_PRIVATE
CONFIG_LD_PUBLIC

Traits

DIDCore
Ecdh

Used for Elliptic-curve Diffie–Hellman key exchange operations

Ecdsa

Used for Elliptic Curve Digital Signature Algorithm

Fingerprint
Generate

Collection of methods to initialize a key pair using random or deterministic manner

KeyMaterial

Return key material bytes

Functions

from_existing_key

Generate key pair from existing key material

generate

Generate new did:key of the specified type

resolve

Resolve a did:key from a URI

Type Definitions

Bls12381KeyPair
DIDKey
Ed25519KeyPair
P256KeyPair
Secp256k1KeyPair
X25519KeyPair