From 1ee24e1cb3a1e7dc6c60eacc4902146802093f92 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 20 Jun 2024 20:23:46 +0200 Subject: [PATCH] Reorder authorization fields for authority recovery --- EIPS/eip-7702.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-7702.md b/EIPS/eip-7702.md index b04782b4d2bfc..18e77fe5b695b 100644 --- a/EIPS/eip-7702.md +++ b/EIPS/eip-7702.md @@ -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`.