{"eip":7955,"title":"Permissionless CREATE2 Factory","description":"A permissionless method and parameters for deploying a CREATE2 factory across EVM chains to a deterministic address using EIP-7702.","authors":["Nicholas Rodrigues Lordello (@nlordell)","Richard Meissner (@rmeissner)","Valentin Seehausen (@vseehausen)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2025-05-15","requires":[1014,7702],"discussionsTo":"https://ethereum-magicians.org/t/multi-chain-deployment-process-for-a-permissionless-contract-factory/24318","repo":"ERCs","label":"ERC-7955","officialUrl":"https://eips.ethereum.org/EIPS/eip-7955","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7955.md","url":"https://eips.huatuo.xyz/eip-7955/","tldr":{"en":"A permissionless recipe that lets anyone deploy the same minimal CREATE2 factory to the same address on any EIP-7702 chain, solving the bootstrap problem for deterministic cross-chain deployments.","ja":"EIP-7702 に対応したどのチェーンでも、誰でも同じ最小限の CREATE2 ファクトリーを同じアドレスにデプロイできる、パーミッションレスな手順。クロスチェーンの決定論的デプロイにおけるブートストラップ問題を解決する。","ko":"EIP-7702를 지원하는 어떤 체인에서든 누구나 동일한 최소 CREATE2 팩토리를 같은 주소에 배포할 수 있게 하는 허가 불필요한 방법. 결정적 크로스체인 배포의 부트스트랩 문제를 해결한다.","zh":"一套无需许可的方案，让任何人都能在任意支持 EIP-7702 的链上，把同一个最小化的 CREATE2 工厂部署到同一个地址，解决确定性跨链部署的引导问题。"},"tags":["create2","deployment","factory","multichain","7702"],"explainers":{"en":{"lang":"en","tldr":"A permissionless recipe that lets anyone deploy the same minimal CREATE2 factory to the same address on any EIP-7702 chain, solving the bootstrap problem for deterministic cross-chain deployments.","tags":["create2","deployment","factory","multichain","7702"],"related":[1014,7702,2470,7997,155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7955/","markdown":"## What problem does it solve?\n\nDeploying a contract to the same address on many chains is usually done through a CREATE2 factory ([EIP-1014](/eip-1014/)) that already sits at a known address. But how does the factory itself get there? Today there are three answers, each with drawbacks:\n\n- **Nick's method**: a pre-signed, non-[EIP-155](/eip-155/) transaction from a keyless account. It fails on chains that require replay protection and breaks if gas parameters differ, because the signed gas price and limit cannot be changed.\n- **A guarded deployer key**: flexible, but permissioned. Whoever holds the key decides which chains get the factory, and a lost key or a mistake at the wrong nonce can make the canonical address unreachable.\n- **Chain preinstalls**: convenient, but not standardised and up to each chain.\n\nERC-7955 proposes a fourth, permissionless route using [EIP-7702](/eip-7702/) and standardises one universal factory so the ecosystem shares a single copy.\n\n## How it works\n\nThe spec publishes a deployer private key on purpose (derived from a documented vanity mnemonic), a fixed factory init code and a fixed salt. Because the key is public, **anyone** can sign with it.\n\n1. Deploy any *bootstrap contract* whose code runs `create2(0, initCode, salt)` with the standard init code and salt.\n2. Sign an EIP-7702 authorization with the public deployer key, delegating the deployer account to that bootstrap contract.\n3. Send a type `0x4` transaction that includes the authorization and calls the deployer address, which runs the bootstrap code.\n\nBecause CREATE2 binds the address to the deployer, salt and init code, the result is always the factory at `0xC0DEb853af168215879d284cc8B4d0A645fA9b0E` with the same runtime code. Nothing the deployer account does can permanently block that outcome.\n\nThe factory takes `salt (32 bytes) || init_code` as calldata, runs CREATE2, forwards `msg.value`, returns the new address left-padded to 32 bytes (ABI-compatible), and bubbles up revert data on failure. It avoids `PUSH0` for compatibility with chains that lack [EIP-3855](/eip-3855/).\n\n## Sample code\n\nDeploying a contract through the factory and predicting its address (ethers v6):\n\n```ts\nimport { Contract, concat, getCreate2Address, keccak256, zeroPadValue, toBeHex } from \"ethers\";\n\nconst FACTORY = \"0xC0DEb853af168215879d284cc8B4d0A645fA9b0E\";\nconst salt = zeroPadValue(toBeHex(1n), 32);\nconst initCode = myContractFactory.bytecode; // plus encoded constructor args if any\n\nconst predicted = getCreate2Address(FACTORY, salt, keccak256(initCode));\n\nconst tx = await signer.sendTransaction({\n  to: FACTORY,\n  data: concat([salt, initCode]),   // salt || init_code\n});\nawait tx.wait();\nconsole.log(\"deployed at\", predicted);\n```\n\n## Things to know\n\n- Status is **Draft**.\n- Never send funds to the deployer address or use its key for anything else: the key is public by design.\n- Because the key is public, someone can front-run a deployment and bump the deployer's nonce, invalidating your authorization. The spec treats this as gas griefing only; retry, or use a private transaction.\n- A future upgrade that lets accounts set code permanently could, on chains where the factory is not yet deployed, let someone lock the deployer account. The spec suggests an RIP could pin the factory code if that happens.\n- Related approaches: [ERC-2470](/eip-2470/) (an older singleton factory using Nick's method, Stagnant) and [EIP-7997](/eip-7997/) (a protocol-level deterministic factory).\n"},"ja":{"lang":"ja","tldr":"EIP-7702 に対応したどのチェーンでも、誰でも同じ最小限の CREATE2 ファクトリーを同じアドレスにデプロイできる、パーミッションレスな手順。クロスチェーンの決定論的デプロイにおけるブートストラップ問題を解決する。","tags":["create2","deployment","factory","multichain","7702"],"related":[1014,7702,2470,7997,155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7955/","markdown":"## 何を解決するのか\n\n多くのチェーンの同じアドレスにコントラクトをデプロイするには、通常、すでに既知のアドレスにある CREATE2 ファクトリー（[EIP-1014](/eip-1014/)）を使います。しかし、ファクトリー自体はどうやってそこに置くのでしょうか。現在は 3 つの答えがあり、それぞれに欠点があります。\n\n- **Nick's method**: 鍵を持たないアカウントからの、事前署名済みの非 [EIP-155](/eip-155/) トランザクション。リプレイ保護が必須のチェーンでは失敗し、署名済みのガス価格とリミットを変えられないため、ガスパラメーターが異なると動きません。\n- **保護されたデプロイヤー鍵**: 柔軟ですが、パーミッションが必要です。鍵を持つ人がどのチェーンにファクトリーを置くかを決め、鍵を失くしたり、間違った nonce でミスをしたりすると、正規のアドレスに到達できなくなることがあります。\n- **チェーンのプリインストール**: 便利ですが、標準化されておらず、各チェーン次第です。\n\nERC-7955 は、[EIP-7702](/eip-7702/) を使った 4 つ目のパーミッションレスな経路を提案し、エコシステムが 1 つのコピーを共有できるよう、1 つの汎用ファクトリーを標準化します。\n\n## 仕組み\n\n仕様は、意図的にデプロイヤーの秘密鍵（文書化されたバニティなニーモニックから導出）、固定のファクトリー init code、固定の salt を公開しています。鍵が公開されているため、**誰でも**それで署名できます。\n\n1. 標準の init code と salt で `create2(0, initCode, salt)` を実行するコードを持つ、任意の*ブートストラップコントラクト*をデプロイします。\n2. 公開されたデプロイヤー鍵で EIP-7702 の authorization に署名し、デプロイヤーアカウントをそのブートストラップコントラクトにデリゲートします。\n3. authorization を含み、デプロイヤーアドレスを呼び出す type `0x4` のトランザクションを送ると、ブートストラップのコードが実行されます。\n\nCREATE2 はアドレスをデプロイヤー、salt、init code に結び付けるため、結果は常に `0xC0DEb853af168215879d284cc8B4d0A645fA9b0E` にある、同じランタイムコードのファクトリーになります。デプロイヤーアカウントが何をしても、その結果を恒久的に妨げることはできません。\n\nファクトリーは `salt (32 バイト) || init_code` を calldata として受け取り、CREATE2 を実行し、`msg.value` を転送し、新しいアドレスを左詰めで 32 バイトに埋めて返し（ABI 互換）、失敗時には revert データを伝播します。[EIP-3855](/eip-3855/) のないチェーンとの互換性のため、`PUSH0` を使いません。\n\n## サンプルコード\n\nファクトリー経由でコントラクトをデプロイし、そのアドレスを予測する例（ethers v6）:\n\n```ts\nimport { Contract, concat, getCreate2Address, keccak256, zeroPadValue, toBeHex } from \"ethers\";\n\nconst FACTORY = \"0xC0DEb853af168215879d284cc8B4d0A645fA9b0E\";\nconst salt = zeroPadValue(toBeHex(1n), 32);\nconst initCode = myContractFactory.bytecode; // plus encoded constructor args if any\n\nconst predicted = getCreate2Address(FACTORY, salt, keccak256(initCode));\n\nconst tx = await signer.sendTransaction({\n  to: FACTORY,\n  data: concat([salt, initCode]),   // salt || init_code\n});\nawait tx.wait();\nconsole.log(\"deployed at\", predicted);\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。\n- デプロイヤーアドレスに資金を送ったり、その鍵を他の目的に使ったりしてはいけません。鍵は設計上、公開されています。\n- 鍵が公開されているため、誰かがデプロイを先回りして、デプロイヤーの nonce を進め、あなたの authorization を無効にすることがありえます。仕様はこれをガスの嫌がらせにすぎないとして扱っています。再試行するか、プライベートトランザクションを使ってください。\n- アカウントがコードを恒久的に設定できるようにする将来のアップグレードにより、ファクトリーがまだデプロイされていないチェーンでは、誰かがデプロイヤーアカウントをロックできてしまう可能性があります。その場合は、RIP でファクトリーのコードを固定できるかもしれないと、仕様は示唆しています。\n- 関連するアプローチ: [ERC-2470](/eip-2470/)（Nick's method を使う古いシングルトンファクトリー、Stagnant）と [EIP-7997](/eip-7997/)（プロトコルレベルの決定論的ファクトリー）。\n"},"ko":{"lang":"ko","tldr":"EIP-7702를 지원하는 어떤 체인에서든 누구나 동일한 최소 CREATE2 팩토리를 같은 주소에 배포할 수 있게 하는 허가 불필요한 방법. 결정적 크로스체인 배포의 부트스트랩 문제를 해결한다.","tags":["create2","deployment","factory","multichain","7702"],"related":[1014,7702,2470,7997,155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7955/","markdown":"## 어떤 문제를 해결하나요?\n\n여러 체인의 같은 주소에 컨트랙트를 배포하는 일은 보통 이미 알려진 주소에 있는 CREATE2 팩토리([EIP-1014](/eip-1014/))를 통해 이루어집니다. 그런데 팩토리 자체는 어떻게 거기에 놓일까요? 지금은 세 가지 답이 있고, 각각 단점이 있습니다.\n\n- **Nick's method**: 키 없는 계정에서 나온 미리 서명된 비 [EIP-155](/eip-155/) 트랜잭션. 리플레이 방지가 필수인 체인에서는 실패하고, 서명된 가스 가격과 한도를 바꿀 수 없어 가스 파라미터가 다르면 동작하지 않습니다.\n- **보호된 배포자 키**: 유연하지만 허가가 필요합니다. 키를 가진 사람이 어떤 체인에 팩토리를 둘지 결정하며, 키를 잃어버리거나 엉뚱한 nonce에서 실수하면 정식 주소에 도달할 수 없게 될 수 있습니다.\n- **체인 프리인스톨**: 편리하지만 표준화되어 있지 않고 각 체인에 달려 있습니다.\n\nERC-7955는 [EIP-7702](/eip-7702/)를 사용하는 네 번째 허가 불필요한 경로를 제안하고, 생태계가 하나의 사본을 공유하도록 범용 팩토리 하나를 표준화합니다.\n\n## 어떻게 동작하나요?\n\n스펙은 일부러 배포자 개인키(문서화된 베니티 니모닉에서 파생), 고정된 팩토리 init code, 고정된 salt를 공개합니다. 키가 공개되어 있으므로 **누구나** 그 키로 서명할 수 있습니다.\n\n1. 표준 init code와 salt로 `create2(0, initCode, salt)`를 실행하는 코드를 가진 아무 *부트스트랩 컨트랙트*나 배포합니다.\n2. 공개된 배포자 키로 EIP-7702 authorization에 서명하여 배포자 계정을 그 부트스트랩 컨트랙트에 위임합니다.\n3. authorization을 포함하고 배포자 주소를 호출하는 type `0x4` 트랜잭션을 보내면 부트스트랩 코드가 실행됩니다.\n\nCREATE2는 주소를 배포자, salt, init code에 묶기 때문에, 결과는 항상 `0xC0DEb853af168215879d284cc8B4d0A645fA9b0E`에 있는 동일한 런타임 코드의 팩토리입니다. 배포자 계정이 무엇을 하더라도 그 결과를 영구적으로 막을 수는 없습니다.\n\n팩토리는 `salt (32바이트) || init_code`를 calldata로 받아 CREATE2를 실행하고, `msg.value`를 전달하며, 새 주소를 왼쪽을 0으로 채워 32바이트로 반환하고(ABI 호환), 실패하면 revert 데이터를 그대로 올려 보냅니다. [EIP-3855](/eip-3855/)가 없는 체인과의 호환을 위해 `PUSH0`을 사용하지 않습니다.\n\n## 샘플 코드\n\n팩토리를 통해 컨트랙트를 배포하고 그 주소를 예측하기(ethers v6):\n\n```ts\nimport { Contract, concat, getCreate2Address, keccak256, zeroPadValue, toBeHex } from \"ethers\";\n\nconst FACTORY = \"0xC0DEb853af168215879d284cc8B4d0A645fA9b0E\";\nconst salt = zeroPadValue(toBeHex(1n), 32);\nconst initCode = myContractFactory.bytecode; // plus encoded constructor args if any\n\nconst predicted = getCreate2Address(FACTORY, salt, keccak256(initCode));\n\nconst tx = await signer.sendTransaction({\n  to: FACTORY,\n  data: concat([salt, initCode]),   // salt || init_code\n});\nawait tx.wait();\nconsole.log(\"deployed at\", predicted);\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다.\n- 배포자 주소로 자금을 보내거나 그 키를 다른 용도로 쓰지 마세요. 키는 설계상 공개되어 있습니다.\n- 키가 공개되어 있으므로, 누군가 배포를 앞질러 배포자의 nonce를 올려 여러분의 authorization을 무효로 만들 수 있습니다. 스펙은 이를 가스 괴롭힘일 뿐으로 봅니다. 다시 시도하거나 프라이빗 트랜잭션을 사용하세요.\n- 계정이 코드를 영구적으로 설정할 수 있게 하는 향후 업그레이드가 있으면, 아직 팩토리가 배포되지 않은 체인에서 누군가 배포자 계정을 잠가 버릴 수 있습니다. 스펙은 그런 일이 생기면 RIP로 팩토리 코드를 고정할 수 있을 것이라고 제안합니다.\n- 관련 접근법: [ERC-2470](/eip-2470/)(Nick's method를 쓰는 이전의 싱글턴 팩토리, Stagnant)과 [EIP-7997](/eip-7997/)(프로토콜 수준의 결정적 팩토리).\n"},"zh":{"lang":"zh","tldr":"一套无需许可的方案，让任何人都能在任意支持 EIP-7702 的链上，把同一个最小化的 CREATE2 工厂部署到同一个地址，解决确定性跨链部署的引导问题。","tags":["create2","deployment","factory","multichain","7702"],"related":[1014,7702,2470,7997,155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7955/","markdown":"## 它解决什么问题？\n\n要在许多条链上把合约部署到同一个地址，通常是通过一个已经位于已知地址的 CREATE2 工厂（[EIP-1014](/eip-1014/)）来完成。但工厂本身是怎么到那里的呢？如今有三种答案，各有缺点：\n\n- **Nick's method**：来自无密钥账户的、预先签名的非 [EIP-155](/eip-155/) 交易。它在要求重放保护的链上会失败，而且如果 gas 参数不同就会失效，因为已签名的 gas 价格和上限无法更改。\n- **受保护的部署者密钥**：灵活，但需要许可。持有密钥的人决定哪些链能得到工厂，密钥丢失或在错误的 nonce 上出错，都可能使规范地址无法到达。\n- **链的预装**：方便，但没有标准化，完全取决于各条链。\n\nERC-7955 提出第四种无需许可的途径，使用 [EIP-7702](/eip-7702/)，并标准化一个通用工厂，使整个生态共用同一份副本。\n\n## 它如何运作\n\n规范有意公布了一个部署者私钥（由一个有文档记录的靓号助记词派生而来）、一段固定的工厂 init code 和一个固定的 salt。由于密钥是公开的，**任何人**都可以用它签名。\n\n1. 部署任意一个*引导合约*，其代码使用标准 init code 和 salt 运行 `create2(0, initCode, salt)`。\n2. 用公开的部署者密钥签署一个 EIP-7702 authorization，把部署者账户委托给该引导合约。\n3. 发送一笔 type `0x4` 交易，其中包含该 authorization 并调用部署者地址，从而运行引导代码。\n\n由于 CREATE2 把地址绑定到部署者、salt 和 init code，结果总是位于 `0xC0DEb853af168215879d284cc8B4d0A645fA9b0E`、运行时代码相同的工厂。部署者账户无论做什么，都无法永久阻止这一结果。\n\n工厂以 `salt (32 字节) || init_code` 作为 calldata，运行 CREATE2，转发 `msg.value`，返回左填充到 32 字节的新地址（与 ABI 兼容），并在失败时向上传递 revert 数据。它避免使用 `PUSH0`，以兼容没有 [EIP-3855](/eip-3855/) 的链。\n\n## 示例代码\n\n通过工厂部署合约并预测其地址（ethers v6）：\n\n```ts\nimport { Contract, concat, getCreate2Address, keccak256, zeroPadValue, toBeHex } from \"ethers\";\n\nconst FACTORY = \"0xC0DEb853af168215879d284cc8B4d0A645fA9b0E\";\nconst salt = zeroPadValue(toBeHex(1n), 32);\nconst initCode = myContractFactory.bytecode; // plus encoded constructor args if any\n\nconst predicted = getCreate2Address(FACTORY, salt, keccak256(initCode));\n\nconst tx = await signer.sendTransaction({\n  to: FACTORY,\n  data: concat([salt, initCode]),   // salt || init_code\n});\nawait tx.wait();\nconsole.log(\"deployed at\", predicted);\n```\n\n## 需要注意\n\n- 状态为 **Draft**。\n- 切勿向部署者地址转入资金，也不要用其密钥做任何其他事情：该密钥在设计上就是公开的。\n- 由于密钥是公开的，有人可能抢先于你的部署并推高部署者的 nonce，使你的 authorization 失效。规范只把这视为 gas 骚扰；可以重试，或使用私有交易。\n- 将来如果有升级让账户可以永久设置代码，那么在尚未部署该工厂的链上，可能有人锁定部署者账户。规范建议，如果发生这种情况，可以通过 RIP 来固定工厂代码。\n- 相关方案：[ERC-2470](/eip-2470/)（使用 Nick's method 的较早的单例工厂，Stagnant）和 [EIP-7997](/eip-7997/)（协议层面的确定性工厂）。\n"}}}
