DIDComm V2 Guidebook
If you're a developer who wants to learn the practicalities of DIDComm -- getting started, common recipes, libraries and tools, the theory behind the spec, or how your peers are solving interesting problems -- this is the place.
This is a living doc, updated and expanded regularly by the DIDComm User Group. If you have suggestions for the book, we welcome your contributions; reach out to us on Discord or email for help.
This version of the book focuses on DIDComm v2 (the one incubated by DIF, finalized in early 2022). For info about migration from DIDComm v1, see Appendix: Migration from DIDComm v1. A new version of DIDComm, v3, is imagined. This would be an IETF standard that builds on v2 with a session construct, improved binary support, leaner messages for IoT, and so forth. When we have links for that work, we'll add them here.
Contents
- Why DIDComm?
- Latest DIDComm community activity
- Hello World
- Threading
- Protocols
- Implementing a protocol
- Designing your own protocol
- When this makes sense
- Conventions
- Best practices
- Sharing your protocol
- Co-protocols
- Recipes
- Debugging
- Timeouts
- Retries
- Localization
- N-wise
- Bootstrapping
- Using DIDComm security outside DIDComm
- Dealing with mobile agents
- Problem Codes
- Safety
- Privacy
- Security
- Authcrypt vs. Anoncrypt
- Choosing curves
- Choosing DID methods
- Message security contexts
- DID rotation
- Perfect forward secrecy
- Man in the middle
- Routing
- Extensions
- Frequently Asked Questions
- Appendix: Migration from DIDComm v1
- What's new
- Migrator script