Overview
We have four circuits, that receive some queue of elements and do sorting and deduplicating:
LogSorter - used by EventsSorter and L1MessageSorter.
The main scenario is the following: we have an input_queue
of elements, that
could be compared between each other,
could be represented (encoded) as
[Num<F>; N]
.
Then we create sorted_queue
, that contains all the elements in sorted order.
And we create an empty result_queue
to store the results.
In the end, we can compute challenges
that is [Num<F>, N+1]
from states of input_queue
and sorted_queue
.
Then the algorithm is the following:
You can read more about permutation argument here.
Last updated