The Sonr DID module implements a comprehensive W3C DID specification, providing a decentralized identity layer that enables self-sovereign identity management across the Sonr blockchain ecosystem.
## Key Features
- **W3C DID Documents**: Full implementation of the W3C DID Core specification
- **Verifiable Credentials**: Issue and manage W3C Verifiable Credentials
- **Multiple Verification Methods**: Support for various key types and WebAuthn
- **Service Endpoints**: Associate services with DIDs
- **Decentralized Resolution**: On-chain DID resolution without external dependencies
## Core Concepts
### Decentralized Identifiers (DIDs)
DIDs are globally unique identifiers created and controlled by their owners without requiring a central authority. In Sonr, DIDs follow the format: `did:sonr:<unique-identifier>`.
### DID Documents
DID Documents are core data structures containing:
Digital credentials that can be cryptographically verified, containing claims about subjects and issued by trusted authorities.
## Revolutionary WebAuthn Integration
### Gasless WebAuthn Registration
The DID module introduces a groundbreaking **gasless registration** system that allows users to create their first decentralized identity without requiring any cryptocurrency. This removes traditional Web3 onboarding barriers.
#### Key Benefits
- **Zero Cost**: Create DIDs without tokens
- **Biometric Authentication**: Use device biometrics for identity creation
- **Instant Usability**: Immediate access to the Sonr ecosystem
- **Cross-Platform**: Works across all major browsers and operating systems
### CLI Usage Example
```bash
# Create DID with WebAuthn credential (no tokens required)