arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
docs(spec): v1.2 — external review corrections and measured gpu costs

Incorporates the first external design review: private chain counter
closing the cast-budget capture attack, per-warden XOF stream masking
(replacing the per-field rule whose compression counts were wrong),
tally-ceremony private share exchange with session state machine and
registry attempt nonce, registry-maintained archive checkpoint,
settlement-mode batch caps, rebuilt warden cost model, proof-stack
hiding gates, and the 3-of-5 prototype target. Both reviewers signed
off (reader accepted; protocol reviewer approved with edits, applied).
Adds measured RTX 5090 figures: 1.2-1.5 s GPU per in-guest proof
verification, 0.6 verifications/s sustained.
Pau Escrich p4u@dabax.net
Wed, 21 Oct 2026 08:14:45 +0000
commit

638923b7de053e1bda9d911b001e9e8dad74e1f2

parent

590df9d9621099c8662f2ca5bbeef58cd8186847

M v3-pq/figures/ballot-package.svg → v3-pq/figures/ballot-package.svg

@@ -1,3 +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;" 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: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: #333333; 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: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: #333333; 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: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: #333333; 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: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: #333333; 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: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: #333333; 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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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: rgb(51, 51, 51);"/><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: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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>+<svg xmlns="http://www.w3.org/2000/svg" style="background: transparent; background-color: transparent; " xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="2625px" height="369px" viewBox="0 0 2625 369"><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="318" y="10" width="198" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: 196px; height: 1px; padding-top: 47px; margin-left: 319px;"><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: #333333; 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="616" y="10" width="261" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 47px; margin-left: 617px;"><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: #333333; 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="958" y="10" width="265" height="73" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: 263px; height: 1px; padding-top: 47px; margin-left: 959px;"><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: #333333; 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="208" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: 206px; 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: #333333; 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="268" y="212" width="298" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 296px; height: 1px; padding-top: 249px; margin-left: 269px;"><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: #333333; 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="1671" y="293" width="267" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: 265px; height: 1px; padding-top: 320px; margin-left: 1672px;"><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: #333333; 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="618" y="169" width="257" height="54" fill="#f8cecc" stroke="#b85450" pointer-events="all" style="fill: rgb(248, 206, 204); stroke: rgb(184, 84, 80);"/></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: 255px; height: 1px; padding-top: 196px; margin-left: 619px;"><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: #333333; 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="927" y="196" width="326" height="73" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 324px; height: 1px; padding-top: 233px; margin-left: 928px;"><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: #333333; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">pads: keyed XOF stream per warden,<br />16-byte slice per field (mod p)</div></div></div></foreignObject></switch></g></g></g><g data-cell-id="10"><g transform="translate(0.5,0.5)"><rect x="1326" y="159" width="251" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 186px; margin-left: 1327px;"><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: #333333; 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="1684" y="159" width="241" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: 186px; margin-left: 1685px;"><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: #333333; 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="1303" y="55" width="297" height="54" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 82px; margin-left: 1304px;"><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: #333333; 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="1650" y="55" width="309" height="54" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: 307px; height: 1px; padding-top: 82px; margin-left: 1651px;"><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: #333333; 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="2009" y="150" width="263" height="73" fill="#d5e8d4" stroke="#82b366" pointer-events="all" style="fill: rgb(213, 232, 212); stroke: rgb(130, 179, 102);"/></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: 261px; height: 1px; padding-top: 187px; margin-left: 2010px;"><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: #333333; 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="2322" y="121" width="281" height="131" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all" style="fill: rgb(218, 232, 252); stroke: rgb(108, 142, 191);"/></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: 187px; margin-left: 2323px;"><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: #333333; 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 516 47.23 Q 516 47.23 606.88 47.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 614.88 47.23 L 606.88 51.23 L 606.88 43.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="17"><g transform="translate(0.5,0.5)"><path d="M 877 47.23 Q 877 47.23 948.88 47.23" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 956.88 47.23 L 948.88 51.23 L 948.88 43.23 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="18"><g transform="translate(0.5,0.5)"><path d="M 218 247.77 Q 218 247.77 258.88 247.77" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 266.88 247.77 L 258.88 251.77 L 258.88 243.77 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="19"><g transform="translate(0.5,0.5)"><path d="M 506.4 285 Q 591 320 669 320 Q 747 320 824.5 320 Q 902 320 996 320 Q 1090 320 1184 320 Q 1278 320 1365 320 Q 1452 320 1538.5 320 Q 1625 320 1661.88 320" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1669.88 320 L 1661.88 324 L 1661.88 316 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="20"><g transform="translate(0.5,0.5)"><path d="M 539.18 212 Q 591 196 608.88 196" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 616.88 196 L 608.88 200 L 608.88 192 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="21"><g transform="translate(0.5,0.5)"><path d="M 864.72 223 Q 902 232 917.88 231.85" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 925.88 231.78 L 917.92 235.85 L 917.85 227.85 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="22"><g transform="translate(0.5,0.5)"><path d="M 1223 83 Q 1278 99 1390.62 154.94" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1397.79 158.5 L 1388.84 158.53 L 1392.4 151.36 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="23"><g transform="translate(0.5,0.5)"><path d="M 1253 231.77 Q 1278 232 1339.79 215.37" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1347.51 213.29 L 1340.82 219.23 L 1338.75 211.51 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="24"><g transform="translate(0.5,0.5)"><path d="M 1577 186 Q 1577 186 1674.88 186" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1682.88 186 L 1674.88 190 L 1674.88 182 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="25"><g transform="translate(0.5,0.5)"><path d="M 1223 39.2 Q 1278 37 1338.72 52.72" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1346.47 54.72 L 1337.72 56.59 L 1339.73 48.84 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="26"><g transform="translate(0.5,0.5)"><path d="M 826.17 169 Q 902 144 996 144 Q 1090 144 1184 144 Q 1278 144 1368.65 112.03" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1376.2 109.37 L 1369.98 115.8 L 1367.32 108.26 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="27"><g transform="translate(0.5,0.5)"><path d="M 1600 82 Q 1600 82 1640.88 82" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 1648.88 82 L 1640.88 86 L 1640.88 78 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="28"><g transform="translate(0.5,0.5)"><path d="M 1925 186 Q 1925 186 1999.88 185.79" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 2007.88 185.77 L 1999.89 189.79 L 1999.87 181.79 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="29"><g transform="translate(0.5,0.5)"><path d="M 1938 320 Q 1984 320 2091.46 228.9" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 2097.57 223.72 L 2094.05 231.95 L 2088.88 225.85 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="30"><g transform="translate(0.5,0.5)"><path d="M 1959 82 Q 1984 82 2077.7 144.92" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 2084.34 149.38 L 2075.47 148.24 L 2079.93 141.6 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></g></g><g data-cell-id="31"><g transform="translate(0.5,0.5)"><path d="M 2272 185.77 Q 2272 185.77 2312.88 186.37" fill="none" stroke="#333333" stroke-miterlimit="10" pointer-events="stroke" style="stroke: rgb(51, 51, 51);"/><path d="M 2320.88 186.48 L 2312.82 190.37 L 2312.94 182.37 Z" fill="#333333" stroke="#333333" stroke-miterlimit="10" pointer-events="all" style="fill: rgb(51, 51, 51); stroke: rgb(51, 51, 51);"/></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>
M v3-pq/figures/src/ballot-package.drawio → v3-pq/figures/src/ballot-package.drawio

