Crate ddoresolver_rs[][src]

Modules

error

Structs

AsymmetricKey
DidKeyResolver

Unit struct which have implementations of DdoParser and DdoResolver traits for did:key document resolver.

Document
JWK
KeyAgreement

“Temporary” struct to extend did_key crate’s Document with KeyAgreement instead of string.

VerificationMethod

Enums

Error
KeyFormat
KeyPair
Payload

Constants

CONFIG_JOSE_PRIVATE
CONFIG_JOSE_PUBLIC
CONFIG_LD_PRIVATE
CONFIG_LD_PUBLIC

Traits

DIDCore
DdoParser

Universal trait for DID document parser methods.

DdoResolver

Universal trait for DID document resolver.

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

get_sign_and_crypto_keys
resolve

Resolve a did:key from a URI

resolve_any

Helper function to try resolve any document based on provided did_url instead of calling DdoResolver::resolve() directly. This function provides convenience but is dependant on resolver features enabled and will have overhead comparing to direct trait call of specific resolver, therefore should be used with consideration. Output is Option: Some(Document) or None. Will never fail with error.

try_resolve_any

Helper function to try resolve any document based on provided did_url instead of calling DdoResolver::resolve() directly. This function provides convenience but is dependant on resolver features enabled and will have overhead comparing to direct trait call of specific resolver, therefore should be used with consideration. Output is Document or Error.

Type Definitions

Bls12381KeyPair
DIDKey
Ed25519KeyPair
P256KeyPair
Secp256k1KeyPair
X25519KeyPair