@@ -51,15 +51,17 @@ We also need comparisons that are ALLOWED TO FAIL
51
51
| -----------------| ---------------| ------------------| -------------------------| --------------------------------------------------------------------|
52
52
53
53
54
- ## Lookup to RLP_UTILS
54
+ ## RLP-ization of authority list tuples
55
55
56
- We need to RLP-ize the authority list items . Recall that these are of the form
56
+ We need to RLP-ize the authority list. Recall that these are of the form
57
57
58
- item ≡ [ chain_id, address, nonce, y_parity, r, s ]
58
+ authority_list ≡ [ authority_item, authority_item...]
59
+ authority_item ≡ [ chain_id, address, nonce, y_parity, r, s ]
59
60
60
61
With
61
62
- chain_id ≡ integer, 32B at most, rlp-ization: 1B to 33B
62
63
- address ≡ address, 20B exactly, rlp-ization: 21B
64
+ - nonce ≡ integer, 8B at most, rlp-ization: 1B to 9B
63
65
- y_parity ≡ integer, 1B at most, rlp-ization: 1B or 2B
64
66
- r ≡ integer, 32B at most, rlp-ization: 1B to 33B
65
67
- s ≡ integer, 32B at most, rlp-ization: 1B to 33B
@@ -70,11 +72,12 @@ so that
70
72
71
73
where k ∈ {25, ..., 122}. So that
72
74
73
- RLP( item ) ≡ RLP( ζ )
74
- ≡ <rlp prefix > ∙ ζ
75
+ RLP( authority_item ) ≡ RLP( ζ )
76
+ ≡ <rlp_prefix > ∙ ζ
75
77
76
78
and so we must call ` RLP_UTILS ` for
77
79
80
+ | -----------------------| ---------------| -------|
78
81
| RLP_UTILS instruction | argument | notes |
79
82
| -----------------------| ---------------| -------|
80
83
| BYTESTRING | global prefix | |
@@ -86,6 +89,10 @@ and so we must call `RLP_UTILS` for
86
89
| INTEGER | s | |
87
90
| -----------------------| ---------------| -------|
88
91
92
+ and for the whole list
93
+
94
+ RLP( authority_list ) ≡ <rlp_prefix> ∙ RLP( item_1 ) ∙ RLP( item_2 ) ∙ ⋯ ∙ RLP( item_n )
95
+
89
96
## Lookup to BLOCK_DATA
90
97
91
98
We need to justify the network chain id β.
0 commit comments