@@ -1,77 +1,77 @@

<mxfile host="Electron"> - <diagram id="0anw3apj5oU_0jCrlaHl" name="pageWithNumber"> + <diagram id="9pjp0ek-45AAG9vh7ETT" 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" /> + <mxGeometry height="73" width="198" x="316" 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" /> + <mxGeometry height="73" width="261" x="614" 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" /> + <mxGeometry height="73" width="265" x="956" 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" /> + <mxGeometry height="73" width="208" 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" /> + <mxGeometry height="73" width="298" x="266" 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" /> + <mxGeometry height="54" width="267" x="1669" y="291" 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" /> + <mxGeometry height="54" width="257" x="616" 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"> + <UserObject label="pads: keyed XOF stream per warden,&#xa;16-byte slice per field (mod p)" 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: keyed XOF stream per warden,&#xa;16-byte slice per field (mod p)" 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" /> + <mxGeometry height="73" width="326" x="925" y="194" 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" /> + <mxGeometry height="54" width="251" x="1324" 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" /> + <mxGeometry height="54" width="241" x="1682" 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" /> + <mxGeometry height="54" width="297" x="1301" 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" /> + <mxGeometry height="54" width="309" x="1648" 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" /> + <mxGeometry height="73" width="263" x="2007" 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" /> + <mxGeometry height="131" width="281" x="2320" 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">

@@ -95,17 +95,17 @@ <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"> + <UserObject label="" mermaidId="e:KEM-&gt;CT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.8;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.8;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" /> + <mxPoint x="589" y="318" /> + <mxPoint x="745" y="318" /> + <mxPoint x="900" y="318" /> + <mxPoint x="1088" y="318" /> + <mxPoint x="1276" y="318" /> + <mxPoint x="1450" y="318" /> + <mxPoint x="1623" y="318" /> </Array> </mxGeometry> </mxCell>

@@ -114,34 +114,34 @@ <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" /> + <mxPoint x="589" 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"> + <UserObject label="" mermaidId="e:K-&gt;PRF#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.96;exitY=1;entryX=0;entryY=0.49;" 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=0.96;exitY=1;entryX=0;entryY=0.49;" target="9"> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="968" y="225" /> + <mxPoint x="900" y="230" /> </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"> + <UserObject label="" mermaidId="e:S-&gt;ADD#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=1;entryX=0.29;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=1;exitY=1;entryX=0.29;entryY=0;" target="10"> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="1312" y="97" /> + <mxPoint x="1276" 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"> + <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.49;entryX=0.09;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.49;entryX=0.09;entryY=1;" target="10"> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="1312" y="225" /> + <mxPoint x="1276" y="230" /> </Array> </mxGeometry> </mxCell>

@@ -153,22 +153,22 @@ <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"> + <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.4;entryX=0.15;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.4;entryX=0.15;entryY=0;" target="12"> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="1312" y="35" /> + <mxPoint x="1276" 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"> + <UserObject label="" mermaidId="e:K-&gt;HH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.81;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.81;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" /> + <mxPoint x="900" y="142" /> + <mxPoint x="1088" y="142" /> + <mxPoint x="1276" y="142" /> </Array> </mxGeometry> </mxCell>

@@ -187,11 +187,11 @@ <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"> + <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.34;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.34;entryY=1;" target="14"> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="2078" y="308" /> + <mxPoint x="1982" y="318" /> </Array> </mxGeometry> </mxCell>

@@ -200,7 +200,7 @@ <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" /> + <mxPoint x="1982" y="80" /> </Array> </mxGeometry> </mxCell>
M v3-pq/figures/src/ballot-package.mmd → v3-pq/figures/src/ballot-package.mmd

@@ -7,7 +7,7 @@ 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 + K --> PRF["pads: keyed XOF stream per warden,<br/>16-byte slice per field (mod p)"]:::op S --> ADD["e[i][f] = s[i][f] + pad (mod p)"]:::op PRF --> ADD ADD --> E["masked shares E (public)"]:::pub
M v3-pq/spec.md → v3-pq/spec.md

@@ -1,8 +1,9 @@

