How ki-repos/ingrion works
INGRION combines a government identity archive, a KYC/download web bridge, a Go blockchain node, and a desktop financial application. The user journey runs from citizen identity and KYC review through the web bridge to a desktop wallet, where role-specific IPO, trading, banking, and oversight actions reach the chain. The README documents ecosystem links and chain responsibilities; sampled frontend excerpts show routing, KYC submission, and desktop startup. Backend internals and most chain and desktop domain code were not sampled, so those components are represented at subsystem level and uncertain links are omitted.
Main entry points: App.tsx Desktop Router · main.go DPoS Node · App.jsx Archive Portal · apps Portal Services
Components 26
Identity Archive
- Archive Portal
National_Identity_Archive/frontend/src/App.jsx - Citizen Auth
National_Identity_Archive/frontend/src/lib/AuthContext.jsx - Identity KYC
National_Identity_Archive/backend/gov_project/apps/kyc - Archive Records
National_Identity_Archive/backend/gov_project/apps/archive - Accounts API
National_Identity_Archive/backend/gov_project/apps/accounts - Archive Data
National_Identity_Archive/backend/gov_project/apps
Web Portal
- Web Portal
Ingrion_Web/frontend/src/App.jsx - KYC Bridge
Ingrion_Web/frontend/src/pages/KYCPage.jsx - Portal API Client
Ingrion_Web/frontend/src/lib/api.js - Portal Services
Ingrion_Web/backend/ingrion_project/apps - App Downloads
Ingrion_Web/backend/ingrion_project/apps/downloads - Whitepaper Service
Ingrion_Web/backend/ingrion_project/apps/whitepaper
Blockchain Core
- DPoS Node
Ingrion_core/main.go
Desktop App
- Desktop Router
Ingrion_exe/src/App.tsx - Node API Client
Ingrion_exe/src/lib/api.ts - Key Storage
Ingrion_exe/src/lib/keystore.ts - Sync Service
Ingrion_exe/src/lib/sync.ts - Local Database
Ingrion_exe/src/lib/db.ts - Issuer Workflows
Ingrion_exe/src/pages/company - Investor Workflows
Ingrion_exe/src/pages/user - Regulator Workflows
Ingrion_exe/src/pages/regulator - Validator Tools
Ingrion_exe/src/pages/validator
External Systems
- Government API
Other components
- Citizen
- Archive Admin
- Market Roles
Connections 31
- Citizen → Archive Portal: uses
National_Identity_Archive/frontend/src/App.jsx - Archive Portal → Citizen Auth: provides auth
National_Identity_Archive/frontend/src/App.jsx - Archive Portal → Identity KYC: submits KYC
- Archive Portal → Archive Records: requests records
- Archive Portal → Accounts API: auth requests
- Archive Admin → Archive Portal: reviews cases
National_Identity_Archive/frontend/src/App.jsx - Identity KYC → Archive Data: stores identity
- Archive Records → Archive Data: stores records
- Accounts API → Archive Data: stores accounts
National_Identity_Archive/backend/gov_project/apps/accounts/authentication.py - Web Portal → KYC Bridge: routes KYC
Ingrion_Web/frontend/src/App.jsx - KYC Bridge → Portal API Client: submits KYC
Ingrion_Web/frontend/src/pages/KYCPage.jsx - Portal API Client → Portal Services: calls services
Ingrion_Web/frontend/src/lib/api.js - Portal Services → App Downloads: serves downloads
- Portal Services → Whitepaper Service: serves whitepaper
- KYC Bridge → Government API: validates archive link
- Portal Services → DPoS Node: submits KYC approval
- Desktop Router → Key Storage: loads keys
Ingrion_exe/src/App.tsx - Desktop Router → Node API Client: checks node status
Ingrion_exe/src/App.tsx - Desktop Router → Sync Service: starts sync
Ingrion_exe/src/App.tsx - Desktop Router → Local Database: loads notifications
Ingrion_exe/src/App.tsx - Market Roles → Desktop Router: uses
- Desktop Router → Issuer Workflows: routes issuer roles
Ingrion_exe/src/App.tsx - Desktop Router → Investor Workflows: routes user roles
Ingrion_exe/src/App.tsx - Desktop Router → Regulator Workflows: routes regulator roles
Ingrion_exe/src/App.tsx - Desktop Router → Validator Tools: routes validator roles
- Node API Client → DPoS Node: sends transactions
- Sync Service → DPoS Node: syncs chain state
- Issuer Workflows → DPoS Node: records IPO actions
- Investor Workflows → DPoS Node: records market actions
- Regulator Workflows → DPoS Node: queries oversight data
- Validator Tools → DPoS Node: validates blocks