How alexagents/mycelium-core works
MYCELIUM CORE is a desktop sandbox for preparing, running, and auditing electronic elections on a local Ethereum network. The main workflow starts in the PyQt interface, passes through the AppController facade, and uses voting services and local-chain infrastructure; the README describes the smart contract as the source of truth. Admin, voting, audit, and session-log capabilities remain distinct. Connections reflect the README architecture or relationships named in the source index; unsampled implementation details are not assumed.
Main entry points: app_controller.py AppController facade · voting_service.py Voting service · main_window.py Main window · main.py Application startup
Components 28
Desktop interface
- Main window
mycelium-core/src/ui/main_window.py - Admin tab
mycelium-core/src/ui/tabs/admin_tab.py - Vote tab
mycelium-core/src/ui/tabs/vote_tab.py - Audit tab
mycelium-core/src/ui/tabs/audit_tab.py - Logs tab
mycelium-core/src/ui/tabs/logs_tab.py - Background workers
mycelium-core/src/ui/workers
Election operations
- AppController facade
mycelium-core/src/core/app_controller.py - Voting service
mycelium-core/src/core/voting_service.py - Audit service
mycelium-core/src/core/audit_service.py - Vote precheck
mycelium-core/src/core/precheck.py - Error parser
mycelium-core/src/core/error_parser.py - Election models
mycelium-core/src/core/models.py - Election results
mycelium-core/src/core/app_controller.py
Local chain
- Geth manager
mycelium-core/src/core/geth_manager.py - Web3 provider
mycelium-core/src/core/web3_provider.py - Nonce manager
mycelium-core/src/core/nonce_manager.py - Contract compiler
mycelium-core/src/core/compiler_service.py
Runtime support
- Application startup
mycelium-core/main.py - Configuration
mycelium-core/src/utils/config.py - Crypto utilities
mycelium-core/src/utils/crypto.py - Receipt QR
mycelium-core/src/utils/qr.py - Session logging
mycelium-core/src/utils/logger.py - Runtime paths
mycelium-core/src/utils/paths.py - Translations
mycelium-core/src/utils/i18n.py - Theme manager
mycelium-core/src/utils/theme_manager.py
Other components
- Operator
- Local Ethereum node
- VotingCore contract
Connections 38
- Operator → Main window: uses
- Application startup → AppController facade: creates
mycelium-core/main.py - Application startup → Main window: opens
mycelium-core/main.py - Application startup → Configuration: loads
mycelium-core/main.py - Application startup → Translations: initializes
mycelium-core/main.py - Application startup → Theme manager: applies
mycelium-core/main.py - Main window → Admin tab: shows
mycelium-core/src/ui/main_window.py - Main window → Vote tab: shows
mycelium-core/src/ui/main_window.py - Main window → Audit tab: shows
mycelium-core/src/ui/main_window.py - Main window → Logs tab: shows
mycelium-core/src/ui/main_window.py - Main window → AppController facade: delegates
mycelium-core/src/ui/main_window.py - Admin tab → Background workers: dispatches
mycelium-core/src/ui/tabs/admin_tab.py - Vote tab → Background workers: dispatches
mycelium-core/src/ui/tabs/vote_tab.py - Audit tab → Background workers: runs
mycelium-core/src/ui/tabs/audit_tab.py - AppController facade → Voting service: delegates
mycelium-core/src/core/app_controller.py - AppController facade → Audit service: runs
mycelium-core/src/core/app_controller.py - AppController facade → Geth manager: manages
mycelium-core/src/core/app_controller.py - AppController facade → Web3 provider: connects
mycelium-core/src/core/app_controller.py - AppController facade → Vote precheck: checks
mycelium-core/src/core/app_controller.py - AppController facade → Error parser: parses
mycelium-core/src/core/app_controller.py - AppController facade → Election results: exports
mycelium-core/src/core/app_controller.py - Voting service → Web3 provider: uses
mycelium-core/src/core/voting_service.py - Voting service → Nonce manager: allocates nonces
mycelium-core/src/core/voting_service.py - Voting service → Election models: creates receipts
mycelium-core/src/core/voting_service.py - Voting service → Receipt QR: generates receipts
mycelium-core/src/core/voting_service.py - Audit service → Election models: reads
mycelium-core/src/core/audit_service.py - Audit service → Voting service: uses
mycelium-core/src/core/audit_service.py - Geth manager → Local Ethereum node: starts node
- Web3 provider → Local Ethereum node: connects RPC
- Voting service → VotingCore contract: transacts with
- Contract compiler → VotingCore contract: compiles
- AppController facade → Configuration: reads settings
mycelium-core/src/core/app_controller.py - Voting service → Crypto utilities: uses
mycelium-core/src/core/voting_service.py - AppController facade → Session logging: archives session
mycelium-core/src/core/app_controller.py - Session logging → Runtime paths: writes logs
mycelium-core/src/utils/logger.py - Configuration → Runtime paths: uses locations
mycelium-core/src/utils/config.py - Translations → Runtime paths: loads translations
mycelium-core/src/utils/i18n.py - Theme manager → Runtime paths: loads theme
mycelium-core/src/utils/theme_manager.py