Municipal Dark-Fiber Cryptographic Resilience & Epistemic Commit Firewall
A zero-dependency Python 3 reference architecture pairing (1) an information-theoretic
transport tier for fixed-topology municipal dark-fiber rings (e.g., Roanoke Valley Broadband Authority),
(2) Ball–Rosen–Sabin–Vasudevan fine-grained #OV anti-Sybil rate limiting
with explicit d ≥ 2⌈log2 n⌉ hardening, (3) an exploratory
lumped-element physical capacitive tamper model, and (4) a Belnap four-valued (B4)
AI-agent epistemic REST sidecar for authentic NIIS X-Road Security Servers.
P fine-grained
anti-Sybil friction (#OV), unconditional information-theoretic wire security
(pre-shared OTP + Wegman–Carter MAC + Shamir), and exploratory pre-silicon/pre-PCB
lumped-element hardware modeling. Every module runs standalone on Python 3 stdlib with automated
adversarial regression tests.
1. Threat-Model Separation Matrix
| Layer | Mechanism | Exact Security Assumption | Survives Practical P = NP? |
Intended Role |
|---|---|---|---|---|
Layer 0obb_epistemic_lattice.py |
Belnap B4 lattice, LLM Source Clamp, Node 0 Zero-PII floor, 1-Click atomic undo |
Deterministic policy invariants (non-cryptographic; local receipts use SHA-256 in standard mode) | Yes (policy logic is structural) | Prevents AI agents from self-certifying guesses, clobbering locked cells, or leaking PII |
Layer 1obb_xroad_epistemic_sidecar.py |
Zero-dependency REST sidecar (X-Road-Client, /r1/...) in front of a real NIIS X-Road Security Server |
Classical or NIST PQC hardness (X.509 / PKCS#11 HSM / ASiC-E / RFC-3161 TSA) | No (PKI, PQC, and SHA-256 break under practical P = NP) |
Production cross-org interoperability today; enforces Layer 0 before NIIS signing |
Shield 1obb_fine_grained_pow.py |
Ball–Rosen–Sabin–Vasudevan (STOC 2017 / CRYPTO 2018) #OV over F2^127-1, d ≥ 2⌈log2 n⌉ |
Conditional in-P fine-grained #OV lower bound (Ω(n2-o(1))). Note: P = NP refutes SETH |
Conditional (polynomial anti-Sybil friction only) | Zero-CAPTCHA, zero-tracking rate limiting on public civic intake forms |
Shield 3obb_info_theoretic_channel.py |
In-person pre-shared TRNG SSDs + directional Vernam OTP + Wegman–Carter MAC over F2^127-1 + Shamir |
Zero computational assumptions (physical custody of pre-shared drives + crash-safe monotonic burn) | Yes (Unconditional) | Extreme-resilience transport for fixed-topology municipal dark-fiber rings (5–20 hubs) |
Shield 2obb_coupled_tile_sim.py |
Lumped-element 3×3 νMOS capacitive tamper cell + ratiometric differential pair + M-tile array |
Physical microprobe / decapsulation capacitance perturbation (exploratory simulation) | Yes (physical layer) | Pre-silicon / pre-PCB research model seeking hardware & side-channel review |
2. Core Design Decisions & Red-Team Hardening (v2)
2.1 Fine-Grained #OV PoW: Blocking the O(2d n) Monomial Factorization Cheat
For pOV(U, V) = Σi,j Πl=1..d (1 − Ui,l Vj,l) mod (2127 − 1),
expanding the product over subsets S ⊆ [d] allows exact evaluation in
O(2d n) linear time. Any small constant dimension (e.g., d = 3, 4)
completely destroys quadratic hardness. Production FineGrainedOvIssuer therefore enforces
d ≥ max(16, 2⌈log2 n⌉) by default (throwing ValueError
otherwise), decouples epoch rotation from unauthenticated issue_challenge() requests to
prevent server-CPU DoS, and bounds pending challenges with strict TTL eviction.
2.2 Information-Theoretic Dark-Fiber Channel: Fixed-Topology Economics & Anti-DoS
Pre-shared One-Time Pads do not scale to the open dynamic internet, but fit fixed-topology municipal
dark-fiber meshes such as the Roanoke Valley Broadband Authority (RVBA) (100–120+ miles
of open-access middle-mile fiber linking fixed regional anchor institutions). A 1 TB directional hardware-TRNG
drive sustains 500 msgs/day × (512 B + 32 B MAC key) for 10,065.6 years.
- Pre-MAC Pad-Wipe DoS Fix: Disjoint OTP and MAC-key sub-tapes, strict
32 ≤ mac_pad_len ≤ 64and sliding-window offset checks, and peek-then-verify MAC before zeroization (quarantining a 32 B MAC slot only afterqmax = 3failures, keeping forgery probability≤ 3k/(2127−2)while neutralizing single-packet pad-wipe and offset-desync DoS). - Crash-Safe Write-Ahead Burn-Before-Send (WABBS):
FileBackedPadStoreatomically commits +fsync()s monotonic cursors before emitting ciphertext, preventing reboot two-time-pad failures. - Active-Cheater Detection & Non-Repudiation Scope:
ShamirQuorumverifies polynomial consistency across all extra shares whenlen(shares) > t(Reed–Solomon check; Rabin–Ben-Or IT-VSS for exact-tactive resilience). Wegman–Carter provides bilateral authenticity, not third-party non-repudiation (which in Algorithmica requires Unconditionally Secure Signatures, e.g. Chaum–Roijakkers / Hanaoka et al.).
2.3 Physical Tamper Model: Honest Lumped-Element Scope & Ratiometric Sensing
A single 3×3 unit cell comparing 4 cardinal edges and 4 corners pairwise yields at most
log2(4!2) ≈ 9.17 bits of true order min-entropy (576 valid rankings),
so a hardware root requires tiling M ≥ 16 independent cells (~146.7 raw bits) plus fuzzy extraction.
Because 28nm comparator offset mismatch (5–20 mV), reset charge injection, and FR-4 ambient humidity
εr drift (2–5%+) dwarf thermal kBT/C noise,
DifferentialTilePair compares an exposed top-layer tile against a buried reference tile
to cancel common-mode VDD and dielectric drift while preserving sensitivity to
localized probe ΔCprobe loading.
2.4 NIIS X-Road Integration: REST Policy Sidecar, Not a Custom Security Server
obb_xroad_epistemic_sidecar.py leaves cryptographic non-repudiation (PKCS#11 HSM,
X.509/mTLS, ASiC-E, RFC-3161 TSA, and NIIS PQC) entirely
to the authentic MIT-licensed NIIS Security Server. The sidecar inspects X-Road-Client and
/r1/... REST calls upstream to stop AI agents from pushing unconfirmed hallucinations or PII
into validly signed X-Road transactions.
3. Specific Open Questions for Cryptographic & Hardware Review
- Fine-Grained
#OVMulti-Challenge Reuse (CIRG / Complexity): Sharing an epoch base answery*acrossKclients via row/column permutation + reciprocal diagonal scaling + uniform blinding hides(Ũ, r*)perfectly forK = 1. AcrossK ≥ 2challenges in one epoch, does the monomial automorphism group expose any sub-O(n2)pencil invariant, or should production strictly eliminate epoch reuse via CRYPTO 2018 planted/batch instances? - IT-Channel DoS vs. Unconditional Signatures (CIRG / Weis / NIIS): On dedicated municipal dark fiber where link-layer MAC failures trigger immediate out-of-band alerts, is a bounded
qmax = 3peek-then-burn slot policy the right operational point, and are correlated-key Unconditionally Secure Signatures practical for 5–20 civic anchor hubs requiring third-party non-repudiation? - Ratiometric Capacitive Tamper Validation (Hardware / Side-Channel): On a 4-layer FR-4 PCB test coupon (buried reference tile vs. top-layer guard tile), what minimum invasive microprobe
ΔCproberemains cleanly separable above seasonal humidity/temperature drift, and how does this compare to conventional active serpentine tamper meshes?
4. Runnable Verification & Source Modules
git clone https://github.com/atechnique/atechnique.github.io.git
cd atechnique.github.io/honesty-layer
python3 -m unittest discover -s . -p "test_*.py" -v
ALGORITHM_AND_PROTOCOL_SPEC.md— Full mathematical specification & threat modelobb_primitives.py— Zero-dependency core primitives (Node 0 Zero-PII, hash-chained ledger, 1-Click undo)obb_epistemic_lattice.py— BelnapB4epistemic firewall & LLM Source Clampobb_fine_grained_pow.py— Hardened#OVPoW withO(2d n)monomial-attack guardobb_info_theoretic_channel.py— Disjoint OTP/Wegman–Carter channel + crash-safe store + Shamir cheater detectionobb_coupled_tile_sim.py— Lumped-element capacitive tamper cell + ratiometric differential pairobb_xroad_epistemic_sidecar.py— NIIS X-Road REST epistemic & Zero-PII sidecartest_honesty_layer_v2.py— Automated regression & security test suiteMANIFEST_SHA256.json— SHA-256 verification manifest