davinci-paper/v2/figures/batch-program.drawio
v2/figures/batch-program.drawioRaw
1<mxfile host="drawio"><diagram name="batch-program" id="batch-program"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1210" height="760" as="geometry"/></mxCell><mxCell id="c4" value="PRIVATE INPUT BLOCKS" style="text;html=1;whiteSpace=wrap;fontSize=15;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="16" y="8" width="390" height="26" as="geometry"/></mxCell><mxCell id="c5" value="GROUPS OF CONSTRAINTS" style="text;html=1;whiteSpace=wrap;fontSize=15;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="460" y="8" width="420" height="26" as="geometry"/></mxCell><mxCell id="c6" value="PUBLIC OUTPUTS" style="text;html=1;whiteSpace=wrap;fontSize=15;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="940" y="8" width="254" height="26" as="geometry"/></mxCell><mxCell id="c7" value="<b>ballot proofs</b><div style='text-align:left;font-size:13px;line-height:1.3;margin-top:3px'>&bull; ballot verification key<br>&bull; n Groth16 proofs with (address,<br>&bull; &nbsp;&nbsp;voteID, inputsHash)<br>&bull; n ECDSA signatures over the voteIDs</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="16" y="44" width="390" height="104" as="geometry"/></mxCell><mxCell id="c8" value="<b>state transition</b><div style='text-align:left;font-size:13px;line-height:1.3;margin-top:3px'>&bull; processID, old and new state roots<br>&bull; n, w, occupiedBefore<br>&bull; inclusion proofs of the five<br>&bull; &nbsp;&nbsp;configuration leaves<br>&bull; transition chains: vote IDs, ballots,<br>&bull; &nbsp;&nbsp;refreshes, results accumulator<br>&bull; new, overwritten and refreshed<br>&bull; &nbsp;&nbsp;ballots; old accumulator</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="16" y="164" width="390" height="196" as="geometry"/></mxCell><mxCell id="c9" value="<b>eligibility</b><div style='text-align:left;font-size:13px;line-height:1.3;margin-top:3px'>&bull; n Merkle census proofs, or<br>&bull; n CSP credentials (signature,<br>&bull; &nbsp;&nbsp;weight, index)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="16" y="376" width="390" height="84" as="geometry"/></mxCell><mxCell id="c10" value="<b>re-encryption</b><div style='text-align:left;font-size:13px;line-height:1.3;margin-top:3px'>&bull; encryption key<br>&bull; secret seed of the batch<br>&bull; n original and re-encrypted ballots</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="16" y="476" width="390" height="104" as="geometry"/></mxCell><mxCell id="c11" value="<b>blobs</b><div style='text-align:left;font-size:13px;line-height:1.3;margin-top:3px'>&bull; processID, old state root<br>&bull; KZG commitments of the blobs</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="16" y="596" width="390" height="84" as="geometry"/></mxCell><mxCell id="c12" value="<b>ballot proof verification</b><div style='font-size:13px;line-height:1.3;margin-top:3px'>VK hash = leaf 0x07; batched Groth16 check</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="460" y="44" width="420" height="50" as="geometry"/></mxCell><mxCell id="c13" value="<b>authentication</b><div style='font-size:13px;line-height:1.3;margin-top:3px'>key recovered from signature; address matches</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="460" y="102" width="420" height="50" as="geometry"/></mxCell><mxCell id="c14" value="<b>state transition</b><div style='text-align:left;font-size:13px;line-height:1.45;margin-top:4px'>&bull; configuration read under the old root<br>&bull; key namespaces and slot binding<br>&bull; chain of tree transitions<br>&bull; re-encryption from the seed chain<br>&bull; results accumulation<br>&bull; silent refresh (count, disjoint, sorted)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=8;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="460" y="164" width="420" height="196" as="geometry"/></mxCell><mxCell id="c15" value="<b>census membership</b><div style='font-size:13px;line-height:1.3;margin-top:3px'>Merkle: one root, valid paths, no duplicates<br>CSP: one signer key; distinct addresses<br>and indexes</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="460" y="376" width="420" height="84" as="geometry"/></mxCell><mxCell id="c16" value="<b>binding</b><div style='font-size:13px;line-height:1.3;margin-top:3px'>same processID, root and key in all blocks;<br>inputsHash recomputed; census address =<br>ballot address; stored ballot = verified<br>re-encryption</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="460" y="476" width="420" height="104" as="geometry"/></mxCell><mxCell id="c17" value="<b>data blobs</b><div style='font-size:13px;line-height:1.3;margin-top:3px'>rebuild blob cells from verified state;<br>z<sub>b</sub> from commitment, y<sub>b</sub> = p<sub>b</sub>(z<sub>b</sub>); digest</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="460" y="596" width="420" height="84" as="geometry"/></mxCell><mxCell id="c18" value="<b>verdict</b>: ok = every group passed" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="520" y="702" width="300" height="40" as="geometry"/></mxCell><mxCell id="c19" value="ok, failMask" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="940" y="44" width="254" height="50" as="geometry"/></mxCell><mxCell id="c20" value="stateRoot<sup>old</sup>,<br>stateRoot<sup>new</sup>, numVotes,<br>numOverwrites,<br>occupiedBefore" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="940" y="164" width="254" height="96" as="geometry"/></mxCell><mxCell id="c21" value="censusRoot<br>(or CSP address)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="940" y="376" width="254" height="60" as="geometry"/></mxCell><mxCell id="c22" value="blobsDigest, nBlobs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="940" y="596" width="254" height="50" as="geometry"/></mxCell><mxCell id="c23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.2403846153846154;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.7980769230769231;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c17"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.24489795918367346;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c14" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.35714285714285715;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.2976190476190476;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c17" target="c22"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c18" target="c19"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1208" y="722"/><mxPoint x="1208" y="69"/></Array></mxGeometry></mxCell><mxCell id="c33" value="from all groups" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="824" y="722" width="200" height="22" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>