Skip to content

Commit

Permalink
deploy: 0600bda
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianst committed Oct 28, 2024
1 parent 5d3f8e6 commit 6afa749
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
11 changes: 7 additions & 4 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -3113,14 +3113,17 @@ <h3 id="frame-format"><a class="header" href="#frame-format">Frame Format</a></h
</ul>
<h3 id="channel-format"><a class="header" href="#channel-format">Channel Format</a></h3>
<p>A channel is encoded by applying a streaming compression algorithm to a list of batches:</p>
<pre><code class="language-text">rlp_batches = []
<pre><code class="language-text">encoded_batches = []
for batch in batches:
rlp_batches.append(batch)
encoded_batches ++ batch.encode()
rlp_batches = rlp_encode(encoded_batches)
</code></pre>
<p>where:</p>
<ul>
<li><code>batches</code> is the input, a sequence of batches byte-encoded as per the next section ("Batch Encoding")</li>
<li><code>rlp_batches</code> is the concatenation of the RLP-encoded batches</li>
<li><code>batches</code> is the input, a sequence of batches each with a byte-encoder
function <code>.encode()</code> as per the next section ("Batch Encoding")</li>
<li><code>encoded_batches</code> is a byte array: the concatenation of the encoded batches</li>
<li><code>rlp_batches</code> is the rlp encoding of the concatenated encoded batches</li>
</ul>
<pre><code class="language-text">channel_encoding = zlib_compress(rlp_batches)
</code></pre>
Expand Down
11 changes: 7 additions & 4 deletions protocol/derivation.html
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,17 @@ <h3 id="frame-format"><a class="header" href="#frame-format">Frame Format</a></h
</ul>
<h3 id="channel-format"><a class="header" href="#channel-format">Channel Format</a></h3>
<p>A channel is encoded by applying a streaming compression algorithm to a list of batches:</p>
<pre><code class="language-text">rlp_batches = []
<pre><code class="language-text">encoded_batches = []
for batch in batches:
rlp_batches.append(batch)
encoded_batches ++ batch.encode()
rlp_batches = rlp_encode(encoded_batches)
</code></pre>
<p>where:</p>
<ul>
<li><code>batches</code> is the input, a sequence of batches byte-encoded as per the next section ("Batch Encoding")</li>
<li><code>rlp_batches</code> is the concatenation of the RLP-encoded batches</li>
<li><code>batches</code> is the input, a sequence of batches each with a byte-encoder
function <code>.encode()</code> as per the next section ("Batch Encoding")</li>
<li><code>encoded_batches</code> is a byte array: the concatenation of the encoded batches</li>
<li><code>rlp_batches</code> is the rlp encoding of the concatenated encoded batches</li>
</ul>
<pre><code class="language-text">channel_encoding = zlib_compress(rlp_batches)
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 6afa749

Please sign in to comment.