How onsonr/sonr works
Main Components (Top Level)
• sonrd (Chain Node Service)
• hway (Gateway Service)
• motr (Vault Service)
• DWN (Decentralized Web Node)
• IPFS
• WebAuthn
• Cosmos SDK
• Database Systems
a) User Interactions:
• WebAuthn Authentication → Gateway
• Identity Management → DID Module
• Asset Management → Vault
• Service Requests → DWN
b) Internal Communications:
• Chain State Updates
• Cross-Module Messages
• Event Propagation
• Cryptographic Services (/internal/crypto/)
• Authentication Flow
• Authorization Systems
• Key Management
Specific Implementation Details
a) Module Structure (Show as nested components):
• x/
• did/
• dwn/
• svc/
b) Core Services (Show as interconnected services):
• cmd/
• sonrd/
• hway/
• motr/
Design Guidelines:
Critical paths
• User authentication flow
• Transaction processing
• Identity management
• Asset operations
Remember to:
• Technical details but avoid overwhelming complexity
• Clear boundaries between components
• Security and cryptographic flows
• Document interface points between services