How 0xpolygonid/issuer-node works
Main components
• Backend API/Microservices: Under directories such as “cmd” and “internal”, you see several distinct services – “platform”, “migrate”, “notifications”, “pending_publisher”, and even a dedicated “kms_priv_key_importer”. These represent microservices or service processes that handle specific parts of the credential lifecycle.
• Frontend UI: The “ui” directory contains all the source code for the web-based user interface, including components, adapters for communicating with backend APIs, and various asset files.
• API Specification and Documentation: The “api” folder with the “api.yaml” and generated “spec.html” provides the OpenAPI specification, which details the available endpoints and request/response schemas.
• Infrastructure Components: The “infrastructure” directory, along with Dockerfiles and Kubernetes charts (“k8s/helm”), defines the containerized deployment of several dependent services such as Postgres (for persistent data), Redis (for caching/pubsub), and Vault (for secure key management, especially if hashicorp Vault is used as a KMS provider).
• External Services & Dependencies: The README and configuration samples indicate dependencies on external blockchain RPC endpoints (Ethereum RPC via various providers), and integration with a mobile wallet, schema builder, and credential marketplace.
Internal organization and architectural patterns
• Clean Architecture / Layered design: The separation into “internal/api”, “internal/core”, “internal/db”, “internal/gateways”, “internal/repositories”, and “internal/services” implies a clean separation of concerns. The “ports” subdirectories indicate the use of interfaces to abstract external or infrastructure-related services.
• Domain-Centric Logic: Under “internal/core/domain” there are business model files (such as identity, claim, connection, etc.) which encapsulate the business rules.
• Adaptors/Interfaces: There are adapters in both the backend (for caching, HTTP, KMS integration) and in the UI (in the “ui/src/adapters”) to interact between different layers and external systems.
• Containerization and CI/CD Pipelines: The presence of multiple Dockerfiles and the .github workflows shows that deployment and continuous integration (including checks, linting, and automated deployment steps) are an integral part of the project.