# DAVINCI v3-PQ — Post-Quantum Protocol Specification -**Status:** draft v1.1 · 2026-10-20 · **unified Blake3 profile** (supersedes v1.0's -mixed Poseidon2/SHA-256/Blake3 profile) · v2 remains the deployed protocol. Reviewed: three -adversarial soundness rounds (protocol reviewer) + audience-representative sign-off; a final +**Status:** draft v1.2 · 2026-10-20 · **unified Blake3 profile** (supersedes v1.0's +mixed Poseidon2/SHA-256/Blake3 profile) · incorporates the first external design review · +v2 remains the deployed protocol. Reviewed: three adversarial soundness rounds (protocol +reviewer) + audience-representative sign-off + one external design review; 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

@@ -93,14 +94,17 @@ masks off their column of the frozen running total, and publish the resulting **partial

sum** — with a proof that they did exactly that and nothing else. The punchline: those θ partial sums are θ points on a single polynomial, and that polynomial's value at zero *is* the exact election result. The smart contract draws the unique curve through the θ points and -reads it at zero — ordinary integer math, done on-chain. No decryption ever happens, because -there is nothing to decrypt. +reads it at zero — ordinary integer math, done on-chain. No shared-key decryption ever +happens — there is no shared key to decrypt with (each warden only ever opens its own +lockboxes). ![How the tally emerges from θ partial sums](figures/tally-algebra.svg) What this buys you: -- **There is no decryption key.** Not distributed, not threshold-shared — it does not exist, - and neither does the ceremony machinery that managed it in v2. +- **There is no *shared* election decryption key.** (Threshold-shared *batch-payload* keys do exist and are reconstructed at tally — §8.5/§10.4 — but no key ever decrypts the ballot aggregate.) Not distributed as an election key, that is — + it does not exist, and neither does the key-generation ceremony that managed it in v2 + (wardens keep ordinary per-warden lockbox keys, and tally time still has its own + coordinated ceremony — §10). - **Harvest-now-decrypt-later is dead below θ wardens.** The published pieces are information-theoretic noise; the only cryptography protecting them is the lockboxes (ML-KEM) and hashes — both post-quantum.

@@ -122,9 +126,11 @@ - `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). + profile for DA-sensitive deployments — note it still requires pinning a vetted browser + implementation (the commonly cited WASM wrapper [KEMB] exposes ML-KEM-768 only). 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). - **Blake3** — standard Blake3 [B3] is **the protocol hash, everywhere the protocol gets to choose**: the ballot STARK's Merkle trees and Fiat–Shamir challenger; all in-circuit hashing (PRF masks, commitments, voteID, nullifiers — via a re-laid Blake3 AIR section,

@@ -141,7 +147,7 @@ the origin-3 running registration commitment of §8.2) and for hybrid-mode Ethereum

addresses; **SHAKE** inside ML-KEM and **SHA-2** inside SLH-DSA (FIPS-fixed internals of black-box primitives); **Poseidon2** inside ZisK's own prover (an inherited proof-system dependency — framing in §12.4; [POS2]). Poseidon2 and SHA-256 hold **no - application-level role** in v3.1. + application-level role** in v3-PQ. - **256-bit values in circuits** (DEM keys, Blake3 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$.

@@ -182,7 +188,7 @@

| 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)` | +| `streamCtx(i)` — mask stream for masked shares | `("v3/mask", pkgCtx, recipient i)` — **one keyed XOF stream per (package, warden)**, no field index: `stream_i = Blake3.keyed(K_i, streamCtx(i)).xof()`, 256 bytes of output; field $f$ uses bytes $[16(f{-}1), 16f)$ via the LE128-mod-$p$ rule below. This is a **normative masking definition** — browser, ballot AIR, batch guest and warden implementations must match it bit-exactly (test vectors required) | | `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 = Blake3(nullCtx ‖ sk ‖ prevPkgDigest)` with `sk` the voter's census-bound secret or `sk_pkg` (§11). Never depends on the successor package, batch, or recipients. |

