EIPs Explained

EIP-8105 · Draft · Core · 2025-12-17

EIP-8105: Universal Enshrined Encrypted Mempool

Proposes building an encrypted mempool into Ethereum itself, so transactions stay hidden until they are included in a block, blocking front-running and sandwich attacks while letting users pick any decryption-key provider.

What problem does it solve?

Today a transaction sits in the public mempool in plaintext before it lands in a block. Anyone watching, including searchers and builders, can see a large swap and place trades around it (front-running, sandwiching). Builders can also choose to leave specific transactions out.

EIP-8105 lets users submit transactions in encrypted form. The content is only revealed after the block that includes it has been published, so nobody can reorder around it, and builders cannot censor based on what it does. The goal is protection against reordering and better real-time censorship resistance, not long-term privacy: every transaction becomes public eventually.

The design is deliberately scheme-agnostic. It does not pick one cryptographic technique; instead anyone can register a key provider that might use threshold encryption, an MPC committee, a TEE, delay encryption or FHE. It builds on the Shutter work and an out-of-protocol encrypted mempool already running on Gnosis Chain, and it depends on enshrined proposer-builder separation from EIP-7732.

How it works

  • Key provider registry. An execution-layer system contract lets any account register a key provider, which gets an ID and points to a contract with a decryption function and a key-validation function. Providers can mark other providers as trusted, forming a trust graph. The beacon chain mirrors this registry. (The contract source is still marked TBD.)
  • Two new transaction types (EIP-2718):
    • 0x05 encrypted transaction: a plaintext envelope with fee fields, gas amount, key_provider_id, key_id, the encrypted_payload and the envelope signature.
    • 0x06 decrypted transaction: the revealed inner transaction (destination, value, data, access list, its own signature) plus the envelope_signer.
  • Fees are paid up front. The envelope increments the signer's nonce and pays for the full gas_amount like an EIP-1559 transaction, in the block where it is included. No refunds, so the builder knows what it earns regardless of the hidden content.
  • Key release. After the builder publishes the payload, each key provider publishes either the decryption key or a "withhold" notice for every key ID used. Members of the Payload Timeliness Committee from EIP-7732 validate the keys and attest, via a new bitfield, which keys are present.
  • Execution in the next block. The next block must start with the decrypted transactions, in the same order as their encrypted counterparts. A decrypted transaction is left out if its key was attested missing, decryption fails, the result is malformed, the envelope_signer does not match, or it would make the block invalid. Its gas does not count toward the block gas limit and no extra fee is paid.

Block layout: decrypted transactions first, ordinary transactions in the middle, encrypted transactions last.

Sample code

Structure of the two new transaction types (RLP, from the spec):

# Encrypted (included in block N, fee paid here)
0x05 || rlp([chain_id, envelope_nonce, max_priority_fee_per_gas, max_fee_per_gas,
             gas_amount, key_provider_id, key_id, encrypted_payload,
             envelope_signature_y_parity, envelope_signature_r, envelope_signature_s])

# Decrypted (placed at the start of block N+1, executed there)
0x06 || rlp([envelope_signer, nonce, destination, amount, data, access_list,
             signature_y_parity, signature_r, signature_s])

Illustrative ordering check a client might run on a block:

def ordering_ok(txs):
    rank = {0x06: 0, 0x05: 2}          # decrypted first, encrypted last
    ranks = [rank.get(tx.type, 1) for tx in txs]
    return ranks == sorted(ranks)

Things to know

  • Status: Draft. Details may change; the registry contract code is not yet specified.
  • Users must trust their key provider not to release keys early (enabling front-running) or late (the fee is still paid but the transaction never runs). They also partly depend on providers used by encrypted transactions earlier in the same block.
  • Key providers may withhold keys by their own rules. A suggested defense against "key ID front-running" is namespacing key IDs with the envelope signer's address.
  • The EIP does not define payments or slashing for key providers; those are left to off-chain arrangements.
  • Plaintext transactions keep working, and the chain still progresses if key providers fail.

#mempool #mev #encryption #censorship-resistance #core

Details

Authors
Jannik Luhn (@jannikluhn)
Status
Draft
Type
Standards Track / Core
Created
2025-12-17
Requires

Machine-readable: Markdown · JSON