Skip to content

Commit

Permalink
Reorder authorization fields for authority recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Jun 20, 2024
1 parent 62419ca commit 1ee24e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The [EIP-2718](./eip-2718.md) `ReceiptPayload` for this transaction is `rlp([sta

At the start of executing the transaction, for each `[chain_id, address, [nonce], y_parity, r, s]` tuple:

1. `authority = ecrecover(keccak(MAGIC || rlp([chain_id, [nonce], address])), y_parity, r, s]`
1. `authority = ecrecover(keccak(MAGIC || rlp([chain_id, address, [nonce]])), y_parity, r, s]`
2. Verify the chain id is either 0 or the chain's current ID.
3. Verify that the code of `authority` is empty.
4. If nonce list item is length one, verify the nonce of `authority` is equal to `nonce`.
Expand Down

0 comments on commit 1ee24e1

Please sign in to comment.