flowchart LR
classDef v2 fill:#f8cecc,stroke:#b85450;
classDef v3 fill:#d5e8d4,stroke:#82b366;
classDef keep fill:#dae8fc,stroke:#6c8ebf;
a1["ElGamal ballots
(BabyJubjub, Shor-breakable)"]:::v2 -->|becomes| b1["Shamir shares + PRF masks
(Goldilocks field)"]:::v3
a2["Groth16 ballot proof
(BN254, trusted setup)"]:::v2 -->|becomes| b2["Plonky3 STARK
(browser WASM, transparent)"]:::v3
a3["DKG / council key ceremony
(shared BabyJubjub key)"]:::v2 -->|becomes| b3["Warden ML-KEM keys
(no shared key, no setup ceremony)"]:::v3
a4["Threshold decryption
+ BSGS search"]:::v2 -->|becomes| b4["θ warden share sums + Lagrange
(exact, no decryption)"]:::v3
a5["Re-encryption of stored ballots
+ refresh sample as cover"]:::v2 -->|becomes| b5["Hidden writes: a revote publishes
nothing about its slot
(no cover needed)"]:::v3
a6["ECDSA voter signatures"]:::v2 -->|becomes| b6["Hash-preimage proof inside the STARK,
key from a PQ key map
(CSP credentials: SLH-DSA)"]:::v3
k1["Unchanged: census trees, ZisK batch program role,
blob DA, process registry, permissionless sequencers
(state tree re-hashed with Blake3)"]:::keep