Skip to Content
PoC BatteryP19 — Dual Control

P19 — Dual Control: 2-of-3 Threshold Release of the Weight Key

Status green · Claim PC17 · Corpus anchor ch.2 countermeasures; ch.7 approvals row; RAND SL3 · Effort S · Execution host external: omarchy

What it proves

The two-person rule can be enforced by mathematics instead of by procedure. You will split a weight-decryption key into three Shamir shares with threshold two: any two custodians together rebuild the key and decrypt; one custodian alone — even guessing the missing share — gets a key that fails the cryptographic check on the encrypted weights.

Why it matters

The corpus calls two-person control on weight access the one real brake on the shortest path to weights — the privileged insider (ch.2’s countermeasure list, ch.7’s “Approvals workflow (two-person rule)” row, RAND’s SL3 multiparty auth). Those are design claims. This run shows the primitive underneath them is real and small enough to read in one file: procedural two-person rules can be backed by a key that physically will not assemble for a lone operator.

Why this, not that

We do (Y)We don’t (X)Because
Shamir 2-of-3 over GF(2^8), computed inlineHand-wave “use an HSM’s m-of-n feature”The corpus rows are design claims; the smallest honest proof is the math running where you can read every line
Deny gate = authentication failure with a guessed second shareShow that one share “looks random”The operational fact is what the rule needs: one custodian plus guesswork cannot open the weights

What you need

  • Python 3.9+ and pip install -r requirements.txt (cryptography). Runs anywhere.

How to run it

  1. pip3 install -r requirements.txt — installs the one dependency.
  2. python3 scripts/dual_control.py — splits the key, reconstructs with a quorum, fails with a lone share, prints both gates.

What “done” looks like

python3 scripts/dual_control.py # MUST print: # POC-P19-OK-QUORUM-RECONSTRUCT: 2-of-3 custodians released the weight key and decrypted # POC-P19-OK-SINGLE-SHARE-DENIED: one custodian alone cannot open the weights

Where the evidence goes

  • evidence/run.log — full output; both gate lines.

What this does not prove

  • Ch.7’s caveat stands: with threshold two, two custodians are the collusion bound by construction — this defends a single rogue approver, exactly what the corpus row says and no more.
  • The field tables are computed in-file for auditability and are not constant-time. Do not import this file as a library — it is a proof, not a product.
Last updated on
Superdefence II — defensive security research.