@@ -190,11 +196,15 @@ | `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. +so wardens can recompute every `streamCtx` from public data with no circularity. (Earlier +drafts derived one PRF output per *field*; that definition contradicted the in-AIR cost +estimates — ≥16 final keyed computations per warden, 256 at ν=16 — and was replaced by the +single per-warden stream above, which needs only one context block plus four 64-byte XOF +output blocks per warden.) **Byte→field mapping (normative).** Blake3 outputs bytes; masks and other derived field elements are obtained as **LE128 of 16 XOF bytes, reduced mod $p$** — statistical distance -from uniform ≈ $2^{-96}$, negligible. Never `LE64(8 bytes) mod p`: its distance is +from uniform ≈ $2^{-96}$ *per element* (pseudorandom/nearly uniform — not exact uniformity, and not a whole-election bound). Never `LE64(8 bytes) mod p`: its distance is ≈ $2^{-32}$, which is not. ### 2.3 Protocol parameters

@@ -207,6 +217,8 @@ | **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 | +| `maxRevotesPerVoter` | immutable election parameter | **per-voter revote bound, enforced in-proof** via the private chain counter (§5.3); prevents any single voter from consuming other voters' casting capacity | +| Global admitted-cast capacity | `maxVoters × (1 + maxRevotesPerVoter)` | sizes the complaint budget (§9.2); the `+1` is the initial vote — a revote bound alone is not a cast bound | | Nullifier tree | Blake3 SMT, depth 256 | full-width nullifiers (no truncation into the 64-bit key space) | | Ballot STARK profile | Goldilocks, **blowup 32, 18 FRI queries + 16-bit query grinding**, hiding PCS, **Blake3 everywhere** (Merkle/challenger AND the in-AIR hashing section) | ≈106-bit conjectured FRI soundness (§12.4, same heuristic dial as before); chosen verifier-side: −35% in-guest steps and −39% proof size vs blowup-8/34-queries, for ~2.7× prover cost — measured (§8.1). Fallback if browser benchmarks disappoint: blowup 16 / 26 queries. Profile pinned in full by `ballotVKHash`; grinding makes the wasm32 challenger fix (§6) strictly mandatory | | Commitments | **salted unkeyed Blake3**, domain-separated | hiding from an independent 256-bit CSPRNG salt (or the secret inputs); binding from collision resistance. Keyed-Blake3 is reserved for MACs/PRFs — a MAC is not automatically a hiding/binding commitment |

@@ -268,7 +280,7 @@ `/dev/urandom`); "fresh CSPRNG randomness" means sampled from this, never derived.

--- -## 3. The core idea: tally without a decryption key +## 3. The core idea: tally without a shared 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

@@ -279,9 +291,9 @@ $\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. + $e_i = s_i + \mathrm{mask}_i$, where the masks are sliced from one keyed Blake3 XOF + stream per warden (§2.2) and the stream 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

@@ -293,7 +305,7 @@ 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) +![How the tally emerges without a shared 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.*)

@@ -324,8 +336,13 @@ (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). + registered. During the election a warden has one standing duty: **continuously archive the + election's blobs** — EIP-4844 blobs are pruned after ≈18 days, so for any longer election a + warden that waits until the end cannot expect ordinary Ethereum nodes to still serve the + history, and missing payload history prevents the tally from completing (§9.3). Wardens MAY + process incrementally during the voting period (decapsulation and share recovery don't need + to wait for the end); at the end they run the complaint scan 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

@@ -352,8 +369,8 @@ | 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{Blake3}(hCtx(i) \,\|\, s_{i,1..16} \,\|\, K_i)$ — salted unkeyed Blake3 per §2.3 (the secret $K_i$ and shares are the hiding material here) | -| 7 | `pkgCommit` | 32 B | $\mathrm{Blake3}(\mathrm{commitCtx} \,\|\, slot \,\|\, pk_{\text{voter}} \,\|\, \mathrm{prevPkgDigest} \,\|\, \mathrm{sharesDigest} \,\|\, \mathrm{salt})$ — 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) | +| 7 | `pkgCommit` | 32 B | $\mathrm{Blake3}(\mathrm{commitCtx} \,\|\, slot \,\|\, pk_{\text{voter}} \,\|\, \mathrm{prevPkgDigest} \,\|\, \mathrm{sharesDigest} \,\|\, t \,\|\, \mathrm{salt})$ — 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; `t` is the **private chain counter** (§5.3) | +| 8 | `hybridSig` | 65 B or absent | hybrid mode only: ECDSA over `pkgDigest`, Ethereum personal-message format (§11); travels voter→sequencer→batch guest only — **never published** (§5.4) | `CanonicalPackage` = the concatenation of fields 1–7 exactly as listed (fixed order, fixed sizes, no framing). **`pkgDigest = Blake3(CanonicalPackage)`** is the package's chain

@@ -377,20 +394,24 @@ 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 # PRF = keyed-Blake3 XOF, §2.2 mapping + stream = Blake3.keyed(K[i], streamCtx(i)).xof(256 bytes) # ONE mask stream per warden (§2.2) + for f in 1..16: e[i][f] = s[i][f] + LE128(stream[16(f-1)..16f]) mod p h[i] = Blake3(hCtx(i) || s[i][1..16] || K[i]) +t = 0 for a first vote; prev.t + 1 for a revote # private chain counter, ≤ maxRevotesPerVoter salt = fresh 256-bit CSPRNG value # hiding salt, kept in the opening sharesDigest = Blake3(h[1] || .. || h[ν]) -pkgCommit = Blake3(commitCtx || slot || pk_voter || prevPkgDigest || sharesDigest || salt) +pkgCommit = Blake3(commitCtx || slot || pk_voter || prevPkgDigest || sharesDigest || t || salt) ctsDigest = Blake3(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`. +cost is the STARK (§6). **Freshness warning:** encapsulations are fresh per package and per +attempt — including candidate packages that are never admitted. Reused KEM randomness yields +identical ciphertexts (publicly linkable); actual *pad* reuse (same key AND same stream +context) would publish the difference of two sharings, which interpolates to the ballot +difference. Distinct voteIDs give distinct stream contexts for admitted packages, but +clients must keep freshness across retries and rejected submissions too. **Client state.** Default: `k`, the polynomials and the KEM randomness are **independent CSPRNG randomness**, and the client stores the package opening — including the commitment

@@ -398,10 +419,15 @@ 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"`). Any device holding `sk` can then reconstruct past packages. The documented trade-off: 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. +ballots. Counter recovery, in the only order that actually works (`pkgDigest` depends on +ballot-dependent data, so it cannot be derived from `sk` and a counter alone): the client +trial-derives `k` and hence `voteID` for counters 0, 1, 2, …; looks each `voteID` up +on-chain (the vote-ID leaf yields the admitted `pkgDigest`); fetches that package's bytes +from the blob archive; re-derives the salt and KEM randomness from the counter's seeds, and +recovers the shares by unmasking the fetched package's public E with the re-derived pad +keys (shares are not derivable from seeds alone); checks the result against the package's +commitments; and checks the nullifier tree to find which package is still live. Gaps from +collision-resamples (§14) are skipped naturally. ### 5.3 Revoting: the one-live-chain rule

