davinci-paper/v2/figures/blob-layout.drawio
v2/figures/blob-layout.drawioRaw
1<mxfile host="drawio"><diagram name="blob-layout" id="blob-layout"><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="820" height="520" as="geometry"/></mxCell><mxCell id="c4" value="<b>cells</b> (32-byte big-endian elements of the BLS12-381 scalar field), in order:" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="14" y="8" width="790" height="24" as="geometry"/></mxCell><mxCell id="c5" value="header<br>n<sub>up</sub> + 2<sup>64</sup>&middot;n<sub>id</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="38" width="110" height="52" as="geometry"/></mxCell><mxCell id="c6" value="n<sub>id</sub> vote IDs, then n<sub>up</sub> slots,<br>4 per cell: &lceil;(n<sub>id</sub>+n<sub>up</sub>)/4&rceil; cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="126" y="38" width="300" height="52" as="geometry"/></mxCell><mxCell id="c7" value="ballot of slot 1:<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="426" y="38" width="190" height="52" as="geometry"/></mxCell><mxCell id="c8" value="ballot of slot 2:<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="616" y="38" width="190" height="52" as="geometry"/></mxCell><mxCell id="c9" value="&hellip;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="102" width="60" height="52" as="geometry"/></mxCell><mxCell id="c10" value="ballot of slot n<sub>up</sub>:<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="76" y="102" width="220" height="52" as="geometry"/></mxCell><mxCell id="c11" value="zero cells up to<br>4096 &middot; nBlobs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="296" y="102" width="230" height="52" as="geometry"/></mxCell><mxCell id="c12" value="split into blobs of 4096 cells: T = 1 + &lceil;(n<sub>id</sub>+n<sub>up</sub>)/4&rceil; + 2&middot;n<sub>f</sub>&middot;n<sub>up</sub> cells in total, nBlobs = &lceil;T / 4096&rceil; &le; 32" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="160" width="790" height="40" as="geometry"/></mxCell><mxCell id="c13" value="<b>packed cell</b> = a&middot;2<sup>189</sup> + b&middot;2<sup>126</sup> + c&middot;2<sup>63</sup> + d" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="204" width="480" height="24" as="geometry"/></mxCell><mxCell id="c14" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="230" width="36" height="34" as="geometry"/></mxCell><mxCell id="c15" value="a (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="52" y="230" width="110" height="34" as="geometry"/></mxCell><mxCell id="c16" value="b (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="162" y="230" width="110" height="34" as="geometry"/></mxCell><mxCell id="c17" value="c (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="272" y="230" width="110" height="34" as="geometry"/></mxCell><mxCell id="c18" value="d (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="382" y="230" width="110" height="34" as="geometry"/></mxCell><mxCell id="c19" value="vote IDs enter without their top bit (they lie in [2<sup>63</sup>, 2<sup>64</sup>)); slots are already below 2<sup>63</sup>" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="266" width="480" height="40" as="geometry"/></mxCell><mxCell id="c20" value="<b>point cell</b>: (x, y) &rarr; y + 2<sup>254</sup>&middot;(x mod 2)" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="320" width="480" height="24" as="geometry"/></mxCell><mxCell id="c21" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="346" width="36" height="34" as="geometry"/></mxCell><mxCell id="c22" value="x mod 2" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="52" y="346" width="90" height="34" as="geometry"/></mxCell><mxCell id="c23" value="y (254 bits, BN254 field element)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="142" y="346" width="350" height="34" as="geometry"/></mxCell><mxCell id="c24" value="the identity (0, 1) encodes as 1; p<sub>BN254</sub> + 2<sup>254</sup> &lt; q<sub>BLS</sub>, so every cell is a field element" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="382" width="480" height="40" as="geometry"/></mxCell><mxCell id="c25" value="<b>binding to the commitments</b><div style='text-align:left;font-size:12px;line-height:1.45;margin-top:4px'>for each blob b with commitment com<sub>b</sub>:<br>z<sub>b</sub> = H(processID || stateRoot<sup>old</sup><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| com<sub>b</sub>) mod q<sub>BLS</sub><br>y<sub>b</sub> = p<sub>b</sub>(z<sub>b</sub>), computed in the program<br>blobsDigest = H(com<sub>1</sub> || y<sub>1</sub> || &hellip;)<br><br>the registry opens each (com<sub>b</sub>, z<sub>b</sub>, y<sub>b</sub>)<br>with the point-evaluation precompile<br>against the blob's versioned hash</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=8;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="512" y="204" width="292" height="222" as="geometry"/></mxCell><mxCell id="c26" value="Slots are listed once, in increasing order, whether they hold a new vote, an overwrite, or a silent refresh (n<sub>id</sub> = n, n<sub>up</sub> = n + |R|). The results accumulator is not published; observers recompute it from the old and new ballots of the listed slots." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="440" width="790" height="70" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>