Skip to main content

Module did

Module did 

Source
Expand description

Decentralized identifier messaging helpers for Typesec.

This module treats DIDs as identity, key-discovery, and routing handles. Runtime authorization still flows through typesec_core::PolicyEngine: a verified DID message identifies the subject, and a policy engine decides whether to mint the typed capability required to reveal or use the payload.

Ed25519DidKeyStore is the production key store: Ed25519 signatures, X25519 key agreement, and ChaCha20-Poly1305 payload encryption. The deterministic, non-cryptographic DemoDidKeyStore is only compiled in tests or behind the demo-crypto feature — never enable that feature in production builds. Deployments with stronger requirements should implement DidKeyStore with JOSE/DIDComm, HPKE, or an HSM/KMS.

Structs§

A2aTypeDidAdapter
A2A TypeDID content adapter.
AcpTypeDidAdapter
ACP TypeDID content adapter.
BandSecureEnvelopeAdapter
BAND secure-envelope adapter for TypeDID payloads.
Did
A decentralized identifier string.
DidDocument
Minimal DID document model used by Typesec integrations.
DidEnvelope
Encrypted DID message envelope.
DidMessageBody
Message metadata that policy engines evaluate before payload use.
DidMessageGateway
Verifies DID envelopes and converts encrypted payloads into SecureValues.
DidMessageReference
Stable reference to a DID message envelope.
DidOllamaClient
Ollama client that can send verified DID prompts.
DidReplyBinding
The prompt context a reply envelope is bound to.
DidService
Service endpoint metadata from a DID document.
Ed25519DidKey
Real key material for a local DID subject.
Ed25519DidKeyStore
Production DidKeyStore: Ed25519 signatures, X25519 ECDH, and ChaCha20-Poly1305 authenticated payload encryption.
HttpTypeDidAdapter
Direct HTTPS TypeDID content adapter.
StaticDidResolver
In-memory DID resolver for tests and local demos.
StaticTypeDidProfileResolver
In-memory TypeDID profile resolver for examples and tests.
TypeDidConversation
TypeDID conversation metadata bound into the envelope signature.
TypeDidGateway
Verifies TypeDID envelopes and protects arbitrary agent payload bytes.
TypeDidProfile
A negotiable TypeDID security profile.
TypeDidWrapRequest
Inputs for wrapping a payload in a TypeDID transport adapter.
VerificationMethod
A verification method from a DID document.
VerifiedDidPrompt
Verified and decrypted DID prompt.
VerifiedTypeDidMessage
Verified and decrypted TypeDID agent message.

Enums§

DidError
DID integration errors.
TypeDidMode
TypeDID delivery mode for an agent message.

Traits§

DidKeyStore
Key-store and envelope crypto boundary.
DidResolver
DID resolver boundary.
SecureEnvelopeAdapter
Common interface for TypeDID secure-envelope transport adapters.
TypeDidProfileResolver
Resolves TypeDID profiles for a remote agent or boundary.