{"eip":7555,"title":"Single Sign-On for Account Discovery","description":"Discover accounts using a signing key that do not use the secp256k1 curve.","authors":["Alexander Müller (@alexmmueller)","Gregory Markou (@GregTheGreek)","Willem Olding (@Wollum)","Belma Gutlic (@morrigan)","Marin Petrunić (@mpetrunic)","Pedro Gomes (@pedrouid)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2023-11-10","requires":[4337],"discussionsTo":"https://ethereum-magicians.org/t/erc-7555-single-sign-on-for-account-discovery/16536","repo":"ERCs","label":"ERC-7555","officialUrl":"https://eips.ethereum.org/EIPS/eip-7555","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7555.md","url":"https://eips.huatuo.xyz/eip-7555/","tldr":{"en":"A redirect-based single sign-on flow that lets an app ask a key provider which smart account a user already has, so passkey and other non-secp256k1 users don't end up with a new account in every app.","ja":"リダイレクトベースのシングルサインオンの流れ。アプリが鍵プロバイダーに、ユーザーが既に持っているスマートアカウントを問い合わせられるようにし、パスキーなど secp256k1 以外を使うユーザーがアプリごとに新しいアカウントを作られてしまうことを防ぐ。","ko":"리다이렉트 기반 싱글 사인온 흐름. 앱이 키 제공자에게 사용자가 이미 가진 스마트 계정이 무엇인지 물을 수 있게 하여, 패스키 등 secp256k1이 아닌 키를 쓰는 사용자가 앱마다 새 계정을 갖게 되는 일을 막는다.","zh":"一种基于重定向的单点登录流程，让应用可以向密钥提供方询问用户已有哪个智能账户，使使用通行密钥（passkey）等非 secp256k1 密钥的用户不会在每个应用里都得到一个新账户。"},"tags":["account-abstraction","sso","passkeys","wallets","discovery"],"explainers":{"en":{"lang":"en","tldr":"A redirect-based single sign-on flow that lets an app ask a key provider which smart account a user already has, so passkey and other non-secp256k1 users don't end up with a new account in every app.","tags":["account-abstraction","sso","passkeys","wallets","discovery"],"related":[4337,4361],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7555/","markdown":"## What problem does it solve?\n\nWith [ERC-4337](/eip-4337/) smart accounts, users can sign with passkeys, YubiKeys or phone secure enclaves instead of a classic secp256k1 private key. But those authenticators typically create a **different key per domain**. If a mobile app and a web app both use passkeys, the same person gets two unrelated keys, and each app happily deploys a fresh smart account for them.\n\nThe result is account fragmentation: one user, many unconnected addresses, assets scattered across them. An app has no standard way to ask \"does this person already have an account somewhere?\"\n\nERC-7555 borrows the web's single sign-on pattern so an application can send the user to a provider that knows their key, and get back the address of their existing smart account.\n\n## How it works\n\nThe proposal defines two routes on a provider, each a simple browser redirect with query parameters:\n\n| Route | Request params | Response params (sent to `redirect_uri`) |\n| --- | --- | --- |\n| `/auth/` | `redirect_uri`, `chain_id` | `smart_account_address` |\n| `/sendTransaction/` | `redirect_uri`, `chain_id`, `transaction` (RLP-encoded) | `smart_account_address`, `tx_hash` |\n\n1. The app redirects the user to the provider's `/auth/` URL.\n2. The provider authenticates the user however it likes (passkey, MPC, secure enclave…) and looks up any smart account deployed through it.\n3. The provider redirects back to the app's `redirect_uri` with the address in [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) format (`eip155:\u003cchainId\u003e:\u003caddress\u003e`).\n\n`/sendTransaction/` combines authentication with a transaction to sign, saving a second redirect (for example to register a plugin on the account).\n\nThe standard deliberately does **not** cover how providers generate keys, how users sign across domains, or the UI.\n\n## Sample code\n\nRequest and callback URIs (placeholder hosts):\n\n```text\nhttps://provider.example/auth/?redirect_uri=https://myapp.example/sso/callback\u0026chain_id=1\n\nhttps://myapp.example/sso/callback?smart_account_address=eip155:1:0xAbC...123\n```\n\nApp-side handling in TypeScript:\n\n```ts\n// Start sign-in\nexport function signIn() {\n  const url = new URL(\"https://provider.example/auth/\");\n  url.searchParams.set(\"redirect_uri\", \"https://myapp.example/sso/callback\");\n  url.searchParams.set(\"chain_id\", \"1\");\n  window.location.replace(url.toString());\n}\n\n// On /sso/callback\nexport function handleCallback(): { chainId: string; address: string } | null {\n  const caip10 = new URL(window.location.href).searchParams.get(\"smart_account_address\");\n  if (!caip10) return null;\n  const [ns, chainId, address] = caip10.split(\":\");   // \"eip155\", \"1\", \"0x...\"\n  if (ns !== \"eip155\") return null;\n  return { chainId, address };\n}\n```\n\n## Things to know\n\n- Status is **Draft**. The security section is explicitly marked as needing discussion.\n- A bare redirect proves nothing: anyone can open the callback URL with an arbitrary address. The spec suggests having the user sign a challenge, for example with Sign-In with Ethereum ([ERC-4361](/eip-4361/)), before trusting the result.\n- Redirect URIs must not use wildcards, to avoid open-redirect attacks.\n- Discovery only helps for accounts the chosen provider knows about. It does not unify accounts created through different providers.\n"},"ja":{"lang":"ja","tldr":"リダイレクトベースのシングルサインオンの流れ。アプリが鍵プロバイダーに、ユーザーが既に持っているスマートアカウントを問い合わせられるようにし、パスキーなど secp256k1 以外を使うユーザーがアプリごとに新しいアカウントを作られてしまうことを防ぐ。","tags":["account-abstraction","sso","passkeys","wallets","discovery"],"related":[4337,4361],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7555/","markdown":"## 何を解決するのか\n\n[ERC-4337](/eip-4337/) のスマートアカウントでは、従来の secp256k1 秘密鍵の代わりに、パスキー、YubiKey、スマートフォンのセキュアエンクレーブで署名できます。しかしこうした認証器は通常、**ドメインごとに別の鍵**を作ります。モバイルアプリと Web アプリがどちらもパスキーを使うと、同じ人に無関係な 2 つの鍵ができ、各アプリはその人のために新しいスマートアカウントを喜んでデプロイします。\n\nその結果、アカウントが分断されます。1 人のユーザーに、つながりのない多数のアドレスができ、資産がそれらに散らばります。アプリには「この人は既にどこかにアカウントを持っているか」を尋ねる標準的な方法がありません。\n\nERC-7555 は Web のシングルサインオンのパターンを借用し、アプリがユーザーをその鍵を知るプロバイダーへ送り、既存のスマートアカウントのアドレスを受け取れるようにします。\n\n## 仕組み\n\nこの提案は、プロバイダー上の 2 つのルートを定義します。どちらもクエリパラメータ付きの単純なブラウザリダイレクトです。\n\n| ルート | リクエストのパラメータ | レスポンスのパラメータ（`redirect_uri` に送られる） |\n| --- | --- | --- |\n| `/auth/` | `redirect_uri`、`chain_id` | `smart_account_address` |\n| `/sendTransaction/` | `redirect_uri`、`chain_id`、`transaction`（RLP エンコード） | `smart_account_address`、`tx_hash` |\n\n1. アプリがユーザーをプロバイダーの `/auth/` URL にリダイレクトします。\n2. プロバイダーは任意の方法（パスキー、MPC、セキュアエンクレーブなど）でユーザーを認証し、そのプロバイダー経由でデプロイされたスマートアカウントがあれば検索します。\n3. プロバイダーは、[CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) 形式（`eip155:\u003cchainId\u003e:\u003caddress\u003e`）のアドレスを付けて、アプリの `redirect_uri` にリダイレクトで戻します。\n\n`/sendTransaction/` は、認証と署名すべきトランザクションをまとめて行い、2 回目のリダイレクト（たとえばアカウントへのプラグイン登録）を省きます。\n\nこの標準は、プロバイダーがどのように鍵を生成するか、ユーザーがドメインをまたいでどのように署名するか、UI については、意図的に対象と**していません**。\n\n## サンプルコード\n\nリクエストとコールバックの URI（ホストはプレースホルダー）:\n\n```text\nhttps://provider.example/auth/?redirect_uri=https://myapp.example/sso/callback\u0026chain_id=1\n\nhttps://myapp.example/sso/callback?smart_account_address=eip155:1:0xAbC...123\n```\n\nTypeScript でのアプリ側の処理:\n\n```ts\n// Start sign-in\nexport function signIn() {\n  const url = new URL(\"https://provider.example/auth/\");\n  url.searchParams.set(\"redirect_uri\", \"https://myapp.example/sso/callback\");\n  url.searchParams.set(\"chain_id\", \"1\");\n  window.location.replace(url.toString());\n}\n\n// On /sso/callback\nexport function handleCallback(): { chainId: string; address: string } | null {\n  const caip10 = new URL(window.location.href).searchParams.get(\"smart_account_address\");\n  if (!caip10) return null;\n  const [ns, chainId, address] = caip10.split(\":\");   // \"eip155\", \"1\", \"0x...\"\n  if (ns !== \"eip155\") return null;\n  return { chainId, address };\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。セキュリティの節には、議論が必要であると明記されています。\n- 単なるリダイレクトは何も証明しません。誰でも任意のアドレスを付けてコールバック URL を開けます。仕様は、結果を信頼する前に、ユーザーにチャレンジへ署名させること（たとえば Sign-In with Ethereum（[ERC-4361](/eip-4361/)））を提案しています。\n- オープンリダイレクト攻撃を避けるため、リダイレクト URI にワイルドカードを使ってはなりません。\n- ディスカバリーが役立つのは、選択したプロバイダーが把握しているアカウントだけです。異なるプロバイダーで作られたアカウントを統合するものではありません。\n"},"ko":{"lang":"ko","tldr":"리다이렉트 기반 싱글 사인온 흐름. 앱이 키 제공자에게 사용자가 이미 가진 스마트 계정이 무엇인지 물을 수 있게 하여, 패스키 등 secp256k1이 아닌 키를 쓰는 사용자가 앱마다 새 계정을 갖게 되는 일을 막는다.","tags":["account-abstraction","sso","passkeys","wallets","discovery"],"related":[4337,4361],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7555/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-4337](/eip-4337/) 스마트 계정에서는 기존 secp256k1 개인키 대신 패스키, YubiKey, 휴대폰 시큐어 엔클레이브로 서명할 수 있습니다. 하지만 이런 인증기는 보통 **도메인마다 다른 키**를 만듭니다. 모바일 앱과 웹 앱이 둘 다 패스키를 쓰면 같은 사람이 서로 무관한 두 개의 키를 갖게 되고, 각 앱은 선뜻 새 스마트 계정을 배포해 줍니다.\n\n그 결과 계정이 파편화됩니다. 사용자 한 명에 서로 연결되지 않은 여러 주소가 생기고 자산이 흩어집니다. 앱에는 \"이 사람이 이미 어딘가에 계정을 갖고 있나?\"를 물어볼 표준적인 방법이 없습니다.\n\nERC-7555는 웹의 싱글 사인온 패턴을 빌려, 애플리케이션이 사용자를 그의 키를 아는 제공자에게 보내고 기존 스마트 계정의 주소를 돌려받을 수 있게 합니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 제공자에 두 개의 라우트를 정의하며, 각각 쿼리 파라미터가 붙은 단순한 브라우저 리다이렉트입니다.\n\n| 라우트 | 요청 파라미터 | 응답 파라미터(`redirect_uri`로 전송) |\n| --- | --- | --- |\n| `/auth/` | `redirect_uri`, `chain_id` | `smart_account_address` |\n| `/sendTransaction/` | `redirect_uri`, `chain_id`, `transaction`(RLP 인코딩) | `smart_account_address`, `tx_hash` |\n\n1. 앱이 사용자를 제공자의 `/auth/` URL로 리다이렉트합니다.\n2. 제공자는 원하는 방식(패스키, MPC, 시큐어 엔클레이브 등)으로 사용자를 인증하고, 자신을 통해 배포된 스마트 계정이 있는지 조회합니다.\n3. 제공자는 [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) 형식(`eip155:\u003cchainId\u003e:\u003caddress\u003e`)의 주소를 담아 앱의 `redirect_uri`로 리다이렉트해 돌려보냅니다.\n\n`/sendTransaction/`은 인증과 서명할 트랜잭션을 함께 처리해 두 번째 리다이렉트(예: 계정에 플러그인 등록)를 줄여 줍니다.\n\n이 표준은 제공자가 키를 어떻게 생성하는지, 사용자가 도메인을 넘나들며 어떻게 서명하는지, UI는 의도적으로 다루지 **않습니다**.\n\n## 샘플 코드\n\n요청 및 콜백 URI(호스트는 자리표시자):\n\n```text\nhttps://provider.example/auth/?redirect_uri=https://myapp.example/sso/callback\u0026chain_id=1\n\nhttps://myapp.example/sso/callback?smart_account_address=eip155:1:0xAbC...123\n```\n\nTypeScript로 작성한 앱 측 처리:\n\n```ts\n// Start sign-in\nexport function signIn() {\n  const url = new URL(\"https://provider.example/auth/\");\n  url.searchParams.set(\"redirect_uri\", \"https://myapp.example/sso/callback\");\n  url.searchParams.set(\"chain_id\", \"1\");\n  window.location.replace(url.toString());\n}\n\n// On /sso/callback\nexport function handleCallback(): { chainId: string; address: string } | null {\n  const caip10 = new URL(window.location.href).searchParams.get(\"smart_account_address\");\n  if (!caip10) return null;\n  const [ns, chainId, address] = caip10.split(\":\");   // \"eip155\", \"1\", \"0x...\"\n  if (ns !== \"eip155\") return null;\n  return { chainId, address };\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 보안 절에는 논의가 필요하다고 명시되어 있습니다.\n- 단순한 리다이렉트는 아무것도 증명하지 못합니다. 누구든 임의의 주소로 콜백 URL을 열 수 있습니다. 사양은 결과를 신뢰하기 전에 사용자가 챌린지에 서명하도록 할 것을 제안하며, 예로 Sign-In with Ethereum([ERC-4361](/eip-4361/))을 듭니다.\n- 오픈 리다이렉트 공격을 피하기 위해 리다이렉트 URI에는 와일드카드를 쓰면 안 됩니다.\n- 탐색은 선택한 제공자가 아는 계정에만 도움이 됩니다. 서로 다른 제공자를 통해 만든 계정을 통합해 주지는 않습니다.\n"},"zh":{"lang":"zh","tldr":"一种基于重定向的单点登录流程，让应用可以向密钥提供方询问用户已有哪个智能账户，使使用通行密钥（passkey）等非 secp256k1 密钥的用户不会在每个应用里都得到一个新账户。","tags":["account-abstraction","sso","passkeys","wallets","discovery"],"related":[4337,4361],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7555/","markdown":"## 它解决什么问题？\n\n使用 [ERC-4337](/eip-4337/) 智能账户，用户可以用通行密钥、YubiKey 或手机安全隔区来签名，而不是传统的 secp256k1 私钥。但这些认证器通常会**为每个域名创建不同的密钥**。如果一个移动应用和一个网页应用都使用通行密钥，同一个人就会得到两个互不相关的密钥，而每个应用都会欣然为其部署一个全新的智能账户。\n\n结果就是账户碎片化：一个用户，许多互不关联的地址，资产分散其间。应用没有标准方式去问\"这个人在别处是否已经有账户？\"\n\nERC-7555 借用了 Web 的单点登录模式，应用可以把用户送到知道其密钥的提供方，并取回其现有智能账户的地址。\n\n## 它如何运作\n\n该提案在提供方上定义了两条路由，每条都是带查询参数的简单浏览器重定向：\n\n| 路由 | 请求参数 | 响应参数（发送到 `redirect_uri`） |\n| --- | --- | --- |\n| `/auth/` | `redirect_uri`、`chain_id` | `smart_account_address` |\n| `/sendTransaction/` | `redirect_uri`、`chain_id`、`transaction`（RLP 编码） | `smart_account_address`、`tx_hash` |\n\n1. 应用把用户重定向到提供方的 `/auth/` URL。\n2. 提供方以任意方式（通行密钥、MPC、安全隔区……）对用户进行认证，并查找通过它部署的任何智能账户。\n3. 提供方带着 [CAIP-10](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md) 格式（`eip155:\u003cchainId\u003e:\u003caddress\u003e`）的地址重定向回应用的 `redirect_uri`。\n\n`/sendTransaction/` 把认证和待签名的交易合并在一起，省去第二次重定向（例如在账户上注册插件）。\n\n该标准有意**不**涉及提供方如何生成密钥、用户如何跨域签名，以及界面。\n\n## 示例代码\n\n请求和回调 URI（主机为占位符）：\n\n```text\nhttps://provider.example/auth/?redirect_uri=https://myapp.example/sso/callback\u0026chain_id=1\n\nhttps://myapp.example/sso/callback?smart_account_address=eip155:1:0xAbC...123\n```\n\nTypeScript 中的应用端处理：\n\n```ts\n// Start sign-in\nexport function signIn() {\n  const url = new URL(\"https://provider.example/auth/\");\n  url.searchParams.set(\"redirect_uri\", \"https://myapp.example/sso/callback\");\n  url.searchParams.set(\"chain_id\", \"1\");\n  window.location.replace(url.toString());\n}\n\n// On /sso/callback\nexport function handleCallback(): { chainId: string; address: string } | null {\n  const caip10 = new URL(window.location.href).searchParams.get(\"smart_account_address\");\n  if (!caip10) return null;\n  const [ns, chainId, address] = caip10.split(\":\");   // \"eip155\", \"1\", \"0x...\"\n  if (ns !== \"eip155\") return null;\n  return { chainId, address };\n}\n```\n\n## 需要注意\n\n- 状态为 **Draft**。安全部分明确标注为需要讨论。\n- 单纯的重定向什么也证明不了：任何人都可以带着任意地址打开回调 URL。规范建议在信任结果之前，让用户对一个挑战进行签名，例如使用 Sign-In with Ethereum（[ERC-4361](/eip-4361/)）。\n- 重定向 URI 不得使用通配符，以避免开放重定向攻击。\n- 发现机制只对所选提供方知道的账户有帮助，并不能统一通过不同提供方创建的账户。\n"}}}
