{"eip":8105,"title":"Universal Enshrined Encrypted Mempool","description":"Add a scheme agnostic encrypted mempool","authors":["Jannik Luhn (@jannikluhn)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-12-17","requires":[7732],"discussionsTo":"https://ethereum-magicians.org/t/eip-8105-universal-enshrined-encrypted-mempool/27201","repo":"EIPs","label":"EIP-8105","officialUrl":"https://eips.ethereum.org/EIPS/eip-8105","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8105.md","url":"https://eips.huatuo.xyz/eip-8105/","tldr":{"en":"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.","ja":"暗号化メンプールを Ethereum 自体に組み込む提案。トランザクションはブロックに含まれるまで隠されたままとなり、フロントランやサンドイッチ攻撃を防ぎつつ、ユーザーは任意の復号鍵プロバイダーを選べる。","ko":"암호화된 멤풀을 이더리움 자체에 내장하자는 제안. 트랜잭션이 블록에 포함될 때까지 숨겨져 프런트러닝과 샌드위치 공격을 막고, 사용자는 어떤 복호화 키 제공자든 고를 수 있다.","zh":"提议把加密内存池内建到以太坊本身：交易在被打包进区块之前保持隐藏，阻止抢跑和三明治攻击，同时让用户可以选择任意解密密钥提供方。"},"tags":["mempool","mev","encryption","censorship-resistance","core"],"explainers":{"en":{"lang":"en","tldr":"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.","tags":["mempool","mev","encryption","censorship-resistance","core"],"related":[7732,2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8105/","markdown":"## What problem does it solve?\n\nToday 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.\n\nEIP-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.\n\nThe 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](/eip-7732/).\n\n## How it works\n\n- **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.)\n- **Two new transaction types** ([EIP-2718](/eip-2718/)):\n  - `0x05` *encrypted* transaction: a plaintext envelope with fee fields, gas amount, `key_provider_id`, `key_id`, the `encrypted_payload` and the envelope signature.\n  - `0x06` *decrypted* transaction: the revealed inner transaction (destination, value, data, access list, its own signature) plus the `envelope_signer`.\n- **Fees are paid up front.** The envelope increments the signer's nonce and pays for the full `gas_amount` like an [EIP-1559](/eip-1559/) transaction, in the block where it is included. No refunds, so the builder knows what it earns regardless of the hidden content.\n- **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.\n- **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.\n\nBlock layout: decrypted transactions first, ordinary transactions in the middle, encrypted transactions last.\n\n## Sample code\n\nStructure of the two new transaction types (RLP, from the spec):\n\n```text\n# Encrypted (included in block N, fee paid here)\n0x05 || rlp([chain_id, envelope_nonce, max_priority_fee_per_gas, max_fee_per_gas,\n             gas_amount, key_provider_id, key_id, encrypted_payload,\n             envelope_signature_y_parity, envelope_signature_r, envelope_signature_s])\n\n# Decrypted (placed at the start of block N+1, executed there)\n0x06 || rlp([envelope_signer, nonce, destination, amount, data, access_list,\n             signature_y_parity, signature_r, signature_s])\n```\n\nIllustrative ordering check a client might run on a block:\n\n```python\ndef ordering_ok(txs):\n    rank = {0x06: 0, 0x05: 2}          # decrypted first, encrypted last\n    ranks = [rank.get(tx.type, 1) for tx in txs]\n    return ranks == sorted(ranks)\n```\n\n## Things to know\n\n- **Status: Draft.** Details may change; the registry contract code is not yet specified.\n- 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.\n- 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.\n- The EIP does not define payments or slashing for key providers; those are left to off-chain arrangements.\n- Plaintext transactions keep working, and the chain still progresses if key providers fail.\n"},"ja":{"lang":"ja","tldr":"暗号化メンプールを Ethereum 自体に組み込む提案。トランザクションはブロックに含まれるまで隠されたままとなり、フロントランやサンドイッチ攻撃を防ぎつつ、ユーザーは任意の復号鍵プロバイダーを選べる。","tags":["mempool","mev","encryption","censorship-resistance","core"],"related":[7732,2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8105/","markdown":"## 何を解決するのか\n\n現状、トランザクションはブロックに入る前に、公開メンプールに平文で置かれます。サーチャーやビルダーを含め、監視している誰もが大きなスワップを見て、その前後で取引を差し込めます（フロントラン、サンドイッチ）。ビルダーが特定のトランザクションを除外することもできます。\n\nEIP-8105 では、ユーザーが暗号化した形でトランザクションを送信できます。内容は、それを含むブロックが公開されたあとにはじめて明らかになるため、誰もそれを避けて並べ替えられず、ビルダーも内容に基づいて検閲できません。目標は並べ替えからの保護とリアルタイムの検閲耐性の向上であり、長期的なプライバシーではありません。すべてのトランザクションは最終的に公開されます。\n\n設計は意図的に**方式非依存**です。特定の暗号技術を選ぶことはせず、代わりに誰でも*鍵プロバイダー*を登録でき、そのプロバイダーはしきい値暗号、MPC 委員会、TEE、遅延暗号、FHE などを使えます。Shutter の取り組みと、すでに Gnosis Chain で稼働しているプロトコル外の暗号化メンプールを土台にしており、[EIP-7732](/eip-7732/) の enshrined proposer-builder separation に依存します。\n\n## 仕組み\n\n- **鍵プロバイダーのレジストリ。** 実行レイヤーのシステムコントラクトにより、任意のアカウントが鍵プロバイダーを登録できます。登録されたプロバイダーには ID が与えられ、復号関数と鍵検証関数を持つコントラクトを指します。プロバイダーは他のプロバイダーを信頼済みとして指定でき、信頼グラフを形成します。ビーコンチェーンがこのレジストリをミラーします。（コントラクトのソースはまだ TBD とされています。）\n- **2 つの新しいトランザクションタイプ**（[EIP-2718](/eip-2718/)）:\n  - `0x05` *暗号化*トランザクション: 手数料フィールド、ガス量、`key_provider_id`、`key_id`、`encrypted_payload`、エンベロープ署名を持つ平文のエンベロープ。\n  - `0x06` *復号済み*トランザクション: 明らかにされた内側のトランザクション（宛先、value、データ、アクセスリスト、それ自身の署名）と `envelope_signer`。\n- **手数料は前払い。** エンベロープは署名者の nonce をインクリメントし、含まれたブロックで [EIP-1559](/eip-1559/) のトランザクションと同様に `gas_amount` 全額を支払います。リファンドはなく、ビルダーは隠された内容にかかわらず自分の収益を把握できます。\n- **鍵の公開。** ビルダーがペイロードを公開した後、各鍵プロバイダーは、使用されたすべての key ID について、復号鍵か「withhold」通知のいずれかを公開します。EIP-7732 の Payload Timeliness Committee のメンバーが鍵を検証し、新しいビットフィールドによって、どの鍵が存在するかを証明します。\n- **次のブロックでの実行。** 次のブロックは、暗号化されたトランザクションと同じ順序で、復号済みトランザクションから始まらなければなりません。鍵が欠落と証明された場合、復号に失敗した場合、結果が不正な形式の場合、`envelope_signer` が一致しない場合、またはブロックを無効にしてしまう場合には、復号済みトランザクションは除外されます。そのガスはブロックのガスリミットに算入されず、追加の手数料も支払われません。\n\nブロックの構成: 復号済みトランザクションが先頭、通常のトランザクションが中間、暗号化トランザクションが最後です。\n\n## サンプルコード\n\n2 つの新しいトランザクションタイプの構造（RLP、仕様より）:\n\n```text\n# Encrypted (included in block N, fee paid here)\n0x05 || rlp([chain_id, envelope_nonce, max_priority_fee_per_gas, max_fee_per_gas,\n             gas_amount, key_provider_id, key_id, encrypted_payload,\n             envelope_signature_y_parity, envelope_signature_r, envelope_signature_s])\n\n# Decrypted (placed at the start of block N+1, executed there)\n0x06 || rlp([envelope_signer, nonce, destination, amount, data, access_list,\n             signature_y_parity, signature_r, signature_s])\n```\n\nクライアントがブロックに対して実行しうる、順序チェックの例:\n\n```python\ndef ordering_ok(txs):\n    rank = {0x06: 0, 0x05: 2}          # decrypted first, encrypted last\n    ranks = [rank.get(tx.type, 1) for tx in txs]\n    return ranks == sorted(ranks)\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** 詳細は変わる可能性があり、レジストリコントラクトのコードはまだ規定されていません。\n- ユーザーは、鍵プロバイダーが鍵を早く公開しない（フロントランを可能にする）こと、また遅く公開しない（手数料は支払われるのにトランザクションが実行されない）ことを信頼しなければなりません。また、同じブロック内で先行する暗号化トランザクションが使うプロバイダーにも、部分的に依存します。\n- 鍵プロバイダーは、自らのルールで鍵を公開しないことがあります。「key ID のフロントラン」への防御策として、key ID の名前空間をエンベロープ署名者のアドレスで区切ることが提案されています。\n- この EIP は、鍵プロバイダーへの支払いやスラッシングを定義しません。これらはオフチェーンの取り決めに委ねられています。\n- 平文のトランザクションは引き続き動作し、鍵プロバイダーが機能しなくてもチェーンは進行します。\n"},"ko":{"lang":"ko","tldr":"암호화된 멤풀을 이더리움 자체에 내장하자는 제안. 트랜잭션이 블록에 포함될 때까지 숨겨져 프런트러닝과 샌드위치 공격을 막고, 사용자는 어떤 복호화 키 제공자든 고를 수 있다.","tags":["mempool","mev","encryption","censorship-resistance","core"],"related":[7732,2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8105/","markdown":"## 어떤 문제를 해결하나요?\n\n현재 트랜잭션은 블록에 들어가기 전에 공개 멤풀에 평문으로 놓입니다. 서처와 빌더를 포함해 지켜보는 누구나 큰 스왑을 보고 그 앞뒤로 거래를 끼워 넣을 수 있습니다(프런트러닝, 샌드위치). 빌더는 특정 트랜잭션을 빼 버릴 수도 있습니다.\n\nEIP-8105는 사용자가 암호화된 형태로 트랜잭션을 제출하게 합니다. 내용은 그것을 포함한 블록이 공개된 후에야 드러나므로 아무도 그 주변으로 순서를 바꿀 수 없고, 빌더도 내용에 따라 검열할 수 없습니다. 목표는 순서 재배치로부터의 보호와 실시간 검열 저항성 향상이며, 장기적인 프라이버시가 아닙니다. 모든 트랜잭션은 결국 공개됩니다.\n\n설계는 의도적으로 **방식에 구애받지 않습니다**. 하나의 암호 기술을 고르지 않고, 누구나 *키 제공자*를 등록할 수 있으며 이 제공자는 임계값 암호, MPC 위원회, TEE, 지연 암호화, FHE 등을 쓸 수 있습니다. Shutter의 작업과 이미 Gnosis Chain에서 운영 중인 프로토콜 외부의 암호화 멤풀을 기반으로 하며, [EIP-7732](/eip-7732/)의 enshrined proposer-builder separation에 의존합니다.\n\n## 어떻게 동작하나요?\n\n- **키 제공자 레지스트리.** 실행 계층 시스템 컨트랙트가 아무 계정이나 키 제공자를 등록할 수 있게 하며, 등록된 제공자는 ID를 받고 복호화 함수와 키 검증 함수를 가진 컨트랙트를 가리킵니다. 제공자는 다른 제공자를 신뢰하는 것으로 표시할 수 있어 신뢰 그래프를 이룹니다. 비콘 체인이 이 레지스트리를 미러링합니다. (컨트랙트 소스는 아직 TBD로 표시되어 있습니다.)\n- **두 가지 새 트랜잭션 유형**([EIP-2718](/eip-2718/)):\n  - `0x05` *암호화* 트랜잭션: 수수료 필드, 가스량, `key_provider_id`, `key_id`, `encrypted_payload`, 봉투 서명을 담은 평문 봉투.\n  - `0x06` *복호화* 트랜잭션: 공개된 내부 트랜잭션(목적지, value, 데이터, 액세스 리스트, 자체 서명)과 `envelope_signer`.\n- **수수료는 선불입니다.** 봉투는 서명자의 nonce를 증가시키고, 포함된 블록에서 [EIP-1559](/eip-1559/) 트랜잭션처럼 `gas_amount` 전체를 지불합니다. 환불은 없으므로 빌더는 숨겨진 내용과 상관없이 자신이 얼마를 버는지 압니다.\n- **키 공개.** 빌더가 페이로드를 공개한 뒤, 각 키 제공자는 사용된 모든 key ID에 대해 복호화 키나 \"withhold\" 공지를 공개합니다. EIP-7732의 Payload Timeliness Committee 구성원이 키를 검증하고, 새로운 비트필드를 통해 어떤 키가 존재하는지 증명합니다.\n- **다음 블록에서 실행.** 다음 블록은 대응하는 암호화 트랜잭션과 같은 순서로 복호화된 트랜잭션들로 시작해야 합니다. 키가 없다고 증명되었거나, 복호화가 실패했거나, 결과 형식이 잘못되었거나, `envelope_signer`가 일치하지 않거나, 블록을 무효로 만들 경우 복호화된 트랜잭션은 제외됩니다. 해당 가스는 블록 가스 한도에 포함되지 않으며 추가 수수료도 지불되지 않습니다.\n\n블록 구성: 복호화된 트랜잭션이 맨 앞, 일반 트랜잭션이 가운데, 암호화된 트랜잭션이 맨 뒤입니다.\n\n## 샘플 코드\n\n두 가지 새 트랜잭션 유형의 구조(RLP, 명세에서 발췌):\n\n```text\n# Encrypted (included in block N, fee paid here)\n0x05 || rlp([chain_id, envelope_nonce, max_priority_fee_per_gas, max_fee_per_gas,\n             gas_amount, key_provider_id, key_id, encrypted_payload,\n             envelope_signature_y_parity, envelope_signature_r, envelope_signature_s])\n\n# Decrypted (placed at the start of block N+1, executed there)\n0x06 || rlp([envelope_signer, nonce, destination, amount, data, access_list,\n             signature_y_parity, signature_r, signature_s])\n```\n\n클라이언트가 블록에 대해 실행할 수 있는 순서 검사의 예시:\n\n```python\ndef ordering_ok(txs):\n    rank = {0x06: 0, 0x05: 2}          # decrypted first, encrypted last\n    ranks = [rank.get(tx.type, 1) for tx in txs]\n    return ranks == sorted(ranks)\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 세부 사항은 바뀔 수 있으며 레지스트리 컨트랙트 코드는 아직 정해지지 않았습니다.\n- 사용자는 키 제공자가 키를 너무 일찍 공개하지 않을 것(프런트러닝을 가능하게 함)과 너무 늦게 공개하지 않을 것(수수료는 지불되지만 트랜잭션이 실행되지 않음)을 신뢰해야 합니다. 또한 같은 블록 안에서 앞선 암호화 트랜잭션이 사용하는 제공자에게도 부분적으로 의존합니다.\n- 키 제공자는 자기 규칙에 따라 키를 공개하지 않을 수 있습니다. \"key ID 프런트러닝\"에 대한 방어책으로 key ID에 봉투 서명자의 주소로 네임스페이스를 두는 방법이 제안됩니다.\n- 이 EIP는 키 제공자에 대한 지급이나 슬래싱을 정의하지 않으며, 이는 오프체인 약정에 맡깁니다.\n- 평문 트랜잭션은 계속 동작하며, 키 제공자가 실패해도 체인은 계속 진행됩니다.\n"},"zh":{"lang":"zh","tldr":"提议把加密内存池内建到以太坊本身：交易在被打包进区块之前保持隐藏，阻止抢跑和三明治攻击，同时让用户可以选择任意解密密钥提供方。","tags":["mempool","mev","encryption","censorship-resistance","core"],"related":[7732,2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8105/","markdown":"## 它解决什么问题？\n\n如今交易在进入区块之前，会以明文形式留在公开内存池中。任何在观察的人，包括搜索者和构建者，都能看到一笔大额兑换，并在其前后插入交易（抢跑、三明治）。构建者还可以选择把特定交易排除在外。\n\nEIP-8105 让用户以加密形式提交交易。只有在包含它的区块发布之后，内容才会被揭示，因此没人能围绕它重排顺序，构建者也无法根据交易内容进行审查。目标是防止重排并提高实时抗审查能力，而不是长期隐私：每笔交易最终都会公开。\n\n该设计刻意做到**与方案无关**。它不指定某一种密码学技术；相反，任何人都可以注册一个*密钥提供方*，它可以使用门限加密、MPC 委员会、TEE、延迟加密或 FHE。它建立在 Shutter 的工作以及已在 Gnosis Chain 上运行的协议外加密内存池之上，并依赖 [EIP-7732](/eip-7732/) 的内置提议者-构建者分离。\n\n## 它如何运作\n\n- **密钥提供方注册表。** 一个执行层系统合约允许任意账户注册密钥提供方，注册后会获得一个 ID，并指向一个带有解密函数和密钥验证函数的合约。提供方可以把其他提供方标记为受信任，从而形成信任图。信标链会镜像这个注册表。（合约源码仍标注为 TBD。）\n- **两种新交易类型**（[EIP-2718](/eip-2718/)）：\n  - `0x05` *加密*交易：一个明文信封，包含费用字段、gas 数量、`key_provider_id`、`key_id`、`encrypted_payload` 和信封签名。\n  - `0x06` *解密*交易：被揭示的内部交易（目标地址、金额、数据、访问列表、它自己的签名）加上 `envelope_signer`。\n- **费用预先支付。** 信封会递增签名者的 nonce，并在其被包含的区块中像 [EIP-1559](/eip-1559/) 交易一样为全部 `gas_amount` 付费。不退款，因此无论隐藏的内容是什么，构建者都知道自己能赚到多少。\n- **密钥释放。** 构建者发布 payload 后，每个密钥提供方要为所使用的每个 key ID 发布解密密钥或一条“withhold”通知。EIP-7732 中 Payload Timeliness Committee 的成员验证这些密钥，并通过一个新的位字段证明哪些密钥已到位。\n- **在下一个区块中执行。** 下一个区块必须以解密后的交易开头，且顺序与其对应的加密交易相同。如果某笔解密交易的密钥被证明缺失、解密失败、结果格式错误、`envelope_signer` 不匹配，或会使区块无效，则该交易被排除在外。它的 gas 不计入区块 gas 上限，也不需额外支付费用。\n\n区块布局：解密交易在最前，普通交易在中间，加密交易在最后。\n\n## 示例代码\n\n两种新交易类型的结构（RLP，来自规范）：\n\n```text\n# Encrypted (included in block N, fee paid here)\n0x05 || rlp([chain_id, envelope_nonce, max_priority_fee_per_gas, max_fee_per_gas,\n             gas_amount, key_provider_id, key_id, encrypted_payload,\n             envelope_signature_y_parity, envelope_signature_r, envelope_signature_s])\n\n# Decrypted (placed at the start of block N+1, executed there)\n0x06 || rlp([envelope_signer, nonce, destination, amount, data, access_list,\n             signature_y_parity, signature_r, signature_s])\n```\n\n客户端可以对区块运行的示意性顺序检查：\n\n```python\ndef ordering_ok(txs):\n    rank = {0x06: 0, 0x05: 2}          # decrypted first, encrypted last\n    ranks = [rank.get(tx.type, 1) for tx in txs]\n    return ranks == sorted(ranks)\n```\n\n## 需要注意\n\n- **状态：Draft。** 细节可能变化；注册表合约代码尚未规定。\n- 用户必须信任自己的密钥提供方不会过早释放密钥（导致抢跑），也不会过晚释放（费用照付但交易永远不运行）。他们还在一定程度上依赖同一区块中更早的加密交易所使用的提供方。\n- 密钥提供方可能按自己的规则扣留密钥。针对“key ID 抢跑”，建议的防御方式是用信封签名者的地址为 key ID 加命名空间。\n- 该 EIP 没有为密钥提供方定义支付或罚没机制，这些留给链下安排。\n- 明文交易继续可用，即使密钥提供方失效，链也仍会继续推进。\n"}}}
