How hariniir/quantum-resilient-authenticated-communication-for-cav-using-post-quantum-cryptography works
QRCAV is a post-quantum V2X security framework. Its principal workflow registers communicating entities with a Trusted Authority, establishes mutually authenticated sessions, protects messages, routes safety traffic through the vehicle/RSU/MEC/cloud topology, and submits transactions for AGS-PBFT commitment to a hash-linked ledger. Distinct product branches provide an ns-3 802.11p mobility simulation and an evaluation suite for cryptography, attacks, consensus, sweeps, and plots. The README documents these capabilities; unsampled node and evaluation implementations are represented by their existing directories, and links among them are included only where the README states the relationship.
Main entry points: handshake.py Mutual handshake · client.py Consensus client · agspbft.py AGS-PBFT replicas · pki.py TA and PKI
Components 21
Identity and crypto
- TA and PKI
qrcav/pki.py - Crypto suites
qrcav/crypto/suites.py - Key derivation
qrcav/crypto/kdf.py - Canonical codec
qrcav/codec.py - TA process
qrcav/nodes/ta.py
Secure communications
- Mutual handshake
qrcav/handshake.py - Encrypted records
qrcav/crypto/records.py - TCP secure channels
qrcav/net/secure.py - Entity process base
qrcav/nodes/base.py - Vehicles and RSUs
qrcav/nodes - MEC routing
qrcav/nodes/mec.py - Cloud service
qrcav/nodes/cloud.py
Consensus and ledger
- Consensus client
qrcav/consensus/client.py - Signed messages
qrcav/consensus/messages.py - AGS-PBFT replicas
qrcav/consensus/agspbft.py - Hash-linked ledger
qrcav/ledger.py - Consensus process
qrcav/nodes/consensus_node.py
Simulation and evaluation
- Consensus harness
qrcav/consensus/sim.py - ns-3 scenarios
qrcav/sim - Evaluation suite
qrcav/eval
Other components
- System operator
Connections 26
- System operator → TA process: starts services
README.md - TA process → TA and PKI: registers entities
- TA and PKI → Crypto suites: signs certificates
qrcav/pki.py - Entity process base → TA and PKI: registers and refreshes
qrcav/nodes/base.py - Entity process base → TCP secure channels: manages channels
qrcav/nodes/base.py - TCP secure channels → Mutual handshake: establishes sessions
qrcav/net/secure.py - Mutual handshake → TA and PKI: verifies credentials
qrcav/handshake.py - Mutual handshake → Crypto suites: uses key agreement
README.md - Mutual handshake → Key derivation: derives session keys
qrcav/handshake.py - TCP secure channels → Encrypted records: protects channel data
README.md - Vehicles and RSUs → MEC routing: sends safety traffic
README.md - MEC routing → Cloud service: routes traffic
README.md - MEC routing → Consensus client: submits transactions
README.md - Consensus client → Signed messages: signs requests
qrcav/consensus/client.py - Consensus client → Consensus process: dispatches requests
- Consensus process → AGS-PBFT replicas: drives replicas
qrcav/nodes/consensus_node.py - AGS-PBFT replicas → Signed messages: validates envelopes
qrcav/consensus/agspbft.py - AGS-PBFT replicas → Hash-linked ledger: commits certified blocks
README.md - Consensus harness → AGS-PBFT replicas: runs replicas
qrcav/consensus/sim.py - Consensus harness → Consensus client: runs client
qrcav/consensus/sim.py - System operator → ns-3 scenarios: runs mobility scenarios
README.md - ns-3 scenarios → Evaluation suite: feeds network sweeps
README.md - System operator → Evaluation suite: runs experiments
README.md - Evaluation suite → Consensus harness: evaluates consensus
qrcav/eval/consensus_eval.py - Canonical codec → Mutual handshake: encodes flights
qrcav/handshake.py - Canonical codec → Signed messages: encodes envelopes
qrcav/consensus/messages.py