arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
docs(spec): add v3-pq post-quantum protocol specification

Delta-spec over v2 for the MSA (masked-share accumulator) design:
Shamir shares + PRF masks over ML-KEM transport replace ElGamal,
Plonky3 ballot STARKs replace Groth16, warden KEM keys replace the
DKG, and the tally is a Lagrange interpolation of proven warden sums.
Includes seven draw.io figures, a client-side rendered page, and the
deploy step for spec.davinci.vote/v3-pq. Reviewed through three
adversarial soundness rounds plus an audience-representative pass.
Pau Escrich p4u@dabax.net
Tue, 20 Oct 2026 10:52:26 +0000
commit

861711fe15a053b6a9a5e75c786c6222bf9abd4a

parent

ff59afbce0ccd69deeec9abd54e22557dfe05e35

M .github/workflows/build-and-deploy.yml → .github/workflows/build-and-deploy.yml

@@ -219,6 +219,12 @@ </body>

</html> EOF + - name: Add v3-pq spec + run: | + mkdir -p docs/v3-pq/figures + cp v3-pq/index.html v3-pq/spec.md docs/v3-pq/ + cp v3-pq/figures/*.svg docs/v3-pq/figures/ + - name: Upload paper.md artifact uses: actions/upload-artifact@v4 with:
A v3-pq/figures/architecture-delta.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1011px" height="834px" viewBox="0 0 1011 834"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="107" y="10" width="294" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 292px; height: 1px; padding-top: 47px; margin-left: 108px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ElGamal ballots<br />(BabyJubjub, Shor-breakable)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="663" y="10" width="284" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 282px; height: 1px; padding-top: 47px; margin-left: 664px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Shamir shares + PRF masks<br />(Goldilocks field)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="132" y="133" width="244" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 242px; height: 1px; padding-top: 170px; margin-left: 133px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Groth16 ballot proof<br />(BN254, trusted setup)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="657" y="133" width="295" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 293px; height: 1px; padding-top: 170px; margin-left: 658px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Plonky3 STARK<br />(browser WASM, transparent)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="112" y="256" width="285" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 283px; height: 1px; padding-top: 293px; margin-left: 113px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">DKG / council key ceremony<br />(shared BabyJubjub key)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="655" y="256" width="300" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 293px; margin-left: 656px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Warden ML-KEM keys<br />(no shared key, no ceremony)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="139" y="379" width="230" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 228px; height: 1px; padding-top: 416px; margin-left: 140px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Threshold decryption<br />+ BSGS search</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="664" y="379" width="281" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 279px; height: 1px; padding-top: 416px; margin-left: 665px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">θ warden sums + Lagrange<br />(exact, no decryption)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="101" y="502" width="306" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 304px; height: 1px; padding-top: 539px; margin-left: 102px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Re-encryption of stored ballots<br />(silent revoting)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><rect x="642" y="502" width="325" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 323px; height: 1px; padding-top: 539px; margin-left: 643px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Hash-chained opaque slot leaves<br />+ padded accumulator</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><rect x="129" y="635" width="251" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 249px; height: 1px; padding-top: 662px; margin-left: 130px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ECDSA voter signatures</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><rect x="620" y="625" width="369" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 367px; height: 1px; padding-top: 662px; margin-left: 621px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Hash-preimage proof inside the STARK<br />(CSP credentials: SLH-DSA)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><rect x="10" y="739" width="488" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 486px; height: 1px; padding-top: 776px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Unchanged: ZisK batch program, SHA-256 state SMT,<br />blob DA, process registry, permissionless sequencers</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><path d="M 401 47.23 Q 401 47.23 653.88 47.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 661.88 47.23 L 653.88 51.23 L 653.88 43.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 47px; margin-left: 532px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 376 170.23 Q 376 170.23 647.88 170.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 655.88 170.23 L 647.88 174.23 L 647.88 166.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 170px; margin-left: 517px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="17"><g transform="translate(0.5,0.5)"><path d="M 397 293.23 Q 397 293.23 645.88 293.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 653.88 293.23 L 645.88 297.23 L 645.88 289.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 293px; margin-left: 526px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="18"><g transform="translate(0.5,0.5)"><path d="M 369 416.23 Q 369 416.23 654.88 416.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 662.88 416.23 L 654.88 420.23 L 654.88 412.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 416px; margin-left: 517px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="19"><g transform="translate(0.5,0.5)"><path d="M 407 539.23 Q 407 539.23 632.88 539.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 640.88 539.23 L 632.88 543.23 L 632.88 535.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 539px; margin-left: 525px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="20"><g transform="translate(0.5,0.5)"><path d="M 380 662 Q 380 662 610.88 662.22" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 618.88 662.23 L 610.88 666.22 L 610.89 658.22 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 662px; margin-left: 500px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">becomes</div></div></div></foreignObject></switch></g></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/ballot-package.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="2778px" height="359px" viewBox="0 0 2778 359"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="331" y="10" width="219" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 217px; height: 1px; padding-top: 47px; margin-left: 332px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ballot fields b1..b16<br />(private)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="651" y="10" width="294" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 292px; height: 1px; padding-top: 47px; margin-left: 652px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Shamir split per field:<br />random poly, deg θ-1, f(0)=b</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="995" y="10" width="294" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 292px; height: 1px; padding-top: 47px; margin-left: 996px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">shares s[i][f]<br />one row per warden (private)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="10" y="212" width="220" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 218px; height: 1px; padding-top: 249px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">warden ML-KEM pks<br />(public, per epoch)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="280" y="212" width="321" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 319px; height: 1px; padding-top: 249px; margin-left: 281px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ML-KEM encaps, one per warden<br />(fresh randomness each)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="1735" y="283" width="297" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 295px; height: 1px; padding-top: 310px; margin-left: 1736px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ciphertexts ct_1..ct_v (public)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="659" y="169" width="278" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 276px; height: 1px; padding-top: 196px; margin-left: 660px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">pad keys K_1..K_v (private)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="1023" y="200" width="238" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 236px; height: 1px; padding-top: 227px; margin-left: 1024px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">pads = PRF(K_i, ctx, f)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="1354" y="159" width="294" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 292px; height: 1px; padding-top: 186px; margin-left: 1355px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">e[i][f] = s[i][f] + pad (mod p)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><rect x="1753" y="159" width="261" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 259px; height: 1px; padding-top: 186px; margin-left: 1754px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">masked shares E (public)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><rect x="1339" y="55" width="323" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 321px; height: 1px; padding-top: 82px; margin-left: 1340px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">h_i = Poseidon2(s_i row, K_i, ctx)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><rect x="1712" y="55" width="343" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 341px; height: 1px; padding-top: 82px; margin-left: 1713px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">pad commitments h_1..h_v (public)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><rect x="2105" y="150" width="289" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 287px; height: 1px; padding-top: 187px; margin-left: 2106px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">package:<br />voteID, E, cts, h, pkgCommit</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><rect x="2444" y="121" width="312" height="131" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 310px; height: 1px; padding-top: 187px; margin-left: 2445px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ballot STARK proves:<br />ballot valid per ballotMode ·<br />shares lie on one polynomial ·<br />masks match h ·<br />voteID + auth (H(sk) in census)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 550 47.23 Q 550 47.23 641.88 47.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 649.88 47.23 L 641.88 51.23 L 641.88 43.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="17"><g transform="translate(0.5,0.5)"><path d="M 945 47.23 Q 945 47.23 985.88 47.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 993.88 47.23 L 985.88 51.23 L 985.88 43.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="18"><g transform="translate(0.5,0.5)"><path d="M 230 247.77 Q 230 247.77 270.88 247.77" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 278.88 247.77 L 270.88 251.77 L 270.88 243.77 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="19"><g transform="translate(0.5,0.5)"><path d="M 549.64 285 Q 626 310 712 310 Q 798 310 884 310 Q 970 310 1056 310 Q 1142 310 1228 310 Q 1314 310 1407.5 310 Q 1501 310 1594 310 Q 1687 310 1725.88 310" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1733.88 310 L 1725.88 314 L 1725.88 306 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="20"><g transform="translate(0.5,0.5)"><path d="M 572.11 212 Q 626 196 649.88 196" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 657.88 196 L 649.88 200 L 649.88 192 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="21"><g transform="translate(0.5,0.5)"><path d="M 937 220.84 Q 970 227 1013.88 227" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1021.88 227 L 1013.88 231 L 1013.88 223 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="22"><g transform="translate(0.5,0.5)"><path d="M 1262.54 83 Q 1314 99 1433.94 155.13" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1441.19 158.53 L 1432.25 158.76 L 1435.64 151.51 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="23"><g transform="translate(0.5,0.5)"><path d="M 1261 227 Q 1314 227 1368.62 214.96" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1376.43 213.24 L 1369.48 218.87 L 1367.75 211.06 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="24"><g transform="translate(0.5,0.5)"><path d="M 1648 186 Q 1648 186 1743.88 186" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1751.88 186 L 1743.88 190 L 1743.88 182 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="25"><g transform="translate(0.5,0.5)"><path d="M 1289 37.74 Q 1314 37 1381.8 52.92" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1389.59 54.74 L 1380.89 56.81 L 1382.72 49.02 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="26"><g transform="translate(0.5,0.5)"><path d="M 886.96 169 Q 970 144 1056 144 Q 1142 144 1228 144 Q 1314 144 1411.09 111.86" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1418.69 109.35 L 1412.35 115.66 L 1409.84 108.07 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="27"><g transform="translate(0.5,0.5)"><path d="M 1662 82 Q 1662 82 1702.88 82" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1710.88 82 L 1702.88 86 L 1702.88 78 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="28"><g transform="translate(0.5,0.5)"><path d="M 2014 186 Q 2014 186 2095.88 185.79" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 2103.88 185.77 L 2095.89 189.79 L 2095.87 181.79 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="29"><g transform="translate(0.5,0.5)"><path d="M 2032 310 Q 2080 310 2192.98 228.34" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 2199.46 223.65 L 2195.32 231.58 L 2190.64 225.1 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="30"><g transform="translate(0.5,0.5)"><path d="M 2055 82 Q 2080 82 2181.08 145.17" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 2187.86 149.41 L 2178.96 148.56 L 2183.2 141.78 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="31"><g transform="translate(0.5,0.5)"><path d="M 2394 185.77 Q 2394 185.77 2434.88 186.37" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 2442.88 186.48 L 2434.82 190.37 L 2434.94 182.37 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/batch-flow.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1288px" height="687px" viewBox="0 0 1288 687"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="15" y="134" width="177" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 175px; height: 1px; padding-top: 171px; margin-left: 16px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">n packages<br />+ ballot STARKs</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="262" y="124" width="280" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 278px; height: 1px; padding-top: 171px; margin-left: 263px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">verify n ballot STARKs in-guest<br />(Poseidon2 precompile,<br />~1M steps each)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="322" y="20" width="160" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 47px; margin-left: 323px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">census proofs</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="607" y="10" width="302" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 300px; height: 1px; padding-top: 47px; margin-left: 608px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">eligibility + binding checks<br />(hybrid: + ECDSA over pkgDigest)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="19" y="296" width="169" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 167px; height: 1px; padding-top: 323px; margin-left: 20px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">state witnesses</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="258" y="267" width="287" height="112" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 285px; height: 1px; padding-top: 323px; margin-left: 259px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">state transitions:<br />insert voteID→pkgDigest ·<br />insert nullifiers (one-live-chain) ·<br />slot writes + refresh re-chaining</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="10" y="524" width="186" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 184px; height: 1px; padding-top: 551px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">secret batch seed</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="246" y="429" width="311" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 309px; height: 1px; padding-top: 476px; margin-left: 247px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">accumulator update:<br />A' = A + ΣE_new − ΣE_revoked + B<br />(B = fresh uniform batch pad)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="263" y="572" width="278" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 276px; height: 1px; padding-top: 619px; margin-left: 264px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">warden payload:<br />AEAD(B, revoked list) — key<br />θ-shared via ν in-guest encaps</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><rect x="628" y="352" width="261" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 259px; height: 1px; padding-top: 399px; margin-left: 629px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">blob layout v3<br />(packages, leaves, nullifiers,<br />A', payload)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><rect x="959" y="214" width="307" height="93" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 305px; height: 1px; padding-top: 261px; margin-left: 960px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">public outputs:<br />ok, failMask, roots,<br />counters, censusRoot, blobsDigest</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><path d="M 192 169.77 Q 192 169.77 252.88 169.6" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 260.88 169.57 L 252.89 173.6 L 252.87 165.6 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><path d="M 482 47 Q 482 47 597.88 47.21" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 605.88 47.23 L 597.87 51.21 L 597.89 43.21 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><path d="M 188 323 Q 188 323 248.88 323" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 256.88 323 L 248.88 327 L 248.88 319 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 145.78 524 Q 221 475 236.88 474.73" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 244.88 474.59 L 236.95 478.73 L 236.81 470.73 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="17"><g transform="translate(0.5,0.5)"><path d="M 151.36 578 Q 221 618 253.88 617.66" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 261.88 617.58 L 253.92 621.66 L 253.84 613.66 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="18"><g transform="translate(0.5,0.5)"><path d="M 542 169.57 Q 582 170 716.4 344.77" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 721.28 351.11 L 713.23 347.21 L 719.57 342.33 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="19"><g transform="translate(0.5,0.5)"><path d="M 545 323 Q 582 323 643.08 348.49" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 650.46 351.57 L 641.53 352.18 L 644.62 344.8 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="20"><g transform="translate(0.5,0.5)"><path d="M 557 474.57 Q 582 475 643.12 448.61" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 650.46 445.44 L 644.7 452.29 L 641.53 444.94 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="21"><g transform="translate(0.5,0.5)"><path d="M 541 617.57 Q 582 618 716.23 452.09" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 721.26 445.87 L 719.33 454.6 L 713.12 449.57 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="22"><g transform="translate(0.5,0.5)"><path d="M 909 47.23 Q 934 47 1066.77 206.98" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1071.88 213.14 L 1063.69 209.54 L 1069.85 204.43 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="23"><g transform="translate(0.5,0.5)"><path d="M 889 399.43 Q 934 399 1043.93 312.63" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1050.22 307.69 L 1046.4 315.78 L 1041.46 309.49 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/revote-lifecycle.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1923px" height="723px" viewBox="0 0 1923 723"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="863" y="563" width="695" height="138" fill="#ffffde" stroke="#aaaa33" pointer-events="all" style="fill: light-dark(rgb(255, 255, 222), rgb(31, 32, 32)); stroke: light-dark(rgb(170, 170, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 693px; height: 1px; padding-top: 570px; margin-left: 864px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">checked in the voter's ballot STARK</div></div></div></foreignObject></switch></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="898" y="608" width="285" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 283px; height: 1px; padding-top: 645px; margin-left: 899px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">knows opening of prev package<br />(same slot, same sk)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="1233" y="618" width="290" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 288px; height: 1px; padding-top: 645px; margin-left: 1234px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">NULL = PRF(sk, prevPkgDigest)</div></div></div></foreignObject></switch></g></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="1032" y="316" width="357" height="286" fill="#ffffde" stroke="#aaaa33" pointer-events="all" style="fill: light-dark(rgb(255, 255, 222), rgb(31, 32, 32)); stroke: light-dark(rgb(170, 170, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 355px; height: 1px; padding-top: 323px; margin-left: 1033px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">checked by the batch program</div></div></div></foreignObject></switch></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="1076" y="400" width="269" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 267px; height: 1px; padding-top: 447px; margin-left: 1077px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">prev admitted:<br />voteID → pkgDigest inclusion<br />proof under current root</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="1095" y="361" width="231" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 229px; height: 1px; padding-top: 398px; margin-left: 1096px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">NULL not in nullifier tree<br />→ insert (once ever)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="1067" y="484" width="287" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 285px; height: 1px; padding-top: 531px; margin-left: 1068px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">empty slot → first package only;<br />occupied slot → must consume<br />exactly one predecessor</div></div></div></foreignObject></switch></g></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="10" y="349" width="195" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 193px; height: 1px; padding-top: 386px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">P0 — first package<br />prevPkgDigest = 0</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="401" y="410" width="241" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 239px; height: 1px; padding-top: 447px; margin-left: 402px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">P1 — live package<br />references pkgDigest(P0)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><rect x="1114" y="10" width="193" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 191px; height: 1px; padding-top: 37px; margin-left: 1115px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">P2 — live package</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><rect x="415" y="287" width="213" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: light-dark(rgb(248, 206, 204), rgb(81, 45, 43)); stroke: light-dark(rgb(184, 84, 80), rgb(215, 129, 126));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 211px; height: 1px; padding-top: 324px; margin-left: 416px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">P0 consumed (dead):<br />its E removed from A</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><rect x="1633" y="361" width="268" height="73" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 266px; height: 1px; padding-top: 398px; margin-left: 1634px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">nullifier tree (depth-256 SMT)<br />public, unlinkable keys</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><path d="M 205 416.16 Q 303 447 391.88 447.21" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 399.88 447.23 L 391.87 451.21 L 391.89 443.21 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 446px; margin-left: 300px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">revote consumes P0</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><path d="M 540.78 410 Q 740 37 789 37 Q 838 37 1104.88 37" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1112.88 37 L 1104.88 41 L 1104.88 33 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 59px; margin-left: 728px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">revote consumes P1</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 205 354.11 Q 303 324 405.88 324.21" fill="none" stroke="#333333" stroke-miterlimit="10" stroke-dasharray="2 3" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 413.88 324.23 L 405.87 328.21 L 405.89 320.21 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 324px; margin-left: 307px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; background-color: #E8E8E88D; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; background-color: light-dark(#E8E8E88D, #2a2a2a8D); white-space: nowrap; ">after consumption</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="17"><g transform="translate(0.5,0.5)"><path d="M 564.88 483 Q 740 632 789 632 Q 838 632 863 632" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="18"><g transform="translate(0.5,0.5)"><path d="M 642 447.23 Q 642 447.23 1032 447.56" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="19"><g transform="translate(0.5,0.5)"><path d="M 1326 398.23 Q 1326 398.23 1623.88 398.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1631.88 398.23 L 1623.88 402.23 L 1623.88 394.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/src/architecture-delta.drawio

@@ -0,0 +1,117 @@

+<mxfile host="Electron"> + <diagram id="S4F1yJwrE4aiwejdvWKP" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="ElGamal ballots&#xa;(BabyJubjub, Shor-breakable)" mermaidId="n:a1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ElGamal ballots&#xa;(BabyJubjub, Shor-breakable)" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="294" x="105" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Shamir shares + PRF masks&#xa;(Goldilocks field)" mermaidId="n:b1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Shamir shares + PRF masks&#xa;(Goldilocks field)" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="284" x="661" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Groth16 ballot proof&#xa;(BN254, trusted setup)" mermaidId="n:a2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Groth16 ballot proof&#xa;(BN254, trusted setup)" id="4"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="244" x="130" y="131" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Plonky3 STARK&#xa;(browser WASM, transparent)" mermaidId="n:b2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Plonky3 STARK&#xa;(browser WASM, transparent)" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="295" x="655" y="131" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="DKG / council key ceremony&#xa;(shared BabyJubjub key)" mermaidId="n:a3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="DKG / council key ceremony&#xa;(shared BabyJubjub key)" id="6"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="285" x="110" y="254" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Warden ML-KEM keys&#xa;(no shared key, no ceremony)" mermaidId="n:b3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Warden ML-KEM keys&#xa;(no shared key, no ceremony)" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="300" x="653" y="254" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Threshold decryption&#xa;+ BSGS search" mermaidId="n:a4" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Threshold decryption&#xa;+ BSGS search" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="230" x="137" y="377" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="θ warden sums + Lagrange&#xa;(exact, no decryption)" mermaidId="n:b4" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="θ warden sums + Lagrange&#xa;(exact, no decryption)" id="9"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="281" x="662" y="377" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Re-encryption of stored ballots&#xa;(silent revoting)" mermaidId="n:a5" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Re-encryption of stored ballots&#xa;(silent revoting)" id="10"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="306" x="99" y="500" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Hash-chained opaque slot leaves&#xa;+ padded accumulator" mermaidId="n:b5" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Hash-chained opaque slot leaves&#xa;+ padded accumulator" id="11"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="325" x="640" y="500" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="ECDSA voter signatures" mermaidId="n:a6" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ECDSA voter signatures" id="12"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="251" x="127" y="633" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Hash-preimage proof inside the STARK&#xa;(CSP credentials: SLH-DSA)" mermaidId="n:b6" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Hash-preimage proof inside the STARK&#xa;(CSP credentials: SLH-DSA)" id="13"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="369" x="618" y="623" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Unchanged: ZisK batch program, SHA-256 state SMT,&#xa;blob DA, process registry, permissionless sequencers" mermaidId="n:k1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Unchanged: ZisK batch program, SHA-256 state SMT,&#xa;blob DA, process registry, permissionless sequencers" id="14"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="488" x="8" y="737" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a1-&gt;b1#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="15"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a2-&gt;b2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="16"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a3-&gt;b3#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="17"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a4-&gt;b4#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="18"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="9"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a5-&gt;b5#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="19"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="becomes" mermaidId="e:a6-&gt;b6#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.51;" mermaidBaseValue="becomes" id="20"> + <mxCell edge="1" parent="1" source="12" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.51;" target="13"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/architecture-delta.mmd

@@ -0,0 +1,11 @@

+flowchart LR + classDef v2 fill:#f8cecc,stroke:#b85450; + classDef v3 fill:#d5e8d4,stroke:#82b366; + classDef keep fill:#dae8fc,stroke:#6c8ebf; + a1["ElGamal ballots<br/>(BabyJubjub, Shor-breakable)"]:::v2 -->|becomes| b1["Shamir shares + PRF masks<br/>(Goldilocks field)"]:::v3 + a2["Groth16 ballot proof<br/>(BN254, trusted setup)"]:::v2 -->|becomes| b2["Plonky3 STARK<br/>(browser WASM, transparent)"]:::v3 + a3["DKG / council key ceremony<br/>(shared BabyJubjub key)"]:::v2 -->|becomes| b3["Warden ML-KEM keys<br/>(no shared key, no ceremony)"]:::v3 + a4["Threshold decryption<br/>+ BSGS search"]:::v2 -->|becomes| b4["θ warden sums + Lagrange<br/>(exact, no decryption)"]:::v3 + a5["Re-encryption of stored ballots<br/>(silent revoting)"]:::v2 -->|becomes| b5["Hash-chained opaque slot leaves<br/>+ padded accumulator"]:::v3 + a6["ECDSA voter signatures"]:::v2 -->|becomes| b6["Hash-preimage proof inside the STARK<br/>(CSP credentials: SLH-DSA)"]:::v3 + k1["Unchanged: ZisK batch program, SHA-256 state SMT,<br/>blob DA, process registry, permissionless sequencers"]:::keep
A v3-pq/figures/src/ballot-package.drawio

@@ -0,0 +1,218 @@

+<mxfile host="Electron"> + <diagram id="0anw3apj5oU_0jCrlaHl" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="ballot fields b1..b16&#xa;(private)" mermaidId="n:B" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ballot fields b1..b16&#xa;(private)" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="219" x="329" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Shamir split per field:&#xa;random poly, deg θ-1, f(0)=b" mermaidId="n:SH" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Shamir split per field:&#xa;random poly, deg θ-1, f(0)=b" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="294" x="649" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="shares s[i][f]&#xa;one row per warden (private)" mermaidId="n:S" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="shares s[i][f]&#xa;one row per warden (private)" id="4"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="294" x="993" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="warden ML-KEM pks&#xa;(public, per epoch)" mermaidId="n:PK" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="warden ML-KEM pks&#xa;(public, per epoch)" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="220" x="8" y="210" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="ML-KEM encaps, one per warden&#xa;(fresh randomness each)" mermaidId="n:KEM" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ML-KEM encaps, one per warden&#xa;(fresh randomness each)" id="6"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="321" x="278" y="210" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="ciphertexts ct_1..ct_v (public)" mermaidId="n:CT" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ciphertexts ct_1..ct_v (public)" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="297" x="1733" y="281" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="pad keys K_1..K_v (private)" mermaidId="n:K" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="pad keys K_1..K_v (private)" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="278" x="657" y="167" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="pads = PRF(K_i, ctx, f)" mermaidId="n:PRF" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="pads = PRF(K_i, ctx, f)" id="9"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="238" x="1021" y="198" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="e[i][f] = s[i][f] + pad (mod p)" mermaidId="n:ADD" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="e[i][f] = s[i][f] + pad (mod p)" id="10"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="294" x="1352" y="157" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="masked shares E (public)" mermaidId="n:E" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="masked shares E (public)" id="11"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="261" x="1751" y="157" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="h_i = Poseidon2(s_i row, K_i, ctx)" mermaidId="n:HH" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="h_i = Poseidon2(s_i row, K_i, ctx)" id="12"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="323" x="1337" y="53" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="pad commitments h_1..h_v (public)" mermaidId="n:HC" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="pad commitments h_1..h_v (public)" id="13"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="343" x="1710" y="53" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="package:&#xa;voteID, E, cts, h, pkgCommit" mermaidId="n:PKG" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="package:&#xa;voteID, E, cts, h, pkgCommit" id="14"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="289" x="2103" y="148" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="ballot STARK proves:&#xa;ballot valid per ballotMode ·&#xa;shares lie on one polynomial ·&#xa;masks match h ·&#xa;voteID + auth (H(sk) in census)" mermaidId="n:STARK" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ballot STARK proves:&#xa;ballot valid per ballotMode ·&#xa;shares lie on one polynomial ·&#xa;masks match h ·&#xa;voteID + auth (H(sk) in census)" id="15"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="131" width="312" x="2442" y="119" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:B-&gt;SH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="16"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:SH-&gt;S#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="17"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="4"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:PK-&gt;KEM#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" mermaidBaseValue="" id="18"> + <mxCell edge="1" parent="1" source="5" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:KEM-&gt;CT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.84;exitY=1;entryX=0;entryY=0.5;" mermaidBaseValue="" id="19"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.84;exitY=1;entryX=0;entryY=0.5;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="624" y="308" /> + <mxPoint x="796" y="308" /> + <mxPoint x="968" y="308" /> + <mxPoint x="1140" y="308" /> + <mxPoint x="1312" y="308" /> + <mxPoint x="1499" y="308" /> + <mxPoint x="1685" y="308" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:KEM-&gt;K#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.91;exitY=0;entryX=0;entryY=0.5;" mermaidBaseValue="" id="20"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.91;exitY=0;entryX=0;entryY=0.5;" target="8"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="624" y="194" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:K-&gt;PRF#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.96;entryX=0;entryY=0.5;" mermaidBaseValue="" id="21"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.96;entryX=0;entryY=0.5;" target="9"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="968" y="225" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:S-&gt;ADD#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.91;exitY=1;entryX=0.3;entryY=0;" mermaidBaseValue="" id="22"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.91;exitY=1;entryX=0.3;entryY=0;" target="10"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1312" y="97" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:PRF-&gt;ADD#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.08;entryY=1;" mermaidBaseValue="" id="23"> + <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.08;entryY=1;" target="10"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1312" y="225" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:ADD-&gt;E#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" mermaidBaseValue="" id="24"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:S-&gt;HH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.38;entryX=0.16;entryY=0;" mermaidBaseValue="" id="25"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.38;entryX=0.16;entryY=0;" target="12"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1312" y="35" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:K-&gt;HH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.82;exitY=0;entryX=0.25;entryY=1;" mermaidBaseValue="" id="26"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.82;exitY=0;entryX=0.25;entryY=1;" target="12"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="968" y="142" /> + <mxPoint x="1140" y="142" /> + <mxPoint x="1312" y="142" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:HH-&gt;HC#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" mermaidBaseValue="" id="27"> + <mxCell edge="1" parent="1" source="12" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" target="13"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:E-&gt;PKG#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" mermaidBaseValue="" id="28"> + <mxCell edge="1" parent="1" source="11" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" target="14"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:CT-&gt;PKG#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.33;entryY=1;" mermaidBaseValue="" id="29"> + <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.33;entryY=1;" target="14"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="2078" y="308" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:HC-&gt;PKG#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.29;entryY=0;" mermaidBaseValue="" id="30"> + <mxCell edge="1" parent="1" source="13" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.29;entryY=0;" target="14"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="2078" y="80" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:PKG-&gt;STARK#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" mermaidBaseValue="" id="31"> + <mxCell edge="1" parent="1" source="14" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" target="15"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/ballot-package.mmd

@@ -0,0 +1,20 @@

+flowchart LR + classDef priv fill:#f8cecc,stroke:#b85450; + classDef pub fill:#d5e8d4,stroke:#82b366; + classDef op fill:#dae8fc,stroke:#6c8ebf; + B["ballot fields b1..b16<br/>(private)"]:::priv --> SH["Shamir split per field:<br/>random poly, deg θ-1, f(0)=b"]:::op + SH --> S["shares s[i][f]<br/>one row per warden (private)"]:::priv + PK["warden ML-KEM pks<br/>(public, per epoch)"]:::pub --> KEM["ML-KEM encaps, one per warden<br/>(fresh randomness each)"]:::op + KEM --> CT["ciphertexts ct_1..ct_v (public)"]:::pub + KEM --> K["pad keys K_1..K_v (private)"]:::priv + K --> PRF["pads = PRF(K_i, ctx, f)"]:::op + S --> ADD["e[i][f] = s[i][f] + pad (mod p)"]:::op + PRF --> ADD + ADD --> E["masked shares E (public)"]:::pub + S --> HH["h_i = Poseidon2(s_i row, K_i, ctx)"]:::op + K --> HH + HH --> HC["pad commitments h_1..h_v (public)"]:::pub + E --> PKG["package:<br/>voteID, E, cts, h, pkgCommit"]:::pub + CT --> PKG + HC --> PKG + PKG --> STARK["ballot STARK proves:<br/>ballot valid per ballotMode ·<br/>shares lie on one polynomial ·<br/>masks match h ·<br/>voteID + auth (H(sk) in census)"]:::op
A v3-pq/figures/src/batch-flow.drawio

@@ -0,0 +1,158 @@

+<mxfile host="Electron"> + <diagram id="hcGx8wlAMvwiPEnMBVpE" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="n packages&#xa;+ ballot STARKs" mermaidId="n:I1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="n packages&#xa;+ ballot STARKs" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="177" x="13" y="132" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="verify n ballot STARKs in-guest&#xa;(Poseidon2 precompile,&#xa;~1M steps each)" mermaidId="n:V" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="verify n ballot STARKs in-guest&#xa;(Poseidon2 precompile,&#xa;~1M steps each)" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="280" x="260" y="122" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="census proofs" mermaidId="n:I2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="census proofs" id="4"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="160" x="320" y="18" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="eligibility + binding checks&#xa;(hybrid: + ECDSA over pkgDigest)" mermaidId="n:CE" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="eligibility + binding checks&#xa;(hybrid: + ECDSA over pkgDigest)" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="302" x="605" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="state witnesses" mermaidId="n:I3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="state witnesses" id="6"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="169" x="17" y="294" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="state transitions:&#xa;insert voteID→pkgDigest ·&#xa;insert nullifiers (one-live-chain) ·&#xa;slot writes + refresh re-chaining" mermaidId="n:ST" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="state transitions:&#xa;insert voteID→pkgDigest ·&#xa;insert nullifiers (one-live-chain) ·&#xa;slot writes + refresh re-chaining" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="287" x="256" y="265" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="secret batch seed" mermaidId="n:I4" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="secret batch seed" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="186" x="8" y="522" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="accumulator update:&#xa;A&#39; = A + ΣE_new − ΣE_revoked + B&#xa;(B = fresh uniform batch pad)" mermaidId="n:ACC" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="accumulator update:&#xa;A&#39; = A + ΣE_new − ΣE_revoked + B&#xa;(B = fresh uniform batch pad)" id="9"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="311" x="244" y="427" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="warden payload:&#xa;AEAD(B, revoked list) — key&#xa;θ-shared via ν in-guest encaps" mermaidId="n:WP" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="warden payload:&#xa;AEAD(B, revoked list) — key&#xa;θ-shared via ν in-guest encaps" id="10"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="278" x="261" y="570" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="blob layout v3&#xa;(packages, leaves, nullifiers,&#xa;A&#39;, payload)" mermaidId="n:BL" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="blob layout v3&#xa;(packages, leaves, nullifiers,&#xa;A&#39;, payload)" id="11"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="261" x="626" y="350" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="public outputs:&#xa;ok, failMask, roots,&#xa;counters, censusRoot, blobsDigest" mermaidId="n:OUT" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="public outputs:&#xa;ok, failMask, roots,&#xa;counters, censusRoot, blobsDigest" id="12"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="307" x="957" y="212" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:I1-&gt;V#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" mermaidBaseValue="" id="13"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:I2-&gt;CE#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.51;" mermaidBaseValue="" id="14"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.51;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:I3-&gt;ST#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" mermaidBaseValue="" id="15"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:I4-&gt;ACC#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.73;exitY=0;entryX=0;entryY=0.49;" mermaidBaseValue="" id="16"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.73;exitY=0;entryX=0;entryY=0.49;" target="9"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="219" y="473" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:I4-&gt;WP#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.76;exitY=1;entryX=0;entryY=0.49;" mermaidBaseValue="" id="17"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.76;exitY=1;entryX=0;entryY=0.49;" target="10"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="219" y="616" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:V-&gt;BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.36;entryY=0;" mermaidBaseValue="" id="18"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.36;entryY=0;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="580" y="168" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:ST-&gt;BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.09;entryY=0;" mermaidBaseValue="" id="19"> + <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.09;entryY=0;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="580" y="321" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:ACC-&gt;BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.09;entryY=1;" mermaidBaseValue="" id="20"> + <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.09;entryY=1;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="580" y="473" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:WP-&gt;BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.36;entryY=1;" mermaidBaseValue="" id="21"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.36;entryY=1;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="580" y="616" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:CE-&gt;OUT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.37;entryY=0;" mermaidBaseValue="" id="22"> + <mxCell edge="1" parent="1" source="5" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.37;entryY=0;" target="12"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="932" y="45" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:BL-&gt;OUT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.3;entryY=1;" mermaidBaseValue="" id="23"> + <mxCell edge="1" parent="1" source="11" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.3;entryY=1;" target="12"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="932" y="397" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/batch-flow.mmd

@@ -0,0 +1,15 @@

+flowchart LR + classDef in fill:#f8cecc,stroke:#b85450; + classDef op fill:#dae8fc,stroke:#6c8ebf; + classDef out fill:#d5e8d4,stroke:#82b366; + I1["n packages<br/>+ ballot STARKs"]:::in --> V["verify n ballot STARKs in-guest<br/>(Poseidon2 precompile,<br/>~1M steps each)"]:::op + I2["census proofs"]:::in --> CE["eligibility + binding checks<br/>(hybrid: + ECDSA over pkgDigest)"]:::op + I3["state witnesses"]:::in --> ST["state transitions:<br/>insert voteID→pkgDigest ·<br/>insert nullifiers (one-live-chain) ·<br/>slot writes + refresh re-chaining"]:::op + I4["secret batch seed"]:::in --> ACC["accumulator update:<br/>A' = A + ΣE_new − ΣE_revoked + B<br/>(B = fresh uniform batch pad)"]:::op + I4 --> WP["warden payload:<br/>AEAD(B, revoked list) — key<br/>θ-shared via ν in-guest encaps"]:::op + V --> BL["blob layout v3<br/>(packages, leaves, nullifiers,<br/>A', payload)"]:::op + ST --> BL + ACC --> BL + WP --> BL + CE --> OUT["public outputs:<br/>ok, failMask, roots,<br/>counters, censusRoot, blobsDigest"]:::out + BL --> OUT
A v3-pq/figures/src/revote-lifecycle.drawio

@@ -0,0 +1,122 @@

+<mxfile host="Electron"> + <diagram id="4kDnWLCIUVykxXE71Rh7" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="checked in the voter&#39;s ballot STARK" mermaidId="n:STARK" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="checked in the voter&#39;s ballot STARK" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="138" width="695" x="861" y="561" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="knows opening of prev package&#xa;(same slot, same sk)" mermaidId="n:S1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="knows opening of prev package&#xa;(same slot, same sk)" id="3"> + <mxCell parent="2" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="285" x="35" y="45" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="NULL = PRF(sk, prevPkgDigest)" mermaidId="n:S2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="NULL = PRF(sk, prevPkgDigest)" id="4"> + <mxCell parent="2" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="290" x="370" y="55" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="checked by the batch program" mermaidId="n:BATCH" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="checked by the batch program" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="286" width="357" x="1030" y="314" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="prev admitted:&#xa;voteID → pkgDigest inclusion&#xa;proof under current root" mermaidId="n:B1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="prev admitted:&#xa;voteID → pkgDigest inclusion&#xa;proof under current root" id="6"> + <mxCell parent="5" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="269" x="44" y="84" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="NULL not in nullifier tree&#xa;→ insert (once ever)" mermaidId="n:B2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="NULL not in nullifier tree&#xa;→ insert (once ever)" id="7"> + <mxCell parent="5" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="231" x="63" y="45" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="empty slot → first package only;&#xa;occupied slot → must consume&#xa;exactly one predecessor" mermaidId="n:B3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="empty slot → first package only;&#xa;occupied slot → must consume&#xa;exactly one predecessor" id="8"> + <mxCell parent="5" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="287" x="35" y="168" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="P0 — first package&#xa;prevPkgDigest = 0" mermaidId="n:P0" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="P0 — first package&#xa;prevPkgDigest = 0" id="9"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="195" x="8" y="347" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="P1 — live package&#xa;references pkgDigest(P0)" mermaidId="n:P1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="P1 — live package&#xa;references pkgDigest(P0)" id="10"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="241" x="399" y="408" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="P2 — live package" mermaidId="n:P2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="P2 — live package" id="11"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="193" x="1112" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="P0 consumed (dead):&#xa;its E removed from A" mermaidId="n:D0" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="P0 consumed (dead):&#xa;its E removed from A" id="12"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="213" x="413" y="285" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="nullifier tree (depth-256 SMT)&#xa;public, unlinkable keys" mermaidId="n:N" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="nullifier tree (depth-256 SMT)&#xa;public, unlinkable keys" id="13"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="73" width="268" x="1631" y="359" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="revote consumes P0" mermaidId="e:P0-&gt;P1#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.92;entryX=0;entryY=0.51;" mermaidBaseValue="revote consumes P0" id="14"> + <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.92;entryX=0;entryY=0.51;" target="10"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="301" y="445" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="revote consumes P1" mermaidId="e:P1-&gt;P2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=0.58;exitY=0;entryX=0;entryY=0.5;" mermaidBaseValue="revote consumes P1" id="15"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=0.58;exitY=0;entryX=0;entryY=0.5;" target="11"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="738" y="35" /> + <mxPoint x="836" y="35" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="after consumption" mermaidId="e:P0-&gt;D0#0" mermaidBaseStyle="curved=1;dashed=1;dashPattern=2 3;fixDash=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.07;entryX=0;entryY=0.51;" mermaidBaseValue="after consumption" id="16"> + <mxCell edge="1" parent="1" source="9" style="curved=1;dashed=1;dashPattern=2 3;fixDash=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.07;entryX=0;entryY=0.51;" target="12"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="301" y="322" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:P1-&gt;STARK#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=none;curved=1;strokeColor=light-dark(#333333,#cccccc);exitX=0.68;exitY=1;entryX=0;entryY=0.5;" mermaidBaseValue="" id="17"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=0.68;exitY=1;entryX=0;entryY=0.5;" target="2"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="738" y="630" /> + <mxPoint x="836" y="630" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:P1-&gt;BATCH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=none;curved=1;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.46;" mermaidBaseValue="" id="18"> + <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.46;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:B2-&gt;N#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="19"> + <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="13"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/revote-lifecycle.mmd

@@ -0,0 +1,21 @@

+flowchart LR + classDef pkg fill:#d5e8d4,stroke:#82b366; + classDef dead fill:#f8cecc,stroke:#b85450; + classDef chk fill:#dae8fc,stroke:#6c8ebf; + classDef st fill:#fff2cc,stroke:#d6b656; + P0["P0 — first package<br/>prevPkgDigest = 0"]:::pkg -->|"revote consumes P0"| P1["P1 — live package<br/>references pkgDigest(P0)"]:::pkg + P1 -->|"revote consumes P1"| P2["P2 — live package"]:::pkg + P0 -.->|"after consumption"| D0["P0 consumed (dead):<br/>its E removed from A"]:::dead + subgraph STARK["checked in the voter's ballot STARK"] + S1["knows opening of prev package<br/>(same slot, same sk)"]:::chk + S2["NULL = PRF(sk, prevPkgDigest)"]:::chk + end + subgraph BATCH["checked by the batch program"] + B1["prev admitted:<br/>voteID → pkgDigest inclusion<br/>proof under current root"]:::chk + B2["NULL not in nullifier tree<br/>→ insert (once ever)"]:::chk + B3["empty slot → first package only;<br/>occupied slot → must consume<br/>exactly one predecessor"]:::chk + end + P1 --- STARK + P1 --- BATCH + N["nullifier tree (depth-256 SMT)<br/>public, unlinkable keys"]:::st + B2 --> N
A v3-pq/figures/src/state-tree-v3.drawio

@@ -0,0 +1,111 @@

+<mxfile host="Electron"> + <diagram id="E1SXA2W_QXeXYNNiDxB8" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="stateRoot — SHA-256 SMT, depth 64 (as v2)" mermaidId="n:R" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="stateRoot — SHA-256 SMT, depth 64 (as v2)" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="414" x="669" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="config namespace 0x0..0xF" mermaidId="n:C" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="config namespace 0x0..0xF" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="280" x="193" y="141" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="ballot slot namespace&#xa;opaque chained leaves:&#xa;vote/overwrite: H(pkgDigest, s_batch)&#xa;refresh: H(previous leaf, s_batch)" mermaidId="n:SL" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="ballot slot namespace&#xa;opaque chained leaves:&#xa;vote/overwrite: H(pkgDigest, s_batch)&#xa;refresh: H(previous leaf, s_batch)" id="4"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="364" x="523" y="112" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="voteID namespace&#xa;voteID maps to pkgDigest&#xa;(v2 stored 0 — v3 authenticates&#xa;the full admitted package)" mermaidId="n:V" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="voteID namespace&#xa;voteID maps to pkgDigest&#xa;(v2 stored 0 — v3 authenticates&#xa;the full admitted package)" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="318" x="937" y="112" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="0x3: H(wardenSet)&#xa;ν, θ, epoch, ML-KEM pk hashes&#xa;(replaces the election key)" mermaidId="n:C3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="0x3: H(wardenSet)&#xa;ν, θ, epoch, ML-KEM pk hashes&#xa;(replaces the election key)" id="6"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="307" x="8" y="274" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="0x4: H(A)&#xa;accumulator digest&#xa;(full A published per batch)" mermaidId="n:C4" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="0x4: H(A)&#xa;accumulator digest&#xa;(full A published per batch)" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="278" x="365" y="274" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="0x5: nullifier tree root" mermaidId="n:C5" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="0x5: nullifier tree root" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="235" x="693" y="294" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="nullifier SMT — SHA-256, depth 256&#xa;key = PRF(sk_voter, pkgDigest)&#xa;insert-once = one-live-chain" mermaidId="n:N" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="nullifier SMT — SHA-256, depth 256&#xa;key = PRF(sk_voter, pkgDigest)&#xa;insert-once = one-live-chain" id="9"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="347" x="637" y="417" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:R-&gt;C#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0;exitY=0.87;entryX=0.5;entryY=0;" mermaidBaseValue="" id="10"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0;exitY=0.87;entryX=0.5;entryY=0;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="333" y="87" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:R-&gt;SL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.29;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="11"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.29;exitY=1;entryX=0.5;entryY=0;" target="4"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="705" y="87" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:R-&gt;V#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.78;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="12"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.78;exitY=1;entryX=0.5;entryY=0;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1096" y="87" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:C-&gt;C3#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.3;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="13"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.3;exitY=1;entryX=0.5;entryY=0;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="162" y="249" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:C-&gt;C4#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.7;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="14"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.7;exitY=1;entryX=0.5;entryY=0;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="504" y="249" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:C-&gt;C5#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.94;entryX=0.5;entryY=0;" mermaidBaseValue="" id="15"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.94;entryX=0.5;entryY=0;" target="8"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="811" y="249" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:C5-&gt;N#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="16"> + <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" target="9"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/state-tree-v3.mmd

@@ -0,0 +1,13 @@

+flowchart TD + classDef root fill:#fff2cc,stroke:#d6b656; + classDef cfg fill:#dae8fc,stroke:#6c8ebf; + classDef ns fill:#d5e8d4,stroke:#82b366; + classDef nul fill:#ffe6cc,stroke:#d79b00; + R["stateRoot — SHA-256 SMT, depth 64 (as v2)"]:::root + R --> C["config namespace 0x0..0xF"]:::cfg + R --> SL["ballot slot namespace<br/>opaque chained leaves:<br/>vote/overwrite: H(pkgDigest, s_batch)<br/>refresh: H(previous leaf, s_batch)"]:::ns + R --> V["voteID namespace<br/>voteID maps to pkgDigest<br/>(v2 stored 0 — v3 authenticates<br/>the full admitted package)"]:::ns + C --> C3["0x3: H(wardenSet)<br/>ν, θ, epoch, ML-KEM pk hashes<br/>(replaces the election key)"]:::cfg + C --> C4["0x4: H(A)<br/>accumulator digest<br/>(full A published per batch)"]:::cfg + C --> C5["0x5: nullifier tree root"]:::cfg + C5 --> N["nullifier SMT — SHA-256, depth 256<br/>key = PRF(sk_voter, pkgDigest)<br/>insert-once = one-live-chain"]:::nul
A v3-pq/figures/src/tally-algebra.drawio

@@ -0,0 +1,109 @@

+<mxfile host="Electron"> + <diagram id="xNBtwIUqAlUy2ogS_Odl" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="public accumulator A[i][f] =&#xa;sum of masked shares of all admitted,&#xa;not-yet-consumed packages + batch pads&#xa;(excluded set X handled at tally)" mermaidId="n:A" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="public accumulator A[i][f] =&#xa;sum of masked shares of all admitted,&#xa;not-yet-consumed packages + batch pads&#xa;(excluded set X handled at tally)" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="358" x="308" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="warden 1: decapsulate its K&#39;s,&#xa;check h commitments, subtract pads&#xa;publish blinded S_1 + ZisK proof" mermaidId="n:W1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="warden 1: decapsulate its K&#39;s,&#xa;check h commitments, subtract pads&#xa;publish blinded S_1 + ZisK proof" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="320" x="8" y="170" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="warden 2: S_2 + proof" mermaidId="n:W2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="warden 2: S_2 + proof" id="4"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="218" x="378" y="190" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="... any θ of the ν wardens" mermaidId="n:W3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="... any θ of the ν wardens" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="239" x="646" y="190" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="θ points of ONE polynomial F + blinding G,&#xa;G(0)=0 so the result is unchanged;&#xa;F = sum of active voters polynomials" mermaidId="n:P" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="θ points of ONE polynomial F + blinding G,&#xa;G(0)=0 so the result is unchanged;&#xa;F = sum of active voters polynomials" id="6"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="363" x="306" y="313" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="Lagrange interpolation at x = 0" mermaidId="n:L" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="Lagrange interpolation at x = 0" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="54" width="277" x="349" y="456" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="F(0) = sum of active ballots = THE TALLY&#xa;exact field arithmetic: no decryption,&#xa;no noise, no discrete-log search" mermaidId="n:T" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="F(0) = sum of active ballots = THE TALLY&#xa;exact field arithmetic: no decryption,&#xa;no noise, no discrete-log search" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="353" x="311" y="560" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:A-&gt;W1#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0;exitY=0.9;entryX=0.5;entryY=0;" mermaidBaseValue="" id="9"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0;exitY=0.9;entryX=0.5;entryY=0;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="168" y="145" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:A-&gt;W2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="10"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" target="4"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:A-&gt;W3#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.96;entryX=0.5;entryY=0;" mermaidBaseValue="" id="11"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.96;entryX=0.5;entryY=0;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="766" y="145" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:W1-&gt;P#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0;entryY=0.06;" mermaidBaseValue="" id="12"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0;entryY=0.06;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="168" y="288" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:W2-&gt;P#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="13"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:W3-&gt;P#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=1;entryY=0;" mermaidBaseValue="" id="14"> + <mxCell edge="1" parent="1" source="5" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=1;entryY=0;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="766" y="288" /> + </Array> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:P-&gt;L#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="15"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:L-&gt;T#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" mermaidBaseValue="" id="16"> + <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.5;exitY=1;entryX=0.5;entryY=0;" target="8"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/tally-algebra.mmd

@@ -0,0 +1,12 @@

+flowchart TD + classDef pub fill:#d5e8d4,stroke:#82b366; + classDef op fill:#dae8fc,stroke:#6c8ebf; + A["public accumulator A[i][f] =<br/>sum of masked shares of all admitted,<br/>not-yet-consumed packages + batch pads<br/>(excluded set X handled at tally)"]:::pub + A --> W1["warden 1: decapsulate its K's,<br/>check h commitments, subtract pads<br/>publish blinded S_1 + ZisK proof"]:::op + A --> W2["warden 2: S_2 + proof"]:::op + A --> W3["... any θ of the ν wardens"]:::op + W1 --> P["θ points of ONE polynomial F + blinding G,<br/>G(0)=0 so the result is unchanged;<br/>F = sum of active voters polynomials"]:::pub + W2 --> P + W3 --> P + P --> L["Lagrange interpolation at x = 0"]:::op + L --> T["F(0) = sum of active ballots = THE TALLY<br/>exact field arithmetic: no decryption,<br/>no noise, no discrete-log search"]:::pub
A v3-pq/figures/src/timeline.drawio

@@ -0,0 +1,87 @@

+<mxfile host="Electron"> + <diagram id="CivAd8G_7ypzeduTa5ZY" name="pageWithNumber"> + <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> + <root> + <mxCell id="0" /> + <mxCell id="1" parent="0" /> + <UserObject label="VOTING&#xa;casting + batch settlement&#xa;(unchanged from v2)" mermaidId="n:V" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="VOTING&#xa;casting + batch settlement&#xa;(unchanged from v2)" id="2"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="279" x="8" y="18" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="GRACE WINDOW&#xa;pending batches settle&#xa;(unchanged from v2)" mermaidId="n:G" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="GRACE WINDOW&#xa;pending batches settle&#xa;(unchanged from v2)" id="3"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="244" x="337" y="18" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="accumulator frozen&#xa;as A_cast" mermaidId="n:F1" mermaidBaseStyle="html=1;rounded=1;whiteSpace=wrap;arcSize=50;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="accumulator frozen&#xa;as A_cast" id="4"> + <mxCell parent="1" style="html=1;rounded=1;whiteSpace=wrap;arcSize=50;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="63" width="192" x="631" y="33" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="COMPLAINT WINDOW (new)&#xa;wardens scan the blob archive,&#xa;file proven complaints against&#xa;malformed packages" mermaidId="n:CW" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="COMPLAINT WINDOW (new)&#xa;wardens scan the blob archive,&#xa;file proven complaints against&#xa;malformed packages" id="5"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="310" x="873" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="exclusion set X&#xa;frozen on-chain" mermaidId="n:F2" mermaidBaseStyle="html=1;rounded=1;whiteSpace=wrap;arcSize=50;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="exclusion set X&#xa;frozen on-chain" id="6"> + <mxCell parent="1" style="html=1;rounded=1;whiteSpace=wrap;arcSize=50;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="63" width="161" x="1233" y="33" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="TALLY CEREMONY (new)&#xa;θ wardens: reconstruct batch-pad keys&#xa;+ revoked set R, run zero-blinding,&#xa;publish proven sum-shares S_i" mermaidId="n:TC" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="TALLY CEREMONY (new)&#xa;θ wardens: reconstruct batch-pad keys&#xa;+ revoked set R, run zero-blinding,&#xa;publish proven sum-shares S_i" id="7"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="112" width="372" x="1444" y="8" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="RESULTS&#xa;anyone interpolates θ sums,&#xa;registry verifies proofs + records" mermaidId="n:RES" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="RESULTS&#xa;anyone interpolates θ sums,&#xa;registry verifies proofs + records" id="8"> + <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1"> + <mxGeometry height="93" width="323" x="1866" y="18" as="geometry" /> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:V-&gt;G#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" mermaidBaseValue="" id="9"> + <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" target="3"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:G-&gt;F1#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" mermaidBaseValue="" id="10"> + <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" target="4"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:F1-&gt;CW#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" mermaidBaseValue="" id="11"> + <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" target="5"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:CW-&gt;F2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" mermaidBaseValue="" id="12"> + <mxCell edge="1" parent="1" source="5" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" target="6"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:F2-&gt;TC#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" mermaidBaseValue="" id="13"> + <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.5;" target="7"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + <UserObject label="" mermaidId="e:TC-&gt;RES#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" mermaidBaseValue="" id="14"> + <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" target="8"> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + </mxGeometry> + </mxCell> + </UserObject> + </root> + </mxGraphModel> + </diagram> +</mxfile>
A v3-pq/figures/src/timeline.mmd

@@ -0,0 +1,10 @@

+flowchart LR + classDef ph fill:#dae8fc,stroke:#6c8ebf; + classDef ev fill:#fff2cc,stroke:#d6b656; + classDef fin fill:#d5e8d4,stroke:#82b366; + V["VOTING<br/>casting + batch settlement<br/>(unchanged from v2)"]:::ph --> G["GRACE WINDOW<br/>pending batches settle<br/>(unchanged from v2)"]:::ph + G --> F1(["accumulator frozen<br/>as A_cast"]):::ev + F1 --> CW["COMPLAINT WINDOW (new)<br/>wardens scan the blob archive,<br/>file proven complaints against<br/>malformed packages"]:::ph + CW --> F2(["exclusion set X<br/>frozen on-chain"]):::ev + F2 --> TC["TALLY CEREMONY (new)<br/>θ wardens: reconstruct batch-pad keys<br/>+ revoked set R, run zero-blinding,<br/>publish proven sum-shares S_i"]:::ph + TC --> RES["RESULTS<br/>anyone interpolates θ sums,<br/>registry verifies proofs + records"]:::fin
A v3-pq/figures/state-tree-v3.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1279px" height="534px" viewBox="0 0 1279 534"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="671" y="10" width="414" height="54" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 412px; height: 1px; padding-top: 37px; margin-left: 672px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">stateRoot — SHA-256 SMT, depth 64 (as v2)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="195" y="143" width="280" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 278px; height: 1px; padding-top: 170px; margin-left: 196px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">config namespace 0x0..0xF</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="525" y="114" width="364" height="112" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 362px; height: 1px; padding-top: 170px; margin-left: 526px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">ballot slot namespace<br />opaque chained leaves:<br />vote/overwrite: H(pkgDigest, s_batch)<br />refresh: H(previous leaf, s_batch)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="939" y="114" width="318" height="112" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 316px; height: 1px; padding-top: 170px; margin-left: 940px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">voteID namespace<br />voteID maps to pkgDigest<br />(v2 stored 0 — v3 authenticates<br />the full admitted package)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="10" y="276" width="307" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 305px; height: 1px; padding-top: 323px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">0x3: H(wardenSet)<br />ν, θ, epoch, ML-KEM pk hashes<br />(replaces the election key)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="367" y="276" width="278" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 276px; height: 1px; padding-top: 323px; margin-left: 368px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">0x4: H(A)<br />accumulator digest<br />(full A published per batch)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="695" y="296" width="235" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 233px; height: 1px; padding-top: 323px; margin-left: 696px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">0x5: nullifier tree root</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><rect x="639" y="419" width="347" height="93" fill="#ffe6cc" stroke="#d79b00" pointer-events="all" style="fill: light-dark(rgb(255, 230, 204), rgb(54, 33, 10)); stroke: light-dark(rgb(215, 155, 0), rgb(153, 101, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 345px; height: 1px; padding-top: 466px; margin-left: 640px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">nullifier SMT — SHA-256, depth 256<br />key = PRF(sk_voter, pkgDigest)<br />insert-once = one-live-chain</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><path d="M 671 56.98 Q 335 89 335 133.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 335 141.88 L 331 133.88 L 339 133.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><path d="M 791.06 64 Q 707 89 707 104.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 707 112.88 L 703 104.88 L 711 104.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><path d="M 993.92 64 Q 1098 89 1098 104.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1098 112.88 L 1094 104.88 L 1102 104.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><path d="M 279 197 Q 164 251 163.68 266.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 163.52 274.88 L 159.68 266.8 L 167.68 266.96 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><path d="M 391 197 Q 506 251 506 266.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 506 274.88 L 502 266.88 L 510 266.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><path d="M 475 193.76 Q 813 251 812.6 286.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 812.51 294.88 L 808.6 286.84 L 816.6 286.93 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 812.5 350 Q 812.5 350 812.5 409.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 812.5 417.88 L 808.5 409.88 L 816.5 409.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/tally-algebra.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="909px" height="677px" viewBox="0 0 909 677"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="310" y="10" width="358" height="112" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 356px; height: 1px; padding-top: 66px; margin-left: 311px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">public accumulator A[i][f] =<br />sum of masked shares of all admitted,<br />not-yet-consumed packages + batch pads<br />(excluded set X handled at tally)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="10" y="172" width="320" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 318px; height: 1px; padding-top: 219px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">warden 1: decapsulate its K's,<br />check h commitments, subtract pads<br />publish blinded S_1 + ZisK proof</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="380" y="192" width="218" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 216px; height: 1px; padding-top: 219px; margin-left: 381px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">warden 2: S_2 + proof</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="648" y="192" width="239" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 237px; height: 1px; padding-top: 219px; margin-left: 649px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">... any θ of the ν wardens</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="308" y="315" width="363" height="93" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 361px; height: 1px; padding-top: 362px; margin-left: 309px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">θ points of ONE polynomial F + blinding G,<br />G(0)=0 so the result is unchanged;<br />F = sum of active voters polynomials</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="351" y="458" width="277" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 275px; height: 1px; padding-top: 485px; margin-left: 352px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">Lagrange interpolation at x = 0</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="313" y="562" width="353" height="93" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 351px; height: 1px; padding-top: 609px; margin-left: 314px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">F(0) = sum of active ballots = THE TALLY<br />exact field arithmetic: no decryption,<br />no noise, no discrete-log search</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><path d="M 310 110.8 Q 170 147 170 162.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 170 170.88 L 166 162.88 L 174 162.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><path d="M 489 122 Q 489 122 489 182.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 489 190.88 L 485 182.88 L 493 182.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><path d="M 668 117.52 Q 768 147 767.6 182.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 767.51 190.88 L 763.6 182.84 L 771.6 182.93 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><path d="M 170 265 Q 170 290 299.1 318.61" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 306.91 320.34 L 298.23 322.51 L 299.96 314.7 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><path d="M 489 246 Q 489 246 489.43 305.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 489.49 313.88 L 485.43 305.91 L 493.43 305.85 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><path d="M 767.5 246 Q 768 290 679.83 312.72" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 672.08 314.72 L 678.83 308.85 L 680.83 316.6 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="15"><g transform="translate(0.5,0.5)"><path d="M 489.5 408 Q 489.5 408 489.5 448.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 489.5 456.88 L 485.5 448.88 L 493.5 448.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="16"><g transform="translate(0.5,0.5)"><path d="M 489.5 512 Q 489.5 512 489.5 552.88" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 489.5 560.88 L 485.5 552.88 L 493.5 552.88 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/figures/timeline.svg

@@ -0,0 +1,3 @@

+<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="2213px" height="144px" viewBox="0 0 2213 144"><defs/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="2"><g transform="translate(0.5,0.5)"><rect x="10" y="20" width="279" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 277px; height: 1px; padding-top: 67px; margin-left: 11px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">VOTING<br />casting + batch settlement<br />(unchanged from v2)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="3"><g transform="translate(0.5,0.5)"><rect x="339" y="20" width="244" height="93" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 242px; height: 1px; padding-top: 67px; margin-left: 340px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">GRACE WINDOW<br />pending batches settle<br />(unchanged from v2)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="4"><g transform="translate(0.5,0.5)"><rect x="633" y="35" width="192" height="63" rx="31.5" ry="31.5" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 190px; height: 1px; padding-top: 67px; margin-left: 634px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">accumulator frozen<br />as A_cast</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="5"><g transform="translate(0.5,0.5)"><rect x="875" y="10" width="310" height="112" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 308px; height: 1px; padding-top: 66px; margin-left: 876px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">COMPLAINT WINDOW (new)<br />wardens scan the blob archive,<br />file proven complaints against<br />malformed packages</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="6"><g transform="translate(0.5,0.5)"><rect x="1235" y="35" width="161" height="63" rx="31.5" ry="31.5" fill="#fff2cc" stroke="#d6b656" pointer-events="all" style="fill: light-dark(rgb(255, 242, 204), rgb(40, 29, 0)); stroke: light-dark(rgb(214, 182, 86), rgb(109, 81, 0));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 159px; height: 1px; padding-top: 67px; margin-left: 1236px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">exclusion set X<br />frozen on-chain</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="7"><g transform="translate(0.5,0.5)"><rect x="1446" y="10" width="372" height="112" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: light-dark(rgb(218, 232, 252), rgb(29, 41, 59)); stroke: light-dark(rgb(108, 142, 191), rgb(92, 121, 163));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 370px; height: 1px; padding-top: 66px; margin-left: 1447px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">TALLY CEREMONY (new)<br />θ wardens: reconstruct batch-pad keys<br />+ revoked set R, run zero-blinding,<br />publish proven sum-shares S_i</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="8"><g transform="translate(0.5,0.5)"><rect x="1868" y="20" width="323" height="93" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: light-dark(rgb(213, 232, 212), rgb(31, 47, 30)); stroke: light-dark(rgb(130, 179, 102), rgb(68, 110, 44));"/></g><g><g><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 321px; height: 1px; padding-top: 67px; margin-left: 1869px;"><div style="box-sizing: border-box; font-size: 0; text-align: center; color: #333333; "><div style="display: inline-block; font-size: 16px; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; color: light-dark(#333333, #cccccc); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">RESULTS<br />anyone interpolates θ sums,<br />registry verifies proofs + records</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="9"><g transform="translate(0.5,0.5)"><path d="M 289 65.57 Q 289 65.57 329.88 65.57" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 337.88 65.57 L 329.88 69.57 L 329.88 61.57 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><path d="M 583 65.57 Q 583 65.57 623.88 65.82" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 631.88 65.86 L 623.86 69.82 L 623.91 61.82 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="11"><g transform="translate(0.5,0.5)"><path d="M 825 65.87 Q 825 65.87 865.88 65.98" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 873.88 66 L 865.87 69.98 L 865.89 61.98 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="12"><g transform="translate(0.5,0.5)"><path d="M 1185 66 Q 1185 66 1225.88 65.89" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1233.88 65.87 L 1225.89 69.89 L 1225.87 61.89 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="13"><g transform="translate(0.5,0.5)"><path d="M 1396 65.87 Q 1396 65.87 1436.88 65.98" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1444.88 66 L 1436.87 69.98 L 1436.89 61.98 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g><g data-cell-id="14"><g transform="translate(0.5,0.5)"><path d="M 1818 66 Q 1818 66 1858.88 65.65" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/><path d="M 1866.88 65.58 L 1858.92 69.65 L 1858.85 61.65 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: light-dark(rgb(51, 51, 51), rgb(204, 204, 204)); stroke: light-dark(rgb(51, 51, 51), rgb(204, 204, 204));"/></g></g></g></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
A v3-pq/index.html

@@ -0,0 +1,155 @@

+<!DOCTYPE html> +<html lang="en" data-color-mode="light" data-light-theme="light" data-dark-theme="light"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>DAVINCI v3-PQ — Post-Quantum Protocol Specification</title> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5.8.1/github-markdown.min.css" integrity="sha384-acjmOUKFwIvj661l8O5n72P4DhPiCxH1dSGiEOw9YjyaZ7+82SFXCGrJ9nLR+MfL" crossorigin="anonymous"> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"> + <style> + :root { + color-scheme: light; + --fgColor-default: #1f2328; + --fgColor-muted: #57606a; + --fgColor-accent: #0969da; + --bgColor-default: #ffffff; + --bgColor-muted: #f6f8fa; + --borderColor-default: #d0d7de; + } + body { + margin: 0; + background: linear-gradient(180deg, #eef2f7 0%, #f6f8fa 30%, #f6f8fa 100%); + color: #1f2328; + } + .topbar { + position: sticky; + top: 0; + z-index: 2; + display: flex; + gap: 12px; + align-items: center; + padding: 12px 16px; + border-bottom: 1px solid #d0d7de; + background: rgba(255, 255, 255, 0.95); + backdrop-filter: blur(4px); + } + .topbar a { + text-decoration: none; + border: 1px solid #d0d7de; + border-radius: 6px; + padding: 6px 10px; + color: #1f2328; + background: #f6f8fa; + font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; + } + .markdown-body { + box-sizing: border-box; + min-width: 200px; + max-width: 980px; + margin: 14px auto 24px; + padding: 30px 28px 40px; + background: #fff; + border: 1px solid #d0d7de; + border-radius: 10px; + box-shadow: 0 10px 24px rgba(31, 35, 40, 0.07); + color: #1f2328 !important; + font-size: 17px; + line-height: 1.72; + } + .markdown-body p, + .markdown-body li, + .markdown-body blockquote, + .markdown-body td, + .markdown-body th { + color: #1f2328 !important; + } + .markdown-body h1, + .markdown-body h2, + .markdown-body h3 { + color: #0f172a !important; + letter-spacing: -0.01em; + } + .markdown-body a { + color: #0969da !important; + } + .markdown-body code { + color: #0550ae; + background: #f6f8fa; + } + .markdown-body pre { + background: #f6f8fa; + border: 1px solid #d0d7de; + border-radius: 8px; + } + .markdown-body img { + max-width: 100% !important; + height: auto !important; + display: block; + margin: 1.2rem auto; + border-radius: 6px; + } + #status { + margin-left: auto; + font: 500 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; + color: #57606a; + } + @media (max-width: 767px) { + .markdown-body { + margin: 0; + border-radius: 0; + border-left: none; + border-right: none; + padding: 22px 16px 30px; + font-size: 16px; + } + } + </style> +</head> +<body> + <div class="topbar"> + <a href="../">DAVINCI v2 spec</a> + <a href="spec.md" download>Download spec.md</a> + <a href="spec.md" target="_blank" rel="noopener noreferrer">Raw markdown</a> + <span id="status">Loading…</span> + </div> + <article id="content" class="markdown-body"></article> + <script src="https://cdn.jsdelivr.net/npm/marked@15.0.12/lib/marked.umd.min.js" integrity="sha384-zCewoQXXb5Xf+2nvCjab0EbMl7FWVpJMsKyrc8M8DqxjFra4DY4XHwheVdHXa34k" crossorigin="anonymous"></script> + <script src="https://cdn.jsdelivr.net/npm/dompurify@3.1.7/dist/purify.min.js" integrity="sha384-XQqX/4yiUGu+oyr87jvWzRuqBUK/adrY0DunhL+tID9m/9dwSpV8h9Fk/Sg6ifVQ" crossorigin="anonymous"></script> + <script src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script> + <script src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous"></script> + <script> + (async () => { + const status = document.getElementById('status'); + const content = document.getElementById('content'); + try { + const response = await fetch('spec.md', { cache: 'no-store' }); + if (!response.ok) throw new Error('HTTP ' + response.status); + const md = await response.text(); + marked.setOptions({ gfm: true, breaks: false }); + const math = []; + const protectedMd = md.replace(/\$\$[\s\S]+?\$\$|\$[^\n$]+?\$/g, (m) => { + math.push(m); + return '@@MATH' + (math.length - 1) + '@@'; + }); + let html = DOMPurify.sanitize(marked.parse(protectedMd)); + html = html.replace(/@@MATH(\d+)@@/g, (_, i) => + math[+i].replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')); + content.innerHTML = html; + if (window.renderMathInElement) { + window.renderMathInElement(content, { + throwOnError: false, + delimiters: [ + { left: '$$', right: '$$', display: true }, + { left: '$', right: '$', display: false } + ] + }); + } + status.textContent = 'DAVINCI v3-PQ · draft'; + } catch (err) { + status.textContent = 'Failed to load spec'; + content.innerHTML = '<p>Unable to render <code>spec.md</code>: ' + err.message + '</p>'; + } + })(); + </script> +</body> +</html>
A v3-pq/spec.md

@@ -0,0 +1,734 @@

+# DAVINCI v3-PQ — Post-Quantum Protocol Specification + +**Status:** draft v1.0 · 2026-10-20 · v2 remains the deployed protocol. Reviewed: three +adversarial soundness rounds (protocol reviewer) + audience-representative sign-off; a final +consolidated review gates implementation (Phase 0 of the migration plan). +**Audience:** engineers who already know [DAVINCI v2](https://spec.davinci.vote). This document only +specifies what *changes*. Everything not mentioned here (settlement flow, grace window, blob +verification via the point-evaluation precompile, census origins, sequencer lifecycle, process +registry mechanics) works exactly as in v2 [DAV2]. + +--- + +## 1. Why v3, in one paragraph + +Every ballot DAVINCI v2 publishes in Ethereum blobs [EIP4844] is an ElGamal ciphertext over +BabyJubjub. Published blob data can be archived by anyone indefinitely, and ElGamal falls to +Shor's algorithm — so a future quantum computer decrypts **past elections retroactively** +("harvest now, decrypt later"). Integrity is less urgent (a settled chain cannot be rewritten +under Ethereum's finality assumptions), but **ballot privacy must be post-quantum today**. +v3-PQ removes the quantum-vulnerable primitives from the ballot *confidentiality* path: no +shared-key homomorphic encryption, no pairings, no DKG, no Groth16. Ballot secrecy rests on +polynomial secret sharing, hashes, STARKs, and one NIST-standardized KEM — the KEM is never +proven inside the voter's circuit (the batch guest performs encapsulations, and rare complaint +proofs perform decapsulations; see §8.5, §9.2). During the hybrid period voter authentication +still *also* uses ECDSA (§11), and the settlement wrapper and KZG blob commitments remain +inherited non-PQ dependencies (§12.5). + +### Changes at a glance + +| Component | v2 | v3-PQ | +|---|---|---| +| Ballot confidentiality | ElGamal over BabyJubjub (threshold key) | Shamir shares + PRF masks over KEM transport (§3) | +| Ballot proof | Groth16 over BN254 (circom, trusted setup) | Plonky3 STARK over Goldilocks, browser WASM (§6) | +| Election key | DKG / council ceremony (BabyJubjub) | **None.** Wardens register ML-KEM keys (§4) | +| Tally | Threshold decryption + BSGS search | Lagrange interpolation of θ proven warden sums (§10) | +| Running tally | Homomorphic ciphertext accumulator | Padded plain-sum accumulator over Goldilocks (§8.4) | +| Silent revoting | Re-encryption of stored ciphertexts | Hash-chained opaque slot leaves (§7) + padded accumulator | +| Revotes | Slot overwrite + ciphertext subtraction | One-live-chain packages + revocation nullifiers (§5.3) | +| Voter authentication | ECDSA (secp256k1) | Hash-preimage proof in-STARK; `hybrid` verifies **both**; `hybrid-legacy` admits unenrolled voters on ECDSA (§11) | +| CSP credentials | ECDSA | SLH-DSA (SPHINCS+) [FIPS 205] | +| Batch proof | ZisK, verifies Groth16 (BN254 precompiles) | ZisK [ZISK], verifies ballot STARKs (Poseidon2 precompile) | +| Tally bound | maxValue·maxVoters ≤ 10^12 (BSGS limit) | ≤ 2^61 (field headroom; no search) | + +![What changes from v2 to v3-PQ](figures/architecture-delta.svg) + +--- + +## 2. Notation, parameters and encodings + +- $\mathbb{F}$ — the **Goldilocks field**, $p = 2^{64} - 2^{32} + 1$ (the Plonky3 [P3] and ZisK + native field). All shares, masks and tally arithmetic live here. Canonical encoding of an + element: 8 bytes little-endian, value < $p$. +- $\nu$ — number of **key wardens**; $\theta$ — tally threshold ($1 \le \theta \le \nu \le 16$; + the cap matches v2 committee/council sizes, and data availability cost is linear in ν). +- `nf` — active ballot fields, 1..16, as in v2. A ballot is a vector $b_1..b_{16}$; fields + beyond `nf` are **inactive and MUST be 0** (enforced by the ballot proof; their shares are + shares of 0). +- **KEM** — ML-KEM-768 [FIPS 203] (ct 1088 B) by default; ML-KEM-512 (ct 768 B) is an allowed + profile for DA-sensitive deployments. One *encapsulation* yields `(ct, K)` with a 32-byte + shared secret `K`; arbitrary payloads are carried KEM-DEM style (encapsulate, derive a + wrapping key from `K`, then DEM-encrypt — §2.1). +- **Poseidon2** — Poseidon2 over Goldilocks, width 16, ZisK-precompile-compatible constants + [POS2]. Used for all in-circuit hashing (commitments, PRFs, binding hashes). A Poseidon2 + digest is 4 field elements, serialized as 4×8 B LE (32 bytes). +- **SHA-256** — unchanged: the state SMT, package digests, and everything contracts check. +- **256-bit values in circuits** (DEM keys, SHA-256 digests crossing into Goldilocks + arithmetic): encoded as **eight 32-bit limbs**, each range-checked < 2^32. Never as four + 64-bit limbs (not injective: $p^4 < 2^{256}$), and never reduced mod $p$. + +### 2.1 DEM (authenticated encryption for warden payloads) + +Hash-based, precompile-friendly, normative for **every protocol payload** (voter→warden is +pure KEM+PRF and needs no DEM; this DEM covers batch payloads, batch-key share wrapping, and +ceremony deliveries): +`keystream block j = HMAC-SHA-256(k, nonce ‖ LE64(j))` (HMAC, not raw hashing — the needed +assumption is that HMAC-SHA-256 is a PRF, a conservative standard one); ciphertext = +plaintext ⊕ keystream; `tag = HMAC-SHA-256(k_mac, nonce ‖ AAD ‖ ciphertext)`; +`(k, k_mac) = HKDF-SHA-256(K, "enc"/"mac")` from the KEM/batch secret. `nonce = SHA-256(AAD)`. +The AAD is the canonical serialization of a **DEM context** that always includes a purpose +tag, the election context, the **batch number or ceremony (session, attempt) identifier**, +sender and recipient — unique per encryption *including retries* (a ceremony restart is a new +attempt id ⇒ fresh masks, keys and nonces; the same derived key and nonce never encrypt two +different plaintexts). Payloads are bounded below 2^32 blocks; receivers verify the full tag +before releasing any plaintext. AES-256-GCM may be used by clients for unrelated local +storage/transport, never as a substitute encoding of protocol payloads. + +### 2.2 Domain-separated contexts + +Every derived value uses a purpose-tagged context; nothing is derived without one. + +| Purpose | Context contents | +|---|---| +| `pkgCtx` — the package context tuple | `(protocolVersion, chainID, registry, processID, wardenEpoch, voteID)` — the common prefix below | +| `maskCtx(i, f)` — PRF pad for masked shares | `("v3/mask", pkgCtx, recipient i, field f)` | +| `hCtx(i)` — share/pad commitment | `("v3/hcommit", pkgCtx, recipient i)` | +| `commitCtx` — package commitment | `("v3/pkgcommit", pkgCtx)` — the `ctx` argument of `pkgCommit` (§5.1) | +| `nullCtx` — revocation nullifier | `("v3/null", protocolVersion, chainID, registry, processID)` — **predecessor-only**: `NULL = Poseidon2(nullCtx, sk, prevPkgDigest)` with `sk` the voter's census-bound secret or `sk_pkg` (§11). Never depends on the successor package, batch, or recipients. | +| `slotCtx` / `refreshCtx` — slot leaves | `"davinci-slot-v3"` / `"davinci-refresh-v3"` (§7) | + +The package's mask nonce is its **voteID** — public, unique per package, authenticated, and +independent of the masked values (it derives from the secret `k`, §5.2, before any masking), +so wardens can recompute every `maskCtx` from public data with no circularity. + +### 2.3 Protocol parameters + +| Parameter | Value | Why | +|---|---|---| +| Share/tally field | Goldilocks $p$ | native in the ballot AIR and ~native u64 in ZisK guests | +| Registry tally cap | `maxValue · maxVoters ≤ 2^61` | per-field tally stays below $p$ with headroom (weights don't change this: each field is individually bounded by `maxValue`) | +| **Integer-cost profile (enforced)** | `nf · maxValue^costExponent < 2^61`, checked by the registry at creation **and** recomputed overflow-safe in the ballot proof | the cost sum must not wrap mod $p$ (e.g. `costExponent=192` would give $2^{192} \equiv 1$); v2 only *advised* this profile — v3 enforces it | +| Warden evaluation points | $x_i = i$, $i \in 1..\nu$ | Shamir positions, pairwise distinct, nonzero | +| Max votes per batch | profile-dependent (§8.6) | in-guest verification cost + the 32-blob batch cap inherited from v2's batch program (see §8.6) | +| Max refreshed slots per batch | 2048, rule as v2 | unchanged | +| Nullifier tree | SHA-256 SMT, depth 256 | full-width nullifiers (no truncation into the 64-bit key space) | +| Ballot STARK profile | Goldilocks, blowup 8, 34 FRI queries, hiding PCS | ≈102-bit conjectured FRI soundness (§12.4) | + +Mini-glossary for non-cryptographers: **AIR** = the constraint system of a STARK (its +"circuit"); **hiding PCS** = the polynomial commitment is randomized so proofs leak nothing +about private inputs (zero-knowledge); **witness** = the prover's private inputs; **dealer** = +a party that distributes shares of a secret it generated. + +--- + +## 3. The core idea: tally without a decryption key + +v2 hides a ballot inside a ciphertext and adds ciphertexts homomorphically. v3 hides a ballot +inside **polynomials** and adds polynomials. If you know Lagrange interpolation, you know the +whole trick: + +1. For each ballot field value $b$, the voter picks a random polynomial $f$ of degree + $\theta-1$ with $f(0) = b$, and computes one **share** per warden: $s_i = f(i)$. Any + $\theta$ shares reconstruct $b$; any $\theta-1$ shares are statistically independent of + $b$. Plain Shamir [Sha79]: no curves, just polynomial evaluation in $\mathbb{F}$. +2. Shares are never published in the clear. The voter publishes **masked shares** + $e_i = s_i + \mathrm{PRF}(K_i, \mathrm{maskCtx})$, where the pad key $K_i$ travels to + warden $i$ inside an ML-KEM ciphertext. To everyone except warden $i$, $e_i$ is a + uniformly random field element. +3. Polynomials add: the per-field sum of every active voter's polynomial is itself a + degree-$(\theta-1)$ polynomial whose value at 0 is the **tally**. So the protocol only + ever needs to add public field elements. The batch program maintains a public + **accumulator** $A \in \mathbb{F}^{\nu \times 16}$: coordinate $(i, f)$ is the running + sum of the masked shares addressed to warden $i$ for field $f$ (plus batch pads, §8.4). +4. At the end, each participating warden decapsulates its KEM ciphertexts, subtracts its pads + from its row, and publishes its **sum-share** $S_i$ — with a ZisK proof that it did exactly + that against on-chain-committed data. Lagrange interpolation of any $\theta$ published + sum-shares at $x=0$ **is** the tally. Exact field arithmetic: no decryption of any + aggregate, no noise, no discrete-log search. + +![How the tally emerges without a decryption key](figures/tally-algebra.svg) + +(*This section is the intuition; the full computation also handles the exclusion set, batch +pads, and a blinding term — §9–§10.*) + +The ballot STARK (§6) makes steps 1–2 trustworthy, the batch proof (§8) step 3, the warden +proofs (§10) step 4. **The zkVM proof chain replaces the homomorphic algebra** — the +structural difference from academic PQ voting designs ([TEV], [PQK]), which obtain the same +guarantee from lattice commitments. (Some public-key encryption is unavoidable for ballots +addressed to offline wardens [IR89]; v3 confines it to KEM transport. Threshold *lattice* +decryption — the known hard part of lattice voting [NOAH] — is avoided entirely: the +threshold lives at the plaintext layer.) + +Privacy in one sentence: below $\theta$ colluding wardens, shares are information-theoretically +useless in isolation, and the computational assumptions protecting ballots are ML-KEM, the +PRF/hash, and the zero-knowledge of the STARKs — all post-quantum (full leakage model: §12). + +--- + +## 4. Roles: what changed + +- **Organizer, sequencers, provers, observers** — unchanged from v2. +- **Key wardens** no longer run a DKG or hold shares of a secret key. Per *epoch*, each warden + generates an ML-KEM keypair and calls the **WardenRegistry** contract with: `H(pk)`, a URI + where the full public key is served (IPFS or HTTPS), and a ZisK **well-formedness proof** + (the key pair derives from a committed seed and passes an encaps/decaps self-test). The + registry verifies the proof on-chain. An election pins its committee in `wardenSetHash` + (config leaf `0x3`, §7): `(ν, θ, epoch, the ν registered H(pk) values)`. A voter's client + fetches the ν public keys (from their URIs or any sequencer), recomputes each `H(pk)` and + the set hash, and verifies it against the on-chain value before casting; it refuses to cast + otherwise. The registry refuses to create an election whose warden set is not fully + registered. During the election wardens do nothing; at the end they run one archive scan, + optional complaints, and one tally ceremony (§9–§10). +- **Key modes.** *Committee* (lottery over registered operators) and *council* + (organizer-invited set) map 1:1 from v2 — they only select *which* registered warden keys + form the set. *Sequencer mode* is the degenerate $\nu = \theta = 1$ case (the sequencer is + the only warden; ~1 KB per ballot — cheaper than v2). **Locked mode is deferred**: it + requires an organizer-side share column and a separately reviewed extension of the tally + equations; it is not part of v3.0. + +--- + +## 5. The ballot package + +A vote is one **package**. Its public part goes into blobs; its private part exists only in +the voter's browser — except the *revote metadata* the chosen sequencer needs (§5.4). + +![Building a ballot package in the browser](figures/ballot-package.svg) + +### 5.1 Public package contents and CanonicalPackage + +| # | Field | Size (ν=16, ML-KEM-768) | Description | +|---|---|---|---| +| 1 | `version` | 1 B (`0x03`) | package format version | +| 2 | `processID` | 31 B | as v2 | +| 3 | `voteID` | 8 B LE | §5.2; also the package's mask nonce (§2.2) | +| 4 | `E` | ν·16·8 B = 2,048 B | masked shares, row-major (warden-major, field-minor), canonical LE | +| 5 | `cts` | ν·1,088 B = 17,408 B | ML-KEM ciphertexts, warden order 1..ν | +| 6 | `h` | ν·32 B = 512 B | commitments $h_i = \mathrm{Poseidon2}(hCtx(i), s_{i,1..16}, K_i)$ ($K_i$ as 8×32-bit limbs) | +| 7 | `pkgCommit` | 32 B | $\mathrm{Poseidon2}(slot, pk_{\text{voter}}, \mathrm{prevPkgDigest}, \mathrm{sharesDigest}, \mathrm{salt}, \mathrm{commitCtx})$ — hiding comes from `salt`, an independent **256-bit CSPRNG commitment salt** kept in the package opening (share entropy alone is NOT enough: given θ−1 shares and a candidate ballot, the whole polynomial is determined); `prevPkgDigest = 0^{32}` for a first vote | +| 8 | `hybridSig` | 65 B or absent | hybrid mode only: ECDSA over `pkgDigest`, Ethereum personal-message format (§11) | + +`CanonicalPackage` = the concatenation of fields 1–7 exactly as listed (fixed order, fixed +sizes, no framing). **`pkgDigest = SHA-256(CanonicalPackage)`** is the package's chain +identity: it is the value stored at the vote-ID leaf, the input to revocation nullifiers, and +what complaints reference. `sharesDigest = Poseidon2` sponge over all $s_{i,f}$ in the same +row-major order. The ballot STARK (~400 KB) accompanies the package to the sequencer but is +**not** published in blobs. + +### 5.2 Construction (browser, pseudocode) + +```text +k = fresh random scalar (or PRF(sk, "v3/k", processID, counter) in recovery mode) +voteID = N + trunc63(Poseidon2(processID, address, k)) # trunc63 = lowest 63 bits; + # N = 2^63 (v2's namespace offset) +for f in 1..nf: + poly_f = random polynomial, degree θ-1, poly_f(0) = ballot[f] +for f in nf+1..16: poly_f = random polynomial with poly_f(0) = 0 # inactive fields: shares of 0 +s[i][f] = poly_f(i) # ν shares per field +for i in 1..ν: + (ct[i], K[i]) = MLKEM.Encaps(pk_warden[i]) # fresh randomness per package, NEVER reused + for f in 1..16: e[i][f] = s[i][f] + PRF(K[i], maskCtx(i, f)) mod p + h[i] = Poseidon2(hCtx(i), s[i][1..16], K[i]) +salt = fresh 256-bit CSPRNG value # hiding salt, kept in the opening +pkgCommit = Poseidon2(slot, pk_voter, prevPkgDigest, sharesDigest, salt, commitCtx) +ctsDigest = SHA-256(ct[1] || .. || ct[ν]) # binds the ciphertext bytes (§6) +proof = BallotSTARK.prove(...) # §6 +``` + +ML-KEM encapsulation costs ~1–2 ms per warden in browser WASM [KEMB]; the dominant client +cost is the STARK (§6). **Pad-reuse warning:** reusing KEM randomness across two packages +would publish the *difference* of two sharings, which interpolates to the difference of the +ballots — encapsulations are fresh per package, enforced by convention and by the fresh +`voteID` in every `maskCtx`. + +**Client state.** Default: `k`, the polynomials and the KEM randomness are **independent +CSPRNG randomness**, and the client stores the package opening — including the commitment +salt — (needed to revote). Optional *recovery mode* derives them **and the salt** as +`PRF(sk_voter, purpose, processID, counter)` with distinct purpose tags (salt included: +`"v3/salt"`), so any device holding `sk` can reconstruct past packages — with the documented trade-off that whoever later +obtains `sk` can also reconstruct that voter's own historical ballots. Counter recovery: the +client trial-derives counters 0,1,2…, computes each candidate `pkgDigest`, and checks which +are admitted (vote-ID leaves) and which are consumed (nullifier tree) to find its live +package; gaps from collision-resamples (§14) are skipped naturally. + +### 5.3 Revoting: the one-live-chain rule + +v2 overwrote the voter's slot and subtracted the stored ciphertext. v3 has no stored +ciphertext, so the *voter's proof* identifies what to remove: + +![Revote lifecycle: the one-live-chain rule](figures/revote-lifecycle.svg) + +- Each voter has, per election, a chain of packages $P_0 \to P_1 \to \dots$; exactly one is + **live**. A revote package $P_{t+1}$ consumes $P_t$: the STARK proves knowledge of $P_t$'s + opening (same slot, same key) and the nullifier derivation + $\mathrm{NULL}_t = \mathrm{Poseidon2}(\mathrm{nullCtx}, sk, \mathrm{pkgDigest}_t)$, where + `sk` is the voter's census-bound secret (or the self-chosen `sk_pkg` for unenrolled hybrid + voters — §11). +- The batch program checks $P_t$ **was admitted and is settled**: an inclusion proof of + `voteID_t → pkgDigest_t` under the current root (consequently, a predecessor cast in the + *same* batch cannot be consumed yet — §14). It inserts $\mathrm{NULL}_t$ into the nullifier + tree (insert-once: double consumption is impossible), subtracts $P_t$'s public `E` from the + accumulator, and adds $P_{t+1}$'s. +- Invariants enforced by the batch program: an **empty slot admits exactly one initial + package**; a package for an **occupied slot must consume exactly one admitted, unconsumed + predecessor of the same owner and slot**; refreshes never create occupancy. + +Nullifiers are unlinkable to packages for third parties (they depend on `sk`). The coercion +consequences are stated in §12.3. + +### 5.4 Submission interface (voter → sequencer) + +The voter submits to one sequencer, over an encrypted channel as in v2: +`{CanonicalPackage, hybridSig?, ballotProof, censusProof?, and — for a revote — the +predecessor reference (voteID_t, pkgDigest_t) with its inclusion path}`. The sequencer (and +its prover) therefore **learns revote events and predecessor linkage for the votes it seals — +the same boundary as v2**, where the sealing sequencer learns which updates are overwrites. +It never learns ballots, shares, pads, or `sk`: those stay inside the STARK witness. The +batch program receives the predecessor's public data as ordinary host input; the STARK is +what makes it *authorized* (nullifier + ownership), and the chain is what makes it +*authentic* (vote-ID leaf). + +--- + +## 6. The ballot proof (Plonky3 STARK) + +The Groth16 circuit is replaced by a STARK over Goldilocks, proven in the browser via WASM — +the production descendant of the davinci-stark prototype [DST], minus its elliptic-curve +section. No trusted setup. + +**Public inputs** (all as Goldilocks elements/limbs): +`inputsHash` (4 limbs) · `voteID` · `slot` · `authMode` flag · `isRevote` flag · +`prevPkgDigest` (8×32-bit limbs; zero when `isRevote=0`) · `NULL` (4 limbs; zero when +`isRevote=0`). + +**`inputsHash`** is the Poseidon2 binding of the **complete CanonicalPackage plus election +context**, computed exactly as: +`Poseidon2(version, processID, packedBallotMode, wardenSetHash, censusRoot, voteID, slot, +authMode, weight, H2(E), ctsDigest, H2(h_1..h_ν), pkgCommit)` where `H2` is the Poseidon2 +sponge over the listed values in package order and **`ctsDigest = SHA-256(cts)`** enters as +8×32-bit limbs. The voter computes `ctsDigest` *outside* the circuit (the circuit treats it +as opaque limbs — this **binds** the ciphertext bytes without proving anything about ML-KEM); +the batch program recomputes `SHA-256(cts)` and the full `inputsHash` from the package body +and rejects on any mismatch. Nothing in the admitted package — including the ciphertexts — +can differ from what the voter authorized. The `slot` public input (derived from the census +identity per the census-origin rule, proven against the in-circuit census membership path) +is what the batch program uses for the state transition, and `authMode` pins which §11 +authentication branch the proof took. + +**The proof shows:** +1. **Ballot validity** — v2's ballot protocol (ranges, uniqueness, cost sum vs + `maxValueSum`/weight, `ballotMode` unpacking), with three normative strengthenings over + the v2-era prototype: the weight bound is enforced when `maxValueSum = 0`; all comparisons + use sound borrow-checked integer gadgets (no Goldilocks wraparound); and the cost sum is + computed overflow-safe under the enforced integer-cost profile (§2.3). +2. **Share consistency** — for every field (including inactive ones, with constant term 0), + the ν shares lie on one polynomial of degree ≤ θ−1 whose constant term is the ballot + value. Cost: ν·16·(θ−1) ≈ 1.8k multiplications at ν=16, θ=8 — trivial for the AIR. +3. **Mask consistency** — $e_{i,f} = s_{i,f} + \mathrm{PRF}(K_i, \mathrm{maskCtx}(i,f))$ with + the same $(s_i, K_i)$ committed in $h_i$. +4. **voteID derivation** from `(processID, address, k)` and the `inputsHash` binding above. +5. **Authentication** (§11): knowledge of `sk` with `H(sk)` bound in the census leaf — or, + for an unenrolled hybrid voter (`pk_PQ = 0`), knowledge of the self-chosen `sk_pkg` bound + in the chain's first `pkgCommit` (§11), with identity resting on `hybridSig`. For a + revote, additionally the predecessor opening (same slot, same key) and the `NULL` + derivation of §5.3. + +What the proof deliberately does **not** show: that `ct_i` decapsulates to the committed +$K_i$. Proving ML-KEM in-circuit would drag SHAKE through the AIR. Instead, mismatched +transport is *harmless to integrity* (no tally proof ever runs Decaps — §10.2) and *publicly +excludable* (complaints — §9.2). A STARK-friendly verifiable encryption removing this +trade-off is the main tracked upgrade (§15). + +**Indicative numbers** (estimates until the v3 circuit is benchmarked; the prototype [DST] +measured 3.2 s native proving and ~12 ms verification for a *larger* trace): trace ≤ 2048 × +~200 columns, ~10–20 s desktop-browser proving (mobile will be slower — to be benchmarked; +the ~400 KB proof uploads once to one sequencer and is never stored on-chain). + +--- + +## 7. State tree changes + +Same SHA-256 sparse Merkle tree, depth 64, same namespaces as v2, three changes: + +![State tree v3 layout](figures/state-tree-v3.svg) + +1. **Vote-ID leaves carry the package digest**: `voteID → pkgDigest` (v2 stored 0). This lets + revotes and complaints authenticate a package *body* against the chain. +2. **Slot leaves are chained opaque digests** (no ballot data): + - first vote / overwrite: `leaf = SHA-256("davinci-slot-v3" ‖ pkgDigest ‖ s_batch)` + - refresh: `leaf' = SHA-256("davinci-refresh-v3" ‖ leaf ‖ s_batch)` + with `s_batch` the sequencer's secret batch seed (proven in-guest, never published — the + same trust class as v2's re-encryption seed). A refresh needs only the **public current + leaf** plus the refresher's own secret, so **any sequencer can refresh any occupied slot** + — permissionless sequencing is preserved and a vanished sequencer blocks nothing. Both + update types produce fresh-looking 32-byte values; this plus the padded accumulator is + what replaced re-encryption-based silent revoting. +3. **Config namespace**: `0x3` = `wardenSetHash` (§4) instead of an encryption key; `0x4` = + `SHA-256(A)` (the accumulator value itself is published in every batch's blobs); `0x5` + (reserved in v2) = the root of the **nullifier tree**, a dedicated SHA-256 SMT of depth + 256. A nullifier is a Poseidon2 digest serialized to 32 bytes (4×8 B LE), used directly + as the 256-bit key; leaf value = 1. + +--- + +## 8. The batch program (ZisK guest) + +Same role, same settlement flow, same public-output pattern (`ok`/`failMask`, old/new roots, +counters, census root, blobs digest) as v2. The constraint groups change as follows. + +![Batch program v3 dataflow](figures/batch-flow.svg) + +### 8.1 Ballot proof verification +Verifies the n ballot STARKs **in-guest**. FRI verification is hash-dominated and ZisK +exposes a Poseidon2-Goldilocks precompile; the measured count on the prototype verifier is +**7,515 permutations per proof**, giving a *modeled* in-guest cost of roughly 1M steps per +ballot (to be benchmarked). The ballot verifier configuration (AIR identity, FRI profile, +Poseidon2 constants) is pinned via `ballotVKHash` at config leaf `0x7`, as in v2. + +### 8.2 Census, authentication, binding +As v2 for census membership and slot derivation. Authentication follows the election's +**auth policy** (§11): `pq-only` relies on the in-STARK preimage proof alone; `hybrid` +*additionally* verifies `hybridSig` (ECDSA over `pkgDigest`, secp256k1 precompile, recovered +address = census address) for every package; `hybrid-legacy` dispatches per census leaf as +specified in §11. The program recomputes `ctsDigest`, `inputsHash` and `pkgDigest` from the +package body and matches them against the proof's public inputs and the inserted leaf value +— so an admitted package is byte-for-byte the one the voter's proof authorized (§6). + +### 8.3 State transitions +In fixed order, each proven against the previous root, as v2: (1) insert +`voteID → pkgDigest`; (2) insert revocation nullifiers with the one-live-chain checks of +§5.3 (predecessors must be settled under the starting root); (3) write slot leaves (votes + +overwrites), then refresh the sample $\mathcal{R}$ (§7.2; sample-size rule as v2); (4) update +`0x4` with the new accumulator digest and `0x5` with the new nullifier root. + +### 8.4 Accumulator update and the batch pad +$$A' = A + \sum_{\text{new pkgs}} E \; - \sum_{\text{consumed pkgs}} E \; + \; B$$ +where $B \in \mathbb{F}^{\nu \times 16}$ is a fresh **uniform** batch pad derived in-guest +from the secret batch seed. Without $B$, the public batch delta minus the (public) new-package +sums would equal $-\sum_{\text{consumed}} E$, letting anyone identify revoked packages by +matching public `E` rows. $B$ is deliberately *unstructured* — a Shamir-codeword-shaped pad +would vanish under the code's public parity checks and leak the same information. + +### 8.5 The warden payload (KEM-DEM, proven) +Per batch, the guest: derives a 256-bit batch key $k_b$ and the ML-KEM encapsulation +randomness from the secret batch seed (guest-internal derivation under the pinned program, so +it is as trustworthy as the proof itself); DEM-encrypts (§2.1) +`payload = (B ‖ consumed pkgDigests ‖ context)` under $k_b$; Shamir-shares $k_b$ +**coordinate-wise over its 32-bit limbs** θ-of-ν; and for each warden $i$: one in-guest +ML-KEM encapsulation to $pk_i$ → wrapping secret → DEM-encrypts share $i$. The proof binds +$B$ to the accumulator update, the consumed list to the nullifier insertions, and every +ciphertext to its registered recipient key and context. **Unlike voter transport, a malformed +batch payload is unprovable, not merely complainable** — it would hide an accepted +transition's revocations and pads from the tally. All of it is published in the batch's blobs. + +### 8.6 Blob layout v3 and honest DA numbers +Blob cells carry 31 payload bytes each (a v3 codec choice — v2 packed typed values; v3 packs +an opaque byte stream per section), 4096 cells per blob ⇒ 126,976 B per blob. Sections, in +order: header · new packages (CanonicalPackage bytes) · slot-update list +(slot index 8 B + new leaf 32 B — so a refresh costs 40 B framed, vs ~1–2 KB in v2) · +nullifiers (32 B each) · accumulator value $A'$ (ν·16·8 B) · warden payload (§8.5). +Byte-exact cell maps live in the davinci-zkvm normative docs, as in v2. + +Per-package size: `72 + ν·(160 + ct_len)` bytes (72 B fixed fields; per warden: 128 B of +masked shares + 32 B commitment + one ciphertext) ⇒ **20,040 B** at ν=16/ML-KEM-768; +14,920 B at ν=16/ML-KEM-512; 6,312 B at ν=5/768; 1,320 B at ν=1. + +| Profile (256 votes + 256 refreshes) | batch bytes | blobs (126,976 B each) | vs v2 (~5 blobs) | +|---|---|---|---| +| ν=16, ML-KEM-768 | ≈ 5.2 MB | **≈ 41 — exceeds the 32-blob batch cap** ⇒ max ~195 votes/batch, or use ML-KEM-512 | ~8× | +| ν=16, ML-KEM-512 | ≈ 3.9 MB | ≈ 31 | ~6× | +| ν=5, ML-KEM-768 | ≈ 1.7 MB | ≈ 14 | ~2.7× | +| ν=1 (sequencer mode) | ≈ 0.35 MB | ≈ 3 | ~0.7× — *cheaper than v2* | + +DA is v3's main cost regression and is linear in ν: size committees to the election's +stakes. Classic McEliece transport (96–128 B ciphertexts ⇒ 4.2–4.7 KB/package at ν=16 by the +same formula) is the tracked reduction path for large committees [MCE]. + +--- + +## 9. End of election: freeze, complaints, exclusions + +The v2 timeline (end → grace window) gains two phases before results: + +![Election timeline v3](figures/timeline.svg) + +### 9.1 Casting freeze +When the grace window closes the registry stops accepting transitions (as v2) and the +accumulator freezes as $A_{\text{cast}}$, bound to the frozen final root. + +### 9.2 Complaint window and the exclusion set X +During a scheduled window (an election parameter, like the grace bounds), **registered +wardens of the election** may submit complaints: `submitComplaint(processID, pkgDigest, +publicValues, proof)` where the ZisK proof shows `Decaps(sk_i, ct_i)` yields a key +inconsistent with the package's admitted $h_i$ (witness: the warden's registered key seed; +statement bound to the admitted `pkgDigest` and the frozen root). The registry verifies the +proof and appends the package to an **idempotent, append-only exclusion set $X$**. Complaints +**never touch the accumulator** — so no complaint needs to know whether its package was +already consumed, and ordering cannot matter. Submission is allow-listed to the election's ν +wardens; the submitter pays gas. **Capacity is sized to the workload, not an arbitrary cap**: +the registry bounds total admitted casts (`maxVoters × maxRevotes`, a new creation +parameter), and the complaint window length and the wardens' proving/fee budget must cover +that bound in the worst case (an adversary can make the complaint path linear in admitted +casts — this is an explicit liveness assumption, §9.3, not an exceptional path). At the +deadline $X$ freezes on-chain; every tally proof binds the frozen +$(\text{root}, A_{\text{cast}}, X)$ snapshot. + +Semantics, stated plainly: a voter whose *live* package ends up in $X$ is not counted (their +earlier packages stay consumed) — a deliberately malformed revote is a provable +self-abstention, and a voter+warden coalition gains a bounded post-close withdrawal option +for that voter's own ballot. A package malformed toward warden $i$ that is *not* excluded +still tallies correctly from wardens that can open it (§10.2); warden $i$ either complains in +the window or sits out. + +### 9.3 Liveness +The tally needs ≥ θ wardens that complete the archive scan (and any complaints) inside the +window, complete the ceremony (§10.3), and publish proven contributions — plus, as in v2, +timely inclusion of their transactions, **plus complaint capacity (proving + fees + window +length) provisioned for the election's admitted-cast bound in the worst case (§9.2)**. +Fewer ⇒ results are lost, exactly as v2's "θ of ν wardens take part in decryption". + +--- + +## 10. Tally: warden sums and Lagrange + +### 10.1 What each participating warden computes +After the exclusion freeze, each participating warden $i$: +1. downloads the complete blob archive (same DA story as any v2 observer; work is linear in + *total casts*, not final voters); +2. decapsulates its per-package ciphertexts, recovers shares + $s_{v,i,f} = e_{v,i,f} - \mathrm{PRF}(K_{v,i}, \mathrm{maskCtx})$, and checks each against + the admitted $h_{v,i}$; +3. joins the **tally ceremony** (§10.3): the participants reconstruct the per-batch payload + keys (θ shares each), decrypt the payloads — obtaining every batch pad $B$ and the full + consumed set $R$, verified against the batch proofs that committed them — and run the + zero-blinding round producing $G_f$; +4. computes, over $\mathrm{Active} = \mathrm{Admitted} \setminus (R \cup X)$: + +$$S_{i,f} = A_{\text{cast},i,f} - \sum_{v \in X \setminus R} e_{v,i,f} - \sum_{v \in \mathrm{Active}} \mathrm{PRF}(K_{v,i}, \mathrm{maskCtx}) - \sum_{b} B_{b,i,f} + G_f(i)$$ + +One-line sanity check: $A_{\text{cast}}$ = (masked shares of all admitted-minus-consumed +packages) + (all batch pads); removing the still-present excluded rows, all pads, and all +batch pads leaves exactly $\sum_{\mathrm{Active}} s_{v,i,f}$; adding $G_f(i)$ with +$G_f(0)=0$ doesn't change the interpolation at 0. + +5. publishes $S_i$ with a **ZisK proof** whose statement binds: the election, the frozen + $(\text{root}, A_{\text{cast}}, X)$ snapshot, the complete archive commitment, its + recipient index, and the accepted ceremony transcript (§10.3) — and whose witness contains + its KEM key seed (authenticating it as warden $i$ against the registered commitment), the + per-package $(s, K)$ openings **for every counted active package** (each checked against + its admitted $h_{v,i}$), the reconstructed payload keys and payload openings, and its + blinding evaluations. The program enforces **complete, exactly-once processing** of every + admitted package in the archive (counted, consumed, or excluded — nothing skipped) and + that $R$ and $B$ are the values authenticated by the accepted batch payloads. +6. `submitTallyShare(processID, i, S_i, publicValues, proof)`; after θ verified shares, + anyone calls `finalizeResults(processID)`: **the registry performs the Lagrange + interpolation on-chain** (θ ≤ 16 points over Goldilocks — a few u64 mulmods per field), + records the per-field results, and emits `ProcessResultsSet`. + +Wardens run their **own provers**: the witness contains their secrets, and a shared proving +service used by θ wardens would itself hold reconstruction capability. Proving cost scales +with total casts (a few Poseidon2 permutations per package; as an **unvalidated projection** +— archive, payload and ceremony checks included — on the order of 10^8 guest steps for a +million-cast election, to be benchmarked with the v3 implementation before warden hardware +guidance is given). + +### 10.2 Why malformed voter transport cannot corrupt anything +**Decapsulation never appears in any tally proof** — contributions open the admitted +commitments $h$ instead, and under commitment binding every accepted $S_i$ lies on the same +aggregate polynomial. A voter publishing a bad `ct_i` only deprives warden $i$ of its opening +witness (warden $i$ complains or sits out; the voter could even re-supply the opening +out-of-band, which is safe — correctness is tied to $h$, not to the transport). Every clean +θ-subset interpolates the same tally, because the ballot STARK proved all ν shares lie on one +valid polynomial. Malformed transport is an availability lever against one warden, never an +integrity lever against the election. + +### 10.3 The zero-blinding ceremony +Published raw, θ sum-shares determine the aggregate polynomial $F$; any single warden — +participant or not — could evaluate it at its own index, compare with the sum of its decoded +per-package shares, and fingerprint the revoked set. The ceremony prevents that: + +1. A `tallySession` is recorded on-chain: session id = `H(processID ‖ root ‖ X ‖ roster)`, + with the participant roster and dealer set fixed (dealers = the participants). +2. Each dealer $k$ samples a seed and derives, per field, blinding coefficients + $c_{k,f,1..\theta-1}$, defining $g_{k,f}(x) = \sum_j c_{k,f,j} x^j$ — **the constant term + is structurally absent, so $g_{k,f}(0) = 0$ by construction** (this is the + "zero-certificate": the committed coefficient vector simply has no degree-0 entry). +3. Dealer $k$ publishes (in a session blob): a hiding Poseidon2 commitment to its + coefficients; **per-recipient hiding evaluation commitments** + $cm_{k,i} = \mathrm{Poseidon2}(g_{k,1..16}(i), r_{k,i})$; the KEM-DEM ciphertexts to each + co-participant $i$ encrypting $(g_{k,1..16}(i), r_{k,i})$; and a **ZisK dealer proof** + that the committed coefficients, the evaluation commitments, and the ciphertexts are all + consistent, under the recipients' registered keys and this session's context. +4. Contributions use $G_f(i) = \sum_{k \in D} g_{k,f}(i)$ over the **accepted dealer set + $D$** — fixed on-chain after the dealer deadline; every contribution proof binds the same + $D$ and session id, and **opens the evaluation commitments $cm_{k,i}$** (the recipient + learned the opening by decapsulating off-circuit — decapsulation still never enters any + tally proof). A dealer whose proof is missing or invalid is excluded and the session + restarts with fresh masks (roster must stay ≥ θ). + +As long as one accepted dealer is honest, no one outside the ceremony — and no +non-participating warden — learns anything about $F$ beyond what the public tally +$F(0)$ itself reveals. Participants do jointly learn the +revoked set $R$; that is the documented θ-gated metadata leakage (§12.2). + +--- + +## 11. Census and authentication + +- **Census trees** migrate from Poseidon-BN254 to Poseidon2-Goldilocks (a breaking format + change; same lean-IMT structure). Leaf encoding: + `leaf = Poseidon2(address, weight, pk_PQ)` with `pk_PQ = H(sk)` for a CSPRNG-generated + secret, or `pk_PQ = 0` for a not-yet-enrolled voter (hybrid censuses only). +- **PQ-key enrollment.** The Ethereum wallet signs an enrollment message binding + `address ↔ pk_PQ`; the signature *authorizes* the binding and is never key entropy (a + future ECDSA break must not reveal PQ secrets). Enrollment paths per census origin: + off-chain censuses collect `pk_PQ` at census construction; on-chain/token censuses read a + global **PQKeyRegistry** contract where voters register once (one transaction, reusable + across all elections); CSP censuses include `pk_PQ` in the credential. +- **Election auth policy** (immutable registry parameter, fixed at creation): + - `pq-only`: every leaf must carry `pk_PQ`; authentication is the in-STARK preimage proof + alone; no ECDSA anywhere in the ballot path. + - `hybrid`: every leaf must carry `pk_PQ`, and every package is verified on **both** + authenticators — the in-STARK preimage proof *and* `hybridSig` (ECDSA over `pkgDigest`, + verified by the batch program). No OR-downgrade exists in this mode. + - `hybrid-legacy`: like `hybrid`, but leaves with `pk_PQ = 0` are admitted with identity + resting on ECDSA alone; the STARK's auth clause (§6.5) switches to a **self-chosen + package key**: the voter generates `sk_pkg` (CSPRNG; kept with the package opening), the + first package binds `H(sk_pkg)` inside `pkgCommit`, and every later package in the chain + proves knowledge of the *same* `sk_pkg` (predecessor opening) and derives its nullifier + as `NULL = Poseidon2(nullCtx, sk_pkg, prevPkgDigest)`. The batch program dispatches per + leaf: `pk_PQ ≠ 0` ⇒ both authenticators against the census key; `pk_PQ = 0` ⇒ mandatory + `hybridSig` + the `sk_pkg` clause. Anyone can count the legacy-status census members + (leaf contents are public census data) — though not, of course, which *final* packages + are theirs beyond what slot-participation already reveals. Ballot *privacy* is fully PQ + for these voters; the election's **integrity assumptions include ECDSA security for its + legacy voters** (§12.1). This mode is what makes existing token censuses usable before + universal enrollment. +- **Enrollment snapshot rule.** A voter's authentication status and key for an election are + pinned at the election's **creation snapshot**: for on-chain/token censuses the registry + records the PQKeyRegistry root at the creation block, and membership proofs must present + the enrollment status under that snapshot regardless of which (newer) eligibility root the + census contract later accepts. Enrolling *after* an election was created affects + subsequent elections only — an existing package chain never changes keys mid-election. +- **CSP censuses**: credentials become SLH-DSA signatures [FIPS 205] over the v2 message + format extended with `pk_PQ`; verification is pure hashing via the SHA-256 precompile. +- Slot derivation, participation visibility, census origins 1–4 mechanics: as v2, with the + enrollment additions above. The v2 census invariants (slot uniqueness across the census; + stable distinct CSP indexes) remain assumptions of integrity. + +--- + +## 12. Security properties, stated plainly + +### 12.1 What holds, under what + +| Property | Holds if | +|---|---| +| **Tally integrity** | STARK/zkVM soundness (FRI + hashes), binding commitments, correct pinned programs, the settlement chain executes the registry, and the v2 census invariants (unique slots / stable CSP indexes). Then no coalition of voters, sequencers, provers or wardens can shift a tally — including via malformed KEM transport (§10.2). | +| **Ballot privacy** | fewer than θ warden keys compromised **over their whole lifetime** (not just the active epoch), ML-KEM IND-CCA, PRF/hash security, hiding STARKs, and honest voter devices. Below θ, shares in isolation are information-theoretically independent of the ballot. **Post-quantum computational privacy — not "everlasting"**: an unbounded adversary could attack archived KEM transcripts. | +| **Revote hiding (public data)** | hash security + the sealing sequencer/prover draws the batch seed *and the refresh set* from fresh randomness and keeps them secret (v2's exact trust statement). Public data reveals participation per slot, update counts/timing, `numOverwrites` — v2's leakage surface. | +| **Exact tally** | unconditional arithmetic (mod-$p$ sums, Lagrange). ML-KEM's residual decapsulation-failure probability (≈2^-139 per pair at ML-KEM-512, ≈2^-164 at -768; election-wide union bound over *all* encapsulations: per-ballot, batch shares, ceremony deliveries) is not zero even for proven-correct encapsulations. Each failure degrades gracefully: a per-ballot failure becomes a complaint; a batch-key *share* failure is tolerated provided at least θ valid shares remain available (with ν=θ, or only θ responsive wardens, one failed share means that payload cannot be reconstructed and the tally cannot complete — size ν above θ accordingly); a ceremony delivery failure excludes the dealer and restarts the session. Deliberately malformed batch transport is a different thing entirely — it is unprovable (§8.5), so it cannot appear in an accepted batch. | +| **Liveness** | ≥1 honest sequencer with proving capacity and timely inclusion (as v2), plus ≥θ wardens through the scan window and ceremony (§9.3). | + +### 12.2 What wardens and insiders learn +θ colluding wardens can reconstruct **every package's ballot** — exactly v2's boundary, where +θ wardens can decrypt every ballot. New, and narrower: the **tally participants** (a θ-sized +set) jointly learn the revoked-package set $R$ — metadata, not contents — and any one of them +can leak it onward; non-participating wardens and the public learn nothing about $R$ (batch +pads §8.4 + blinding §10.3 close those channels, given ≥1 honest accepted dealer). The +sequencer/prover that seals a vote learns its revote linkage (§5.4) — as in v2. + +### 12.3 The honest coercion statement +v3 keeps v2's informal posture (no formal receipt-freeness; revotes hidden among refreshes) +with **one new residual, stated openly**: a coercer who obtains a package's *revocation +token* — by extracting the voter's identity key, **or** by demanding a ZK proof of the +token's derivation, **or** a valid unsubmitted revote authorization — can watch the public +nullifier tree and detect whether that package was later consumed. v2's re-encryption resists +even that (testing re-encryptions is a DDH-type problem). This is the main new +coercion-relevant difference from v2 (alongside the §12.2 participant metadata); mitigations +are Track-2 research (§15). Deployments for coercion-sensitive elections should weigh it. + +### 12.4 Proof-system notes +The ballot STARK profile targets ~102-bit *conjectured* FRI soundness (ethSTARK heuristic +[ETHS]) — an explicit engineering dial (queries × log-blowup + grinding), to be raised for +high-stakes deployments, and **not** claimed as 128-bit PQ security. The v2-era prototype's +three known defects (weight-bound bypass at `maxValueSum=0`; wraparound-prone comparators; +weak hiding-PCS blinding RNG with a constant fallback seed) are normatively fixed in v3 +(§6.1; 256-bit CSPRNG blinding seed, fail-closed). + +### 12.5 Out of scope / inherited +EIP-4844 KZG commitments (Ethereum's own PQ roadmap), organizer/sequencer Ethereum accounts, +hybrid-mode ECDSA (by construction), and the BN254 PlonK wrapper around ZisK proofs — +integrity-only, replaceable by direct on-chain STARK verification (indicative public data +point: ~5–6 MGas for a WHIR/FRI verifier on the EVM [WHIR]; not a measured cost for ZisK +proofs) — tracked as the final migration phase. + +--- + +## 13. Cost summary + +| Metric | v2 | v3-PQ (estimates unless marked measured) | +|---|---|---| +| Browser proving | seconds (Groth16, 35.5 MiB key download) | ~10–20 s desktop (STARK; no key download; prototype measured 3.2 s native on a larger trace) | +| Ballot upload to sequencer | ~2 KB | ~20 KB package + ~400 KB proof (proof not stored on-chain) | +| DA per ballot | ~2 KB | 1.7–20.5 KB depending on ν and KEM (§8.6 table) | +| DA per refresh | ~1–2 KB | 40 B (framed) | +| Batch proving | 2.3–4.0×10^8 steps | + ~1M steps × votes for STARK verification (7,515 Poseidon2 permutations/proof **measured**) | +| Tally | θ partial decryptions of one accumulator + BSGS | archive-linear warden jobs (§10.1) + one ceremony + on-chain Lagrange | +| Registry tally cap | 10^12 | 2^61 | + +--- + +## 14. Errors and edge cases (normative) + +- **voteID collision** (admission finds the leaf occupied): resample `k` (recovery mode: + bump the counter) and re-cast — as v2. Skipped counters are harmless (§5.2 recovery scan). +- **Unsettled predecessor**: a revote consuming a predecessor not yet settled under the + batch's starting root is rejected at admission and retried by the sequencer in a later + batch automatically; clients should submit revotes to the sequencer that holds their + pending vote, as in v2. +- **Duplicate revocation race** (two sequencers hold revotes of the same package): the first + settles; the loser's re-validation drops the vote at admission (nullifier present) and + notifies the voter — the v2 "voteID already in state" pattern. +- **Live package excluded** ($P_t \in X$): the client detects it (public $X$) and informs + the voter they are not counted; no recovery within the election (casting is closed when + complaints run). +- **Warden key unavailable at cast time**: the client refuses to cast (it cannot build a + complete package); election creation already requires all ν keys registered (§4). +- **Ceremony dealer failure**: dealer excluded, session restarted with fresh masks (§10.3); + if the roster drops below θ, the tally is lost — counted under liveness (§9.3). + +--- + +## 15. Tracked upgrades + +1. **STARK-friendly verifiable encryption** (RLWE-LPR with a Poseidon2-based FO transform) to + prove warden transport at admission — removes the complaint window entirely. Requires its + own security review before adoption. +2. **PQ re-randomizable package representation** — would restore v2-grade resistance to + revocation-token coercion (§12.3). Open research. +3. **Locked mode** as a separately specified and reviewed extension (§4). +4. Direct on-chain STARK verification (drop the PlonK wrapper) once rollup gas permits. +5. Classic McEliece transport profile for large committees [MCE]. + +--- + +## 16. References + +- [DAV2] Vocdoni, *DAVINCI protocol specification v2*. https://spec.davinci.vote +- [FIPS 203] NIST, *Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)*, 2024. https://doi.org/10.6028/NIST.FIPS.203 +- [FIPS 205] NIST, *Stateless Hash-Based Digital Signature Standard (SLH-DSA)*, 2024. https://doi.org/10.6028/NIST.FIPS.205 +- [Sha79] A. Shamir, *How to Share a Secret*, CACM 22(11), 1979. +- [DST] Vocdoni, *davinci-stark: Plonky3 ballot proof prototype*. https://github.com/vocdoni/davinci-stark +- [P3] Polygon Zero, *Plonky3*. https://github.com/Plonky3/Plonky3 +- [ZISK] Polygon, *ZisK zkVM*. https://github.com/0xPolygonHermez/zisk +- [POS2] L. Grassi et al., *Poseidon2: A Faster Version of the Poseidon Hash Function*, ePrint 2023/323. +- [ETHS] StarkWare, *ethSTARK Documentation*, ePrint 2021/582. +- [EIP4844] V. Buterin et al., *EIP-4844: Shard Blob Transactions*, 2022. +- [IR89] R. Impagliazzo, S. Rudich, *Limits on the Provable Consequences of One-Way Permutations*, STOC 1989. +- [NOAH] M. Dahl et al., *Noah's Ark: Efficient Threshold-FHE Using Noise Flooding*, WAHC/CCS 2023. +- [TEV] J. Alizadeh, *Threshold Post-Quantum E-Voting from Lattice Commitments*, ePrint 2026/2500. +- [PQK] N. Huber et al., *PQKryvos: Post-Quantum Secure E-Voting With Flexible Ballot Formats and Public Tally-Hiding*, PoPETs 2026. +- [MCE] D. J. Bernstein et al., *Classic McEliece*. https://classic.mceliece.org +- [KEMB] *ML-KEM WebAssembly implementations and benchmarks*. https://github.com/dchest/mlkem-wasm +- [WHIR] *EVM Verification of WHIR over a 31-bit Field*, ethresear.ch, 2025.