You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full `Dictionary` is then represented in the backend as `root` (four field elements in the Plonky2 backend).
95
95
96
96
### Example 2
97
+
So for example, imagine we have 8 key-pairs, where the keys are just an enumeration from 0 to 7, then the tree leaves positions would look like:
98
+

99
+
100
+
Now let's change the key of the leaf `key=1`, and set it as `key=13`. Then, their respective leaf paths will be the same until they diverge in the 4-th bit:
101
+
102
+

103
+
104
+
105
+
### Example 3
97
106
98
107
Suppose we have 4 key-values, where the first four bits of the hashes of the keys are `0000`, `0100`, `1010` and `1011`. The tree would look like:
Copy file name to clipboardExpand all lines: book/src/statements.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,30 @@ On the back end, a statement is identified by a unique numerical _identifier_.
16
16
17
17
The POD system has several builtin statements. These statements are associated to a reserved set of statement IDs.
18
18
19
+
### Backend statements
20
+
21
+
<fontcolor="red">TODO: update table of backend statements </font>
22
+
23
+
A statement is a code (or, in the frontend, string identifier) followed by 0 or more arguments. These arguments may consist of up to three anchored keys and up to one POD value.
24
+
25
+
The following table summarises the natively-supported statements, where we write `value_of(ak)` for 'the value anchored key `ak` maps to', which is of type `PODValue`, and `key_of(ak)` for the key part of `ak`:
0 commit comments