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
Copy file name to clipboardExpand all lines: book/src/values.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,14 +51,16 @@ The array, set and dictionary types are similar types. While all of them use [a
51
51
-`leaf.key=hash(original_key)`
52
52
-`leaf.value=hash(original_value)`
53
53
-**array**: the elements are placed at the value field of each leaf, and the key field is just the array index (integer)
54
-
-`leaf.value=original_value`
55
54
-`leaf.key=i`
55
+
-`leaf.value=original_value`
56
56
-**set**: the value field of the leaf is unused, and the key contains the hash of the element
57
57
-`leaf.key=hash(original_value)`
58
58
-`leaf.value=0`
59
59
60
60
In the three types, the merkletree under the hood allows to prove inclusion & non-inclusion of the particular entry of the {dictionary/array/set} element.
61
61
62
+
A concrete implementation of dictionary, array, set can be found at [pod2/src/middleware/containers.rs](https://github.com/0xPARC/pod2/blob/main/src/middleware/containers.rs).
0 commit comments