@@ -424,6 +450,20 @@ 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. +- **Per-voter cast budget (the chain counter).** Each package opening carries a private + counter `t`, bound inside `pkgCommit` (§5.1): a first package proves `t = 0`; a revote + proves `t_new = t_prev + 1` against the predecessor's opening and + `t_new ≤ maxRevotesPerVoter` (an immutable election parameter, §2.3). The counter is + **private** — publishing it would leak revote patterns — and the ballot STARK enforces it, + with `maxRevotesPerVoter` authenticated from the immutable election parameters and all + counter/capacity arithmetic in bounded integers (no wraparound). `t` is distinct from the + recovery-mode randomness counter (§5.2): a voteID-collision retry advances randomness + allocation, not the number of admitted predecessors. + Why it exists: with only a global cast capacity, one eligible voter could legally consume + it all (e.g. a 100-slot election with a 200-cast budget: one voter casts once, then revotes + 199 times, each with a valid proof and fresh nullifier — and no other voter can cast a + first ballot). The per-voter bound makes that impossible, and the global capacity + `maxVoters × (1 + maxRevotesPerVoter)` then holds by construction rather than by racing. Nullifiers are unlinkable to packages for third parties (they depend on `sk`). The coercion consequences are stated in §12.3.

@@ -440,6 +480,11 @@ 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). +**What never enters public data availability:** `hybridSig` (a recoverable signature would +link the package to its Ethereum address), the ballot proof, the inner proof's public +vector, and the predecessor/revote metadata all stop at the voter→sequencer→guest boundary. +Blobs carry only `CanonicalPackage` and the batch-level data of §8.6. + --- ## 6. The ballot proof (Plonky3 STARK)

@@ -479,8 +524,10 @@ 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$. +3. **Mask consistency** — $e_{i,f} = s_{i,f} + \mathrm{mask}_{i,f}$ where the 16 masks of + warden $i$ are the LE128-mod-$p$ slices of the single keyed XOF stream + $\mathrm{Blake3.keyed}(K_i, \mathrm{streamCtx}(i))$ (§2.2), with the same $(s_i, K_i)$ + committed in $h_i$. 4. **voteID derivation** from `(processID, address, k)` (Blake3, §5.2), with all of these bound in the public vector. 5. **Authentication** (§11): knowledge of `sk` with `H(sk) = pk_PQ`, where `pk_PQ` is a

@@ -489,10 +536,21 @@ census membership itself is *not* proven in the ballot AIR. For an unenrolled hybrid

