Skip to content

Commit 70fbf52

Browse files
committed
ras
1 parent cd2cdcc commit 70fbf52

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

rlp_auth/todo.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,17 @@ We also need comparisons that are ALLOWED TO FAIL
5151
|-----------------|---------------|------------------|-------------------------|--------------------------------------------------------------------|
5252

5353

54-
## Lookup to RLP_UTILS
54+
## RLP-ization of authority list tuples
5555

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
5757

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 ]
5960

6061
With
6162
- chain_id ≡ integer, 32B at most, rlp-ization: 1B to 33B
6263
- address ≡ address, 20B exactly, rlp-ization: 21B
64+
- nonce ≡ integer, 8B at most, rlp-ization: 1B to 9B
6365
- y_parity ≡ integer, 1B at most, rlp-ization: 1B or 2B
6466
- r ≡ integer, 32B at most, rlp-ization: 1B to 33B
6567
- s ≡ integer, 32B at most, rlp-ization: 1B to 33B
@@ -70,11 +72,12 @@ so that
7072

7173
where k ∈ {25, ..., 122}. So that
7274

73-
RLP( item ) ≡ RLP( ζ )
74-
≡ <rlp prefix> ∙ ζ
75+
RLP( authority_item ) ≡ RLP( ζ )
76+
≡ <rlp_prefix> ∙ ζ
7577

7678
and so we must call `RLP_UTILS` for
7779

80+
|-----------------------|---------------|-------|
7881
| RLP_UTILS instruction | argument | notes |
7982
|-----------------------|---------------|-------|
8083
| BYTESTRING | global prefix | |
@@ -86,6 +89,10 @@ and so we must call `RLP_UTILS` for
8689
| INTEGER | s | |
8790
|-----------------------|---------------|-------|
8891

92+
and for the whole list
93+
94+
RLP( authority_list ) ≡ <rlp_prefix> ∙ RLP( item_1 ) ∙ RLP( item_2 ) ∙ ⋯ ∙ RLP( item_n )
95+
8996
## Lookup to BLOCK_DATA
9097

9198
We need to justify the network chain id β.

0 commit comments

Comments
 (0)