How nuts-foundation/nuts-node works
Main Components Identification
The system consists of several core modules that should be represented as primary components:
a) Core Services:
• Authentication (auth/)
• Cryptography (crypto/)
• DID Management (vdr/)
• Verifiable Credentials (vcr/)
• Network Communication (network/)
• Discovery Service (discovery/)
• Storage Layer (storage/)
b) API Layer:
• HTTP APIs
• gRPC APIs
• OpenID Connect/OAuth2 endpoints
• External Systems |
• (Other Nuts Nodes, Identity Providers, Credential Issuers, Service Consumers) |
• ↕
• API Gateway Layer |
• HTTP/REST APIs |
• gRPC Endpoints |
• OpenID Connect/OAuth2 |
• ↕
• Core Services Layer |
• Auth | | VDR | | VCR | | Discovery | | Network | |
• (OAuth/OIDC)| | (DID Mgmt) | | (Creds) | | (Services) | | (P2P Comms) | |
• Crypto | | Events | | Policy | |
• (Key Mgmt) | | (NATS) | | (Rules) | |
• ↕
• Storage Layer |
• SQL Database | | Redis Cache | | Memcached | | File System | |
Additional Details
Important elements:
• Security boundaries
• Authentication flows
• DID resolution paths
• Credential issuance/verification flows
• Network communication paths
Technical Specifications
Technical details:
• Supported DID methods (web, nuts)
• Credential formats
• Storage backends
• Authentication mechanisms
• Network protocols