Skip to content

Commit

Permalink
chore(eip7702): Add decoding limits for AuthList items
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Jul 22, 2024
1 parent 3610fef commit 3cc063a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, dest
authorization_list = [[chain_id, address, nonce, y_parity, r, s], ...]
```

Transaction is considered invalid if authorization list items can't be decoded as:
* `chain_id` and `nonce`: u64 number.

Check failure on line 47 in EIPS/eip-7702.md

View workflow job for this annotation

GitHub Actions / Markdown Linter

Lists should be surrounded by blank lines [Context: "* `chain_id` and `nonce`: u64 ..."]

EIPS/eip-7702.md:47 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "* `chain_id` and `nonce`: u64 ..."]

Check failure on line 47 in EIPS/eip-7702.md

View workflow job for this annotation

GitHub Actions / Markdown Linter

Lists should be surrounded by blank lines [Context: "* `chain_id` and `nonce`: u64 ..."]

EIPS/eip-7702.md:47 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "* `chain_id` and `nonce`: u64 ..."]
* `address`: 20 bytes array.
* `y_parity`: single byte.
* `r` and `s`: 32 bytes array.

The fields `chain_id`, `nonce`, `max_priority_fee_per_gas`, `max_fee_per_gas`, `gas_limit`, `destination`, `value`, `data`, and `access_list` of the outer transaction follow the same semantics as [EIP-1559](./eip-1559.md).

The `authorization_list` is a list of tuples that store the address to code which the signer desires to execute in the context of their EOA.
Expand Down

0 comments on commit 3cc063a

Please sign in to comment.