EIP-8202 · Draft · Core · 2026-03-22
EIP-8202: Scheme-Agile Transactions
Proposes one new transaction type with an EIP-1559 fee header, pluggable signature schemes and flat add-on extensions (blobs, set-code), so new features stop requiring a new transaction type each time, and introduces a quantum-safe one-time-key scheme.
What problem does it solve?
Each new transaction feature in Ethereum has so far meant a new top-level EIP-2718 type: access lists (type 1), EIP-1559 fees (type 2), blobs (type 3, EIP-4844), set-code (type 4, EIP-7702). They are almost the same body with a few fields appended, and they don't combine: someone wanting a new signature scheme and blobs and set-code would need yet another type.
At the same time, Ethereum needs a way to move EOAs off secp256k1 ECDSA before quantum computers can break it, without wrapping execution in a new abstraction.
EIP-8202 defines a single SchemedTransaction (type 0x05) whose features compose as independent pieces.
How it works
The envelope is a fixed 1559-style base plus two typed lists:
0x05 || rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas,
gas_limit, to, value, data, authorizations, extensions])
authorizations: entries[role_id, scheme_id, witness]. Exactly oneSENDERrole is required (aPAYERrole is reserved). Schemes defined so far:0x00secp256k1: same signature and same address as today, no extra gas.0x01ephemeral secp256k1: the user commits to 2^20 one-time keys in a Keccak Merkle tree; the address iskeccak256(0x01 || merkle_root)[12:]. The transaction at nonceimust be signed by keyiwith a Merkle proof. A revealed key becomes useless once the nonce advances, so security rests on Keccak preimage resistance. Surcharge: 5,000 gas.
extensions: entries[extension_id, payload], unique by id.0x01carries blob fields (max_fee_per_blob_gas,blob_versioned_hashes) with EIP-4844 rules;0x02carries EIP-7702-style set-code authorizations, each with its own(scheme_id, witness).
Unknown roles, schemes or extensions make the transaction invalid. There is no access list in the base (block-level access lists cover that). Intrinsic gas follows EIP-2780 and the EIP-7976 calldata floor. The sender signs everything except the witnesses.
Sample code
Building the sender signing hash (pseudocode from the spec, simplified):
SCHEMED_TX_TYPE = 0x05
ROLE_SENDER, SCHEME_SECP256K1, EXT_BLOB = 0x00, 0x00, 0x01
def sender_signing_hash(tx):
return keccak256(bytes([SCHEMED_TX_TYPE]) + rlp.encode([
tx.chain_id, tx.nonce, tx.max_priority_fee_per_gas, tx.max_fee_per_gas,
tx.gas_limit, tx.to, tx.value, tx.data,
[[ROLE_SENDER, tx.authorizations[0].scheme_id]], # witness omitted
tx.extensions,
]))
# A blob-carrying transaction signed with an ordinary key:
tx.extensions = [[EXT_BLOB, rlp.encode([max_fee_per_blob_gas, versioned_hashes])]]
y, r, s = ecdsa_sign(sk, sender_signing_hash(tx))
tx.authorizations = [[ROLE_SENDER, SCHEME_SECP256K1, rlp.encode([y, r, s])]]
Things to know
- Status: Draft. The type byte, scheme ids and gas numbers may change; wallets and libraries do not support it yet.
- Contracts see the sender via
msg.sender/tx.originregardless of scheme. Moving to the ephemeral scheme gives you a new address, so funds must be migrated. - An ephemeral key is still exposed while its transaction sits in the mempool; the spec notes this window for an attacker fast enough to break ECDSA within a block.
- The design is deliberately flat: one execution payload, no nested transactions. A frame-style extension like EIP-8141 could be added later as an extension.