How sathvik-srivathsan/quantcomm works
QuantComm is a portable C protocol implementation with a Python trust-anchor service and C cryptographic adapters. Its visible principal workflow is a device handshake: the server parses and authenticates a message, applies replay and floor gates, then performs key encapsulation and emits a response. Separate core modules provide policy, risk, optimization, manifests, and persistence. The README also names gateway, simulator, and analysis capabilities, but their directories are absent from this tree, so they are not represented. Relationships for unsampled modules are limited to documented or indexed references.
Main entry points: srv_crypto.c Crypto Bridge · qc_hmac.c HMAC Adapter · qc_server.c Handshake Pipeline · qc_zeroize.h Secret Wiping
Components 29
Protocol Core
- Handshake Pipeline
core/qc_server.c - Wire Codec
core/qc_codec.c - Frame Handling
core/qc_frame.c - Epoch Management
core/qc_epoch.c - Replay Cache
core/qc_replay.c
Policy And Control
- Manifest Validation
core/qc_manifest.c - Floor Solver
core/qc_floor.c - Risk Assessment
core/qc_risk.c - Energy Accounting
core/qc_energy.c - Action Optimizer
core/qc_opt.c - Policy Governance
core/qc_gov.c - Batch Processing
core/qc_batch.c
State And Storage
- Protocol State
core/qc_state.c - Encrypted Store
core/qc_store.c - Manifest Persistence
core/qc_manifest_persist.c - Buffer Management
core/qc_buf.c
Cryptographic Adapters
- KEM Adapter
crypto/qc_kem.c - Signature Adapter
crypto/qc_dsa.c - AEAD Adapter
crypto/qc_aead.c - HKDF Adapter
crypto/qc_hkdf.c - HMAC Adapter
crypto/qc_hmac.c - SHA-256 Adapter
crypto/qc_sha256.c - DRBG
crypto/qc_drbg.c - Secret Wiping
crypto/qc_zeroize.h
Trust Service
- Python Service
server/qcsrv/__init__.py - Session Registry
server/qcsrv/registry.py - Audit Logging
server/qcsrv/audit.py - Crypto Bridge
server/srv_crypto.c
Other components
- Device
Connections 31
- Device → Handshake Pipeline: submits handshake
README.md - Handshake Pipeline → Wire Codec: parses messages
core/qc_server.c - Handshake Pipeline → HMAC Adapter: verifies HMAC
core/qc_server.c - Handshake Pipeline → Replay Cache: checks replay
- Handshake Pipeline → Floor Solver: checks floor
- Handshake Pipeline → KEM Adapter: decapsulates
- Manifest Validation → Signature Adapter: uses signatures
- Energy Accounting → Floor Solver: uses floor rules
core/qc_energy.c - Energy Accounting → Batch Processing: uses batching
core/qc_energy.c - Action Optimizer → Floor Solver: uses feasibility
- Policy Governance → HMAC Adapter: uses HMAC
core/qc_gov.c - Risk Assessment → HMAC Adapter: uses HMAC
core/qc_risk.c - Risk Assessment → SHA-256 Adapter: uses hashing
core/qc_risk.c - Encrypted Store → AEAD Adapter: encrypts data
core/qc_store.c - Encrypted Store → HKDF Adapter: derives keys
core/qc_store.c - Encrypted Store → HMAC Adapter: uses HMAC
core/qc_store.c - DRBG → HMAC Adapter: generates with
crypto/qc_drbg.c - DRBG → Secret Wiping: wipes secrets
crypto/qc_drbg.c - HMAC Adapter → SHA-256 Adapter: uses SHA-256
- Signature Adapter → Secret Wiping: wipes secrets
crypto/qc_dsa.c - KEM Adapter → Secret Wiping: wipes secrets
crypto/qc_kem.c - Crypto Bridge → KEM Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → Signature Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → AEAD Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → HKDF Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → HMAC Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → SHA-256 Adapter: invokes adapter
server/srv_crypto.c - Crypto Bridge → DRBG: invokes adapter
server/srv_crypto.c - Crypto Bridge → Secret Wiping: uses wipe
server/srv_crypto.c - Python Service → Session Registry: loads module
server/qcsrv/__init__.py - Python Service → Audit Logging: loads module
server/qcsrv/__init__.py