WebVH Module
The@credo-ts/webvh package provides support for the did:webvh (Web Verifiable History) DID method, which extends did:web with cryptographic verification and version history.
Installation
Registration
What is did:webvh?
Thedid:webvh method improves upon did:web by adding:
- Verifiable History - Cryptographic proof of DID document changes
- Version Control - Track all updates to the DID document
- Tamper Detection - Detect unauthorized modifications
- Auditable - Full audit trail of all changes
Creating a did:webvh DID
Resolving did:webvh DIDs
Updating a DID Document
Verifying History
The module automatically verifies the cryptographic history when resolving:Advantages Over did:web
- Security - Cryptographic verification prevents tampering
- Auditability - Full history of all changes
- Trust - Detect if DID has been compromised
- Compliance - Audit trail for regulatory requirements
Comparison
| Feature | did:web | did:webvh |
|---|---|---|
| Web hosting | ✓ | ✓ |
| HTTPS required | ✓ | ✓ |
| Version history | ✗ | ✓ |
| Tamper detection | ✗ | ✓ |
| Cryptographic proof | ✗ | ✓ |
| Backward compatible | N/A | With did:web infrastructure |
Use Cases
- Enterprise DIDs - Organizations needing audit trails
- Regulated Industries - Compliance requirements
- High Security - Critical identity infrastructure
- Long-lived DIDs - DIDs that need historical verification
See Also
- DID Methods - Overview of supported DID methods
- DIDs API - DID operations API
- did:web specification