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: shuffle/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ This section presents two definitions, a recursive one that uses an integer sequ
5
5
6
6
The implementation of Eq 329 is not generally used in the Gray Paper, and so we present test vectors only for the version of Eq 331. However, the present script creates these test cases with recourse to the Eq 329 implementation, to reproduce exactly the definition of the Gray Paper.
7
7
8
+
Note: All gray paper references in this document are to version 0.4.3, October 21st 2024.
9
+
8
10
## Notes about test parameters
9
11
10
12
In every case, the output must be a permutation of the input sequence, and this is checked by the generating script.
11
13
In the GP, at the moment, this function is used only to shuffle sequences of validators or cores, both of which are identified by integers. For that reason, all test cases use integers as the input type. All the input elements are distinct to ensure the final positions of each element are unambiguously determined.
12
14
13
-
All test cases use the same entropy, which is a 32-byte sequence with values from 0 to 31.
14
-
15
15
All the inputs to each test case are integer sequences, ranging from 0 to n-1, where n is the length. The test cases are described only by the entropy and the length of the input, and so the actual input sequence has to be recreated when using these test cases.
0 commit comments