voter (census `pk_PQ = 0` means "no enrolled key" — the proof never requires `H(sk_pkg) = 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. + predecessor opening (same slot, same key), the `NULL` derivation of §5.3, and the chain + counter rule `t_new = t_prev + 1 ≤ maxRevotesPerVoter` (§5.3). Authentication relies on + the proof system's **knowledge soundness**: the proof must establish that the prover + *knows* the preimage/witness (bound to this entire authorized package), not merely that + one exists. **The in-AIR Blake3 section.** All in-circuit hashing runs in a **re-laid Blake3 section** -(~25–32 rows per compression at the circuit's width; ~45 compressions at ν=5, ~110 at ν=16). +(~25–32 rows per compression at the circuit's width). Honest compression budget under the +§2.2 stream-masking definition: per warden ≈ 1 context block + 4 XOF output blocks for the +masks + ≥ 4 for $h_i$ (its input is ≥ 219 bytes: processID, registry, voteID, 16 shares, +$K_i$, before context fields); plus ≈ 12 for `pkgCommit`, `sharesDigest`, voteID, `NULL` +and the counter — **provisionally ≈ 57 compressions at ν=5, ≈ 156 at ν=16**, to be fixed by +instrumented counts of the exact canonical encodings for both admission paths (first vote +and revote). Earlier drafts said ~45/~110 against a per-field masking rule that would +actually have needed ≥ 80/256; the stream rule above is what makes counts this low possible. It MUST constrain full standard-Blake3 semantics, not merely a compression gadget: canonical input bytes, exact lengths and zero padding; correct IV / keyed / `derive_key` initialization per mode; the full 7-round schedule with both feed-forward halves; the

@@ -517,12 +575,19 @@ **~2–4 s native (ν-dependent; the blowup-32 profile costs ~2.7× the old blowup-8 prover time, bought back for the batch guest — §8.1)**, ~195 KB proofs — to be re-benchmarked once the

re-laid AIR exists (equal cell counts do not guarantee equal proving cost; the degree and quotient profile must be recomputed). Browser proving is expected at a few × native (mobile slower — to be benchmarked; the proof uploads once to one sequencer and is never stored -on-chain). Standing adoption gates (from review): fix the vendored challenger's wasm32 -query-sampler bug; production hiding CSPRNG; pin the exact transcript (observe/sample -schedule, domain-separated initialization, MMCS layout and shape checks) into -`ballotVKHash`; implement full Blake3 chunk/tree semantics over the `blake3f` precompile -with boundary-length test vectors (0/63/64/65/1023/1024/1025 B); measure real browser and -whole-batch guest costs before deployment guarantees. +on-chain). Benchmark provenance: all prototype figures in this document come from internal +prototype commits; exact commits, hardware, compiler flags and proof settings will be +published with the reference implementation. Standing adoption gates (from review): fix the +vendored challenger's wasm32 query-sampler bug; production hiding CSPRNG; implement full +Blake3 chunk/tree semantics over the `blake3f` precompile with boundary-length test vectors +(0/63/64/65/1023/1024/1025 B); measure real browser and whole-batch guest costs before +deployment guarantees. Before `ballotVKHash` is pinned, the **complete proof profile** must +be fixed and published: the challenge extension field and its defining polynomial; trace +shapes, maximum constraint degree and quotient construction; FRI folding and final-polynomial +parameters; hiding dimensions and the blinding-randomness source; the complete Fiat–Shamir +transcript (observe/sample schedule, domain-separated initialization, the Merkle-commitment (MMCS) matrix layout and shape +checks, serialization); and the knowledge-soundness assumptions with the claimed quantum +security model. ---

@@ -580,7 +645,9 @@ ![Batch program v3 dataflow](figures/batch-flow.svg)

### 8.1 Ballot proof verification — measured cost, honest sizing Verifies the n ballot STARKs **in-guest**. This cost has now been **measured on the real -emulator** (a ZisK guest running the Plonky3 verifier on an actual ballot proof), and it is +emulator** (a ZisK guest running the Plonky3 verifier on an actual ballot proof; internal +prototype — exact commits/hardware/flags to be published with the reference +implementation, §6), and it is the dominant cost of the v3 batch program — far above the earlier modeled figure, because hashing turns out to be a minor component: at the pinned profile (§2.3) one verification costs **≈14.5M guest steps** (22.1M at the former blowup-8/34-query profile), of which

@@ -590,10 +657,15 @@ **amortized once per batch** since all proofs share one AIR), and proof deserialization.

Two further optimizations are **normative implementation requirements**: Goldilocks inversions use ZisK `fcall` hints (hint + multiply check, replacing ~1.4k-step software inversions — the mechanism ZisK already uses for secp256k1/BN254 inverses), and opened rows -are hashed as words, not per-byte streams. With the amortization and inverse hints, a -256-ballot batch is ≈3.0G steps (~180 main segments); **practical batch sizes are 32–128 -ballots** (≈0.4–1.5G steps) until the remaining optimizations land, and per-ballot proving -cost is ≈25× v2's — the explicit price of post-quantum ballots, paid in parallelizable +are hashed as words, not per-byte streams. **GPU-measured** (RTX 5090, +cargo-zisk 1.3.0-alpha, this exact profile): proving the verification of 1 / 8 / 32 proofs +takes 11.5 / 20.1 / 56.9 s — a ≈10 s fixed pipeline plus **≈1.2–1.5 s marginal per +verification**, i.e. ≈0.6 verifications/s sustained per GPU, so a 256-ballot batch's +verification layer proves in ≈6–7 minutes and a full v3 batch lands ≈3–4× v2's batch time. +With the amortization and inverse hints above (and a proposed upstream Goldilocks-ext² +precompile), ~1 verification/s/GPU is the modeled target. Practical batch sizes today: +32–128 ballots for v2-like latency, 256 where ~8-minute batches are acceptable; throughput +scales across provers as in v2 — the price of post-quantum ballots is paid in parallelizable sequencer GPU time, not voter experience. The guest implements Blake3's chunk/tree layout over the compression syscall; Merkle parents are `BLAKE3(left ‖ right)`. The ballot verifier configuration (AIR identity, FRI profile, transcript and hash profile) is pinned via

@@ -652,9 +724,13 @@ 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 +ML-KEM encapsulation to $pk_i$ → wrapping secret → DEM-encrypts share $i$, and publishes a +salted Blake3 **commitment to each recipient's share** (opening salts travel inside the +respective DEM ciphertexts; these commitments are what lets tally participants validate +forwarded shares in §10.4 without decapsulating each other's ciphertexts). The proof binds +$B$ to the accumulator update, the consumed list to the nullifier insertions, every +ciphertext to its registered recipient key and context, and the share commitments to the +shared $k_b$. **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.

@@ -681,6 +757,15 @@ | ν=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* | +**The two settlement modes have different caps — publish both.** The 32-blob figure above is +the batch program's cap, reachable only in **L1-blob mode** (blobs posted across multiple +Ethereum transactions, as v2's OP-Stack path). **Native blob mode** settles in a single +blob-carrying transaction, which EIP-7594 caps at **6 blobs** (761,856 payload bytes): +packages alone then allow at most ≈120 casts at ν=5/ML-KEM-768 and ≈38 casts at +ν=16/ML-KEM-768 per batch — lower after refreshes, nullifiers, $A'$ and the warden payload. +Recommendation: ν ≥ 5 profiles should settle in L1-blob mode; native mode suits sequencer +mode and small councils. + 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].

@@ -707,10 +792,11 @@ 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 +total admitted casts are bounded by `maxVoters × (1 + maxRevotesPerVoter)` (§2.3 — the +per-voter bound of §5.3 enforced in-proof, times the electorate), 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.

@@ -725,7 +811,11 @@ ### 9.3 Liveness

The tally needs at least θ wardens (the tally threshold) 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)**. +length) provisioned for the election's admitted-cast bound in the worst case (§9.2)**, +**plus availability of the complete blob archive**: blobs prune after ≈18 days (§4), so for +elections longer than the retention window, continuous redundant archival by wardens (or +archivers they trust) is itself a tally-liveness assumption — missing payload history means +the tally cannot complete. Fewer ⇒ results are lost, exactly as v2's "θ of ν wardens take part in decryption". ---

@@ -737,18 +827,21 @@ with proofs, and without any decryption key.

### 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 +1. holds the complete blob archive (continuously collected during the election — §4; work is + linear in *total casts*, not final voters, and decapsulation/share recovery MAY run + incrementally during the voting period); +2. decapsulates its per-package ciphertexts, regenerates each package's mask stream + ($\mathrm{Blake3.keyed}(K_{v,i}, \mathrm{streamCtx}(i))$, §2.2), recovers shares + $s_{v,i,f} = e_{v,i,f} - \mathrm{mask}_{v,i,f}$, and checks each against the admitted $h_{v,i}$; -3. joins the **tally ceremony** (§10.3): the participants reconstruct the per-batch payload +3. joins the **tally ceremony**: the participants exchange batch-payload-key shares + **privately** (§10.4 — never in public), 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$; + zero-blinding round producing $G_f$ (§10.3); 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)$$ +$$S_{i,f} = A_{\text{cast},i,f} - \sum_{v \in X \setminus R} e_{v,i,f} - \sum_{v \in \mathrm{Active}} \mathrm{mask}_{v,i,f} - \sum_{b} B_{b,i,f} + G_f(i)$$ In words: start from the frozen running total; remove the rows of excluded-but-never-revoked packages; strip your own masks for every counted package; strip the batch pads; add your

@@ -761,13 +854,27 @@ $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 + recipient index, and the accepted ceremony transcript (§10.3–§10.4) — 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. + **The complete archive commitment, concretely**: the **registry itself maintains the + authenticated terminal checkpoint**: on every accepted transition it folds the batch into + a contract-side running accumulator, `archiveAcc' = keccak256(archiveAcc ‖ batchNumber ‖ + stateRoot_new ‖ blobsDigest)` (keccak: it is contract-computed — the island rule), and + stores `(archiveAcc, batchNumber)`. At the exclusion freeze this pair is frozen with the + snapshot, and **every contribution proof must bind exactly that frozen pair** — a warden + cannot supply its own batch list and commitment (consistency with a chosen list is not + completeness). The proof re-folds the canonical ordered batch list (batch 0 = the genesis + transition; every accepted batch including zero-ballot initialization transitions and + their payloads) and must reach the frozen accumulator and count; every admitted package + of every batch is processed exactly once. For scale, chunked proving authenticates its + **continuation state** — progress index, the running accumulator AND the partial sums — + between segments; carrying the hash alone does not certify earlier computation. 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),

@@ -775,10 +882,14 @@ 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 Blake3 compressions 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). +with total casts, and "a few hashes per package" is **not** the honest model: rehashing each +`CanonicalPackage` for the archive-commitment check alone costs ≈99 input-block compressions +per package at ν=5/ML-KEM-768 (≈314 at ν=16) before Blake3 tree merges, mask regeneration, +commitment checks, payload and ceremony verification — so a million-cast tally job is on the +order of **10^8–3×10^8 compressions plus bookkeeping** (an **unvalidated projection**, to be +benchmarked with the v3 implementation before warden hardware guidance is given). A tracked +optimization (§15) is an authenticated per-warden view / preprocessing proof that avoids +re-hashing full packages in every warden's proof. ### 10.2 Why malformed voter transport cannot corrupt anything **Decapsulation never appears in any tally proof** — contributions open the admitted

