davinci-paper/v2/figures/smt-chain.drawio
v2/figures/smt-chain.drawioRaw
1<mxfile host="drawio"><diagram name="smt-chain" id="smt-chain"><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='<b>read under <font face="Courier New">stateRoot</font><sup style="line-height:0">old</sup></b><br><font face="Courier New">processID</font> (0x0), <font face="Courier New">ballotMode</font> (0x2),<br><font face="Courier New">encryptionKey</font> (0x3),<br><font face="Courier New">censusOrigin</font> (0x6), <font face="Courier New">ballotVKHash</font> (0x7)' 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="324" y="0" width="261" height="68" as="geometry"/></mxCell><mxCell id="c4" value='<font face="Courier New">stateRoot</font><sup style="line-height:0">old</sup>' style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;arcSize=40;" vertex="1" parent="1"><mxGeometry x="80.0" y="20" width="140" height="28" as="geometry"/></mxCell><mxCell id="c5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=none;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="c4" target="c3"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c6" value='<b>vote identifiers</b><br><i>n</i> &times; Insert(<font face="Courier New">voteID</font><sub style="line-height:0"><i>i</i></sub>, 0)' style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="0" y="68" width="300" height="44" as="geometry"/></mxCell><mxCell id="c7" 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="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c8" value="insert-only: a used identifier fails" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="324" y="68" width="261" height="44" as="geometry"/></mxCell><mxCell id="c9" value='r<sub style="line-height:0">1</sub>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;ellipse;" vertex="1" parent="1"><mxGeometry x="138.0" y="128" width="24" height="24" as="geometry"/></mxCell><mxCell id="c10" 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="c6" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c11" value="<b>ballots</b><br><i>n</i> &times; Insert or Update(<font face="Courier New">slot</font><sub style="line-height:0"><i>i</i></sub>, H(B'<sub style="line-height:0"><i>i</i></sub>))" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="0" y="168" width="300" height="44" as="geometry"/></mxCell><mxCell id="c12" 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="c9" target="c11"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="exactly <i>w</i> updates; slots pairwise distinct" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="324" y="168" width="261" height="44" as="geometry"/></mxCell><mxCell id="c14" value='r<sub style="line-height:0">2</sub>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;ellipse;" vertex="1" parent="1"><mxGeometry x="138.0" y="228" width="24" height="24" as="geometry"/></mxCell><mxCell id="c15" 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="c11" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c16" value="<b>silent refresh</b><br>|R| &times; Update(<font face="Courier New">slot</font><sub style="line-height:0"><i>j</i></sub>, H(R'<sub style="line-height:0"><i>j</i></sub>))" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;" vertex="1" parent="1"><mxGeometry x="0" y="268" width="300" height="44" as="geometry"/></mxCell><mxCell id="c17" 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="c14" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="occupied, not written by the batch,<br>strictly increasing slots" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="324" y="268" width="261" height="44" as="geometry"/></mxCell><mxCell id="c19" value='r<sub style="line-height:0">3</sub>' style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#666666;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;ellipse;" vertex="1" parent="1"><mxGeometry x="138.0" y="328" width="24" height="24" as="geometry"/></mxCell><mxCell id="c20" 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="c16" target="c19"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" value='<b>results accumulator</b><br>1 &times; Update(0x4, H(A<sup style="line-height:0">new</sup>))' style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;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="0" y="368" width="300" height="44" 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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c19" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="present iff some ballot is written<br>or refreshed" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#333333;spacing=0;" vertex="1" parent="1"><mxGeometry x="324" y="368" width="261" height="44" as="geometry"/></mxCell><mxCell id="c24" value='<font face="Courier New">stateRoot</font><sup style="line-height:0">new</sup>' style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=1;fontFamily=Helvetica;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=6;spacingTop=2;spacingBottom=2;arcSize=40;" vertex="1" parent="1"><mxGeometry x="80.0" y="428" width="140" height="28" as="geometry"/></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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c21" target="c24"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>