arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
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='&lt;b&gt;ballot proofs&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;ballot verification key&lt;/li&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt; Groth16 proofs with (&lt;font face="Courier New"&gt;address&lt;/font&gt;, &lt;font face="Courier New"&gt;voteID&lt;/font&gt;, &lt;font face="Courier New"&gt;inputsHash&lt;/font&gt;)&lt;/li&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt; ECDSA signatures over the vote identifiers&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;state transition&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;&lt;font face="Courier New"&gt;processID&lt;/font&gt;, old and new state roots&lt;/li&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt;, &lt;i&gt;w&lt;/i&gt;, &lt;font face="Courier New"&gt;occupiedBefore&lt;/font&gt;&lt;/li&gt;&lt;li&gt;inclusion proofs of the five configuration leaves&lt;/li&gt;&lt;li&gt;transition chains: vote identifiers, ballots, refreshes, accumulator&lt;/li&gt;&lt;li&gt;new, overwritten and refreshed ballots; old accumulator&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;eligibility&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt; Merkle census proofs, or&lt;/li&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt; CSP credentials (signature, weight, index)&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;re-encryption&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;encryption key&lt;/li&gt;&lt;li&gt;secret seed of the batch&lt;/li&gt;&lt;li&gt;&lt;i&gt;n&lt;/i&gt; encrypted ballots, as proven&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;blobs&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;&lt;font face="Courier New"&gt;processID&lt;/font&gt;, old state root&lt;/li&gt;&lt;li&gt;KZG commitments of the blobs&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;ballot proof verification&lt;/b&gt;&lt;div style="font-size:10px;line-height:1.25;margin-top:3px"&gt;key hash = leaf 0x7; batched Groth16 check&lt;/div&gt;' 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='&lt;b&gt;authentication&lt;/b&gt;&lt;div style="font-size:10px;line-height:1.25;margin-top:3px"&gt;address recovered from each signature&lt;/div&gt;' 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='&lt;b&gt;state transition&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;configuration read under the old root&lt;/li&gt;&lt;li&gt;key namespaces and slot binding&lt;/li&gt;&lt;li&gt;chain of tree transitions&lt;/li&gt;&lt;li&gt;re-encryption from the seed chain&lt;/li&gt;&lt;li&gt;results accumulation&lt;/li&gt;&lt;li&gt;silent refresh: count, occupied, disjoint, sorted&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;census membership&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;Merkle: one root, valid paths, no duplicates&lt;/li&gt;&lt;li&gt;CSP: one signer key; distinct addresses and indexes&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;binding&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;same &lt;font face="Courier New"&gt;processID&lt;/font&gt;, root and key in all blocks&lt;/li&gt;&lt;li&gt;&lt;font face="Courier New"&gt;inputsHash&lt;/font&gt; recomputed&lt;/li&gt;&lt;li&gt;census address = ballot address&lt;/li&gt;&lt;li&gt;stored ballot = verified re-encryption&lt;/li&gt;&lt;/ul&gt;' 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='&lt;b&gt;data blobs&lt;/b&gt;&lt;ul style="margin:3px 0 0 0;padding-left:13px;font-size:10px;line-height:1.25"&gt;&lt;li&gt;blob cells rebuilt from the verified state&lt;/li&gt;&lt;li&gt;z&lt;sub style="line-height:0"&gt;b&lt;/sub&gt; from the commitment, y&lt;sub style="line-height:0"&gt;b&lt;/sub&gt; = p&lt;sub style="line-height:0"&gt;b&lt;/sub&gt;(z&lt;sub style="line-height:0"&gt;b&lt;/sub&gt;); digest&lt;/li&gt;&lt;/ul&gt;' 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='&lt;font face="Courier New"&gt;stateRoot&lt;/font&gt;&lt;sup style="line-height:0"&gt;old&lt;/sup&gt;,&lt;br&gt;&lt;font face="Courier New"&gt;stateRoot&lt;/font&gt;&lt;sup style="line-height:0"&gt;new&lt;/sup&gt;,&lt;br&gt;&lt;font face="Courier New"&gt;numVotes,&lt;/font&gt;&lt;br&gt;&lt;font face="Courier New"&gt;numOverwrites,&lt;/font&gt;&lt;br&gt;&lt;font face="Courier New"&gt;occupiedBefore&lt;/font&gt;' 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='&lt;font face="Courier New"&gt;censusRoot&lt;/font&gt;&lt;br&gt;(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='&lt;font face="Courier New"&gt;blobsDigest, nBlobs&lt;/font&gt;' 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="&lt;b&gt;verdict&lt;/b&gt;: 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='&lt;font face="Courier New"&gt;ok, failMask&lt;/font&gt;' 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>