@@ -798,7 +909,7 @@ 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)`, +1. A `tallySession` is recorded on-chain: session id = `H(processID ‖ root ‖ X ‖ roster ‖ attempt)`, where `attempt` is a **registry-controlled monotonic nonce** incremented on every restart (the id must change even with an identical roster and snapshot); the registry tracks exactly one active attempt, rejects messages and contributions bound to stale attempts, and fixes the point at which the dealer set becomes immutable, 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

@@ -822,6 +933,43 @@ 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). +### 10.4 The private batch-key exchange and the session state machine + +The batch-payload keys $k_b$ (§8.5) are θ-of-ν shared; **reconstructing them must not leak +them**: publicly releasing enough shares of any $k_b$ reveals $B_b$ and the consumed-package +list — exactly the revocation metadata the batch pads exist to conceal. So the share +exchange is **private, pairwise and authenticated**, never part of the public transcript: + +- Each participant sends its share of each needed $k_b$ to each co-participant via + **pairwise KEM-DEM** (encapsulate to the recipient's registered warden key; DEM context + bound to election, batch, session and attempt — §2.1), recipient-authenticated. +- A recipient **validates** every received share against the batch's published per-share + commitments before using it. To make that possible, §8.5's payload includes, per + recipient share, a salted Blake3 **share commitment** (bound in the batch proof); the + sender's pairwise message carries the share value and the commitment's salt, so any + recipient can check the opening without decapsulating the sender's ciphertext. An invalid + opening proves the *message* bad — but KEM encryption authenticates the recipient, not the + sender (anyone can encapsulate to a public key), so **the protocol does not claim + cryptographic fault attribution**: a failed exchange (invalid or missing shares, from + whatever cause) simply triggers a restart with a roster-policy-chosen replacement, and + liveness assumes a successfully communicating honest roster. (Sender-authenticated + transport via warden SLH-DSA keys is a tracked hardening, §15.) "Fresh masks" on restart + means fresh ceremony blinding and transport randomness — settled batch keys and batch + pads never change. +- Plaintext key shares and reconstructed keys never appear on-chain or in blobs; contribution + proofs reference the payload *openings* (witness), not the keys. + +**Session state machine** (contract-side): any registered warden of the election may open a +`tallySession` after the exclusion freeze; the roster is accepted when θ wardens have joined +by the roster deadline; the dealer set $D$ is fixed at that moment (dealers = participants); +dealer publications (§10.3) have their own deadline, after which $D$ freezes; a missing or +invalid dealer, or a failed share exchange, triggers **restart**: a new session id and +attempt id, fresh masks, and automatic **invalidation of all contributions bound to the +stale session**. `finalizeResults` accepts only θ distinct wardens' contributions **bound to +one accepted session and its frozen dealer set**. Honest framing: **removing the +election-key DKG does not remove coordinated cryptographic ceremonies — v3 replaces it with +different (smaller, tally-time-only) coordination work.** + --- ## 11. Census and authentication

@@ -880,11 +1028,11 @@ | **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). | +| **Liveness** | ≥1 honest sequencer with proving capacity and timely inclusion (as v2), plus ≥θ wardens through the scan window and ceremony (§9.3), plus **continuous archival of the blob history** (blobs prune in ≈18 days; missing payload history prevents tally completion — §4, §9.3), plus complaint capacity sized to the admitted-cast bound (§9.2). | ### 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 +θ wardens can decrypt every ballot. New, and narrower: the **tally participants** — a θ-sized set *per attempt*: if a session aborts after key reconstruction and restarts with a different roster, every participant of every attempt that reached reconstruction capability is in the leakage set (fresh blinding cannot revoke knowledge already obtained) — (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

@@ -901,15 +1049,17 @@ 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 +The pinned ballot STARK profile targets **≈106-bit** *conjectured* FRI soundness (18 queries × log₂32 + 16 grinding bits; 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 Blake3 Merkle/challenger layer uses **full** Blake3 (7 rounds is the standard, not a reduction) with 256-bit digests: ~128-bit classical collision resistance — adequate for the classical target above — while generic *quantum* collision bounds on any 256-bit hash are ~2^85 query bounds -(BHT model, with heavy resource assumptions); the profile is therefore justified against the +(BHT is the generic quantum collision-search algorithm — a query-count bound under heavy memory assumptions, not a practical attack cost); the profile is therefore justified against the classical conjectured target, not claimed as ≥102-bit end-to-end quantum security (the same -caveat applies to a Poseidon2 profile). The v2-era prototype's +caveat applies to a Poseidon2 profile). The ~2^85 figure concerns **collision resistance — +commitments and binding**; it does not mean 256-bit *keys* have 85-bit confidentiality +(generic quantum key search is the Grover ~2^128 regime). 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).

@@ -927,12 +1077,25 @@ the EF Poseidon attack-reward program [PINIT], and the FreeLunch family of algebraic attacks

on arithmetization-oriented primitives [FL24] — while Blake3 carries long-standing ARX analysis. This is a conservatism call, not a response to any full-round break. +**Every published proof must be hiding, not merely sound.** The ballot STARK is not the only +proof carrying secrets: batch proofs (batch seeds, pads, revocation data), complaint proofs +(warden key seeds), dealer proofs (blinding coefficients), warden contributions (KEM seeds, +shares, payload keys) and key-registration proofs all have sensitive witnesses. Each proof +profile must therefore be verified to be **zero-knowledge/hiding**, not only sound. Known +status: the BN254 PlonK wrapper applies explicit blinding; the hiding of ZisK's *native* +VADCOP-final STARK path (ZisK's last recursion stage, the proof the wrapper wraps) is **unverified** — which makes "drop the wrapper for direct STARK +verification" (§15) a **privacy question, not only a cost change**. + ### 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. +hybrid-mode ECDSA (by construction), and the BN254 PlonK wrapper around ZisK proofs. These +classical dependencies are **integrity-critical — and an integrity failure during execution +can compromise privacy (§12.4)**; what they cannot do — provided the published proof paths +retain their required hiding and the KEM/PRF assumptions hold — is retroactively decrypt +archived ballots (breaking a proof system's *soundness* does not by itself recover +witnesses). The wrapper is 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; and a privacy-gated change, §12.4) — tracked as the final migration phase. ---

@@ -940,11 +1103,11 @@ ## 13. Cost summary

| Metric | v2 | v3-PQ (estimates unless marked measured) | |---|---|---| -| Browser proving | seconds (Groth16, 35.5 MiB key download) | projected 0.7–1.4 s native (ν-dependent, re-laid full-Blake3 AIR — to be benchmarked; no key download; the Blake3-trees prototype measured 0.69 s native) | +| Browser proving | seconds (Groth16, 35.5 MiB key download) | projected ~2–4 s native (ν-dependent, re-laid full-Blake3 AIR at the blowup-32 profile, §6 — needs recalculation/benchmark against the §2.2 stream-masking counts; no key download; the Blake3-trees prototype measured 0.69 s native at blowup 8) | | Ballot upload to sequencer | ~2 KB | ~20 KB package + ~195 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 | **+ ≈14.5M steps × votes for in-guest STARK verification (measured, §8.1; ≈12M effective with batch amortization + inverse hints)** — the dominant v3 cost; practical batches 32–128 ballots; state-tree hashing −30%/byte vs v2's SHA-256; commitment recomputations +13% vs a Poseidon2 precompile | +| Batch proving | 2.3–4.0×10^8 steps | **+ ≈1.2–1.5 s GPU per ballot for in-guest STARK verification (measured on RTX 5090: 32 verifications proven in 56.9 s; ≈14.5M steps each, §8.1)** — the dominant v3 cost; 256-ballot batches ≈ 8 min total; state-tree hashing −30%/byte vs v2's SHA-256; commitment recomputations +13% vs a Poseidon2 precompile | | 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 |

@@ -979,8 +1142,28 @@ 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. +4. Direct on-chain STARK verification (drop the PlonK wrapper) once rollup gas permits — + **gated on establishing the native proof path's hiding, not only its cost** (§12.4). 5. Classic McEliece transport profile for large committees [MCE]. +6. **Batched complaint proofs / proof-certified exclusion-root updates** for large elections + (one proof excluding many packages, with precise completeness and deadline semantics) — + the per-complaint path is O(admitted casts) in the worst case (§9.2). +7. **Authenticated per-warden views / preprocessing proofs** so warden contributions don't + re-hash every full `CanonicalPackage` (§10.1 cost model). +8. **Per-election warden keys** as an operational-lifecycle option: the §12.1 *lifetime* + key-compromise assumption means rotating epochs does not protect old ballots if old + secrets survive; per-election keys plus specified destruction (including backups) make the + retention story auditable. + +**First implementation target (from the external design review).** A complete, reproducible +**3-of-5, ML-KEM-768 end-to-end election prototype** — browser casting through settlement, +complaints, exclusions, the private ceremony, warden proofs, and on-chain finalization — +with these measured gates: the complete 16-field ballot relation including the revote path, +production hiding randomness, the exact pinned proof profile verified inside ZisK, full +batch proving cost, complaint throughput under adversarial load, and the complete warden +tally job (archive authentication included). Browser latency/memory and deployment limits +(electorate sizes, committee sizes, deadlines, hardware) are derived from those measurements +— not from component benchmarks. ---