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="4" 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="private input blocks" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;spacing=0;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="9" width="216" height="16" as="geometry"/></mxCell><mxCell id="c4" value="groups of constraints" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=none;strokeColor=#666666;fontFamily=Helvetica;verticalAlign=top;align=left;spacingTop=4;spacingLeft=8;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="252" y="0" width="244" height="576" as="geometry"/></mxCell><mxCell id="c5" value="public outputs" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;spacing=0;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="528" y="9" width="122" height="16" as="geometry"/></mxCell><mxCell id="c6" value='<b>ballot proofs</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>ballot verification key</li><li><i>n</i> Groth16 proofs with (<font face="Courier New">address</font>, <font face="Courier New">voteID</font>, <font face="Courier New">inputsHash</font>)</li><li><i>n</i> ECDSA signatures over the vote identifiers</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="0" y="32" width="216" height="112" as="geometry"/></mxCell><mxCell id="c7" value='<b>state transition</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li><font face="Courier New">processID</font>, old and new state roots</li><li><i>n</i>, <i>w</i>, <font face="Courier New">occupiedBefore</font></li><li>inclusion proofs of the five configuration leaves</li><li>transition chains: vote identifiers, ballots, refreshes, accumulator</li><li>new, overwritten and refreshed ballots; old accumulator</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="0" y="160" width="216" height="136" as="geometry"/></mxCell><mxCell id="c8" value='<b>eligibility</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li><i>n</i> Merkle census proofs, or</li><li><i>n</i> CSP credentials (signature, weight, index)</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="0" y="312" width="216" height="72" as="geometry"/></mxCell><mxCell id="c9" value='<b>re-encryption</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>encryption key</li><li>secret seed of the batch</li><li><i>n</i> encrypted ballots, as proven</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="0" y="400" width="216" height="88" as="geometry"/></mxCell><mxCell id="c10" value='<b>blobs</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li><font face="Courier New">processID</font>, old state root</li><li>KZG commitments of the blobs</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="0" y="504" width="216" height="60" as="geometry"/></mxCell><mxCell id="c11" value='<b>ballot proof verification</b><div style="font-size:10px;line-height:1.25;margin-top:3px">key hash = leaf 0x7; batched Groth16 check</div>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="32" width="228" height="52" as="geometry"/></mxCell><mxCell id="c12" value='<b>authentication</b><div style="font-size:10px;line-height:1.25;margin-top:3px">address recovered from each signature</div>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="92" width="228" height="52" as="geometry"/></mxCell><mxCell id="c13" value='<b>state transition</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>configuration read under the old root</li><li>key namespaces and slot binding</li><li>chain of tree transitions</li><li>re-encryption from the seed chain</li><li>results accumulation</li><li>silent refresh: count, occupied, disjoint, sorted</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="160" width="228" height="136" as="geometry"/></mxCell><mxCell id="c14" value='<b>census membership</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>Merkle: one root, valid paths, no duplicates</li><li>CSP: one signer key; distinct addresses and indexes</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="312" width="228" height="72" as="geometry"/></mxCell><mxCell id="c15" value='<b>binding</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>same <font face="Courier New">processID</font>, root and key in all blocks</li><li><font face="Courier New">inputsHash</font> recomputed</li><li>census address = ballot address</li><li>stored ballot = verified re-encryption</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="400" width="228" height="88" as="geometry"/></mxCell><mxCell id="c16" value='<b>data blobs</b><ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"><li>blob cells rebuilt from the verified state</li><li>z<sub style="line-height:0">b</sub> from the commitment, y<sub style="line-height:0">b</sub> = p<sub style="line-height:0">b</sub>(z<sub style="line-height:0">b</sub>); digest</li></ul>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=left;verticalAlign=top;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;spacingTop=5;spacingLeft=8;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="504" width="228" height="60" as="geometry"/></mxCell><mxCell id="c17" value='<font face="Courier New">stateRoot</font><sup style="line-height:0">old</sup>,<br><font face="Courier New">stateRoot</font><sup style="line-height:0">new</sup>,<br><font face="Courier New">numVotes,</font><br><font face="Courier New">numOverwrites,</font><br><font face="Courier New">occupiedBefore</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="528" y="188.0" width="122" height="80" as="geometry"/></mxCell><mxCell id="c18" value='<font face="Courier New">censusRoot</font><br>(or CSP address)' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="528" y="330.0" width="122" height="36" as="geometry"/></mxCell><mxCell id="c19" value='<font face="Courier New">blobsDigest, nBlobs</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="528" y="520.0" width="122" height="28" as="geometry"/></mxCell><mxCell id="c20" value="<b>verdict</b>: every group passed" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="284" y="604" width="180" height="32" as="geometry"/></mxCell><mxCell id="c21" value='<font face="Courier New">ok, failMask</font>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="528" y="604" width="122" height="32" as="geometry"/></mxCell><mxCell id="c22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.2321;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c11"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.7679;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" 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=Helvetica;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="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=Helvetica;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=Helvetica;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=Helvetica;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=Helvetica;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="c13" 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=Helvetica;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="c14" target="c18"><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=Helvetica;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="c16" target="c19"><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=Helvetica;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c32" value="all groups" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;spacing=0;" vertex="1" parent="1"><mxGeometry x="380.0" y="578" width="120" height="24" as="geometry"/></mxCell><mxCell id="c33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Helvetica;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="c20" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>