Crate didcomm_rs[−][src]
Modules
Structs
Attachment holding structure
Builder of attachment metadata and payload.
Used to construct and inject Attachment into Message
Attachment Data holding structure
Builder for AttachmentData
JWE representation of Message
with public header.
Can be serialized to JSON or Compact representations and from same.
JWM Header as specifiead in RFC With single deviation - allows raw text JWM to support DIDComm spec
“Temporary” struct to extend did_key crate’s Document
with KeyAgreement
instead of string.
DIDComm message structure. Specification
This struct presents single recepient of JWE recepients
collection.
Each recepient should have same body cypher key ecrypted with shared secret.
Spec
Enums
Enum that represents DIDComm message payload type
alg
field values provided by RFC
Enum that represents DIDComm envelope type
Traits
Universal trait for DID document parser methods.
Universal trait for DID document resolver.
Functions
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.
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
.