How abdullaha0/v2xsecurity works
This repository is a Java simulation of a V2X Sybil-resistance mechanism. The workflow starts the simulation, creates legitimate and Sybil vehicle threads, has each vehicle mine a time-window-bound SHA-256 proof-of-work token, and submits tokens for freshness, replay, and per-window rate checks. The simulation then reports per-vehicle and per-window outcomes. Configuration, token data, mining, admission, and reporting are represented as distinct responsibilities. The README documents the mechanism; relationships below are limited to those shown in excerpts or explicitly documented.
Main entry points: sim.java Simulation runner · vehicle.java Vehicle threads · rateControlLayer.java Rate-control checks · cryptoLayer.java PoW mining and verification
Components 9
Simulation
- Simulation runner
sim.java - Vehicle threads
vehicle.java - Summary report
sim.java
Proof Of Work
- PoW mining and verification
cryptoLayer.java
Token Admission
- Rate-control checks
rateControlLayer.java - Window and replay state
rateControlLayer.java
Shared Data
- Simulation settings
config.java - Solved token
token.java
Other components
- Simulation launcher
Connections 15
- Simulation launcher → Simulation runner: launches
README.md - Simulation runner → Simulation settings: reads settings
sim.java - Simulation runner → Rate-control checks: creates controller
sim.java - Simulation runner → Vehicle threads: creates and starts
sim.java - Vehicle threads → Simulation settings: reads settings
vehicle.java - Vehicle threads → PoW mining and verification: mines tokens
vehicle.java - PoW mining and verification → Simulation settings: reads difficulty and window
cryptoLayer.java - PoW mining and verification → Solved token: creates
cryptoLayer.java - Vehicle threads → Rate-control checks: submits token
vehicle.java - Rate-control checks → PoW mining and verification: verifies token
rateControlLayer.java - Rate-control checks → Simulation settings: reads acceptance cap
rateControlLayer.java - Rate-control checks → Window and replay state: updates counters and replay set
rateControlLayer.java - Simulation runner → Summary report: prints summary
sim.java - Summary report → Vehicle threads: reads attempt statistics
sim.java - Summary report → Window and replay state: reads window statistics
sim.java