{"eip":8092,"title":"Associated Accounts","description":"A way to publicly associate two accounts with arbitrary contextual data","authors":["Steve Katzman (@stevieraykatz)","Amie Corso (@amiecorso)","Stephan Cilliers (@stephancill)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2025-11-25","requires":[712,1271,6492,7930],"discussionsTo":"https://ethereum-magicians.org/t/erc-8092-associated-accounts/26858","repo":"ERCs","label":"ERC-8092","officialUrl":"https://eips.ethereum.org/EIPS/eip-8092","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8092.md","url":"https://eips.huatuo.xyz/eip-8092/","tldr":{"en":"A draft standard record that lets two accounts, even on different chains or key types, publicly declare, co-sign and later revoke a relationship, so apps can link sub-accounts, delegates and reputations to one identity.","ja":"異なるチェーンや鍵タイプにまたがる 2 つのアカウントが、関係を公開宣言し、共同署名し、後で取り消せるようにする標準レコードのドラフト。アプリは、サブアカウント、委任先、評判を 1 つのアイデンティティに結び付けられる。","ko":"서로 다른 체인이나 키 유형에 있는 두 계정도 관계를 공개적으로 선언하고, 공동 서명하며, 나중에 철회할 수 있게 하는 표준 레코드 초안. 앱은 서브 계정, 위임 대상, 평판을 하나의 신원에 연결할 수 있다.","zh":"一种草案标准记录，让两个账户（即使位于不同链或使用不同密钥类型）公开声明、共同签署并在之后撤销一种关系，使应用可以把子账户、被委托方和声誉关联到同一个身份。"},"tags":["identity","accounts","signatures","eip-712","interoperability"],"explainers":{"en":{"lang":"en","tldr":"A draft standard record that lets two accounts, even on different chains or key types, publicly declare, co-sign and later revoke a relationship, so apps can link sub-accounts, delegates and reputations to one identity.","tags":["identity","accounts","signatures","eip-712","interoperability"],"related":[712,1271,6492,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8092/","markdown":"## What problem does it solve?\n\nOn-chain identity is usually one address. In practice people and organisations use many: a main wallet, app-scoped sub-accounts, a passkey wallet, accounts on other chains. There is no common way to say \"these two accounts belong together\" that any app can read and verify, so each project invents its own schema.\n\nERC-8092 defines a standard **association** payload: two accounts sign the same record describing their relationship (with optional app-specific data). Anyone can then verify it, store it on-chain or off-chain, and either party can revoke it. Use cases include sub-account identity inheritance, delegated authorization and pooling reputation across addresses.\n\n## How it works\n\nThere are two nested structures:\n\n- **AssociatedAccountRecord (AAR)**, the agreed payload: `initiator` and `approver` addresses (as [ERC-7930](/eip-7930/) interoperable addresses in raw bytes, so non-EVM accounts work), a `validAt` start time, an optional `validUntil` expiry, and an optional `interfaceId` plus `data` describing the relationship.\n- **SignedAssociationRecord (SAR)**, which wraps the AAR with each party's signature, a 2-byte **key type** for each signature, and a `revokedAt` timestamp (0 if active).\n\nBoth parties sign the [EIP-712](/eip-712/) hash of the AAR under the domain `{ name: \"AssociatedAccounts\", version: \"1\" }` (no chain ID or contract). Key types cover secp256k1 (`0x0001`), secp256r1, BLS, Ed25519, and protocol types with the high bit set: WebAuthn (`0x8001`), [ERC-1271](/eip-1271/) contract signatures (`0x8002`) and [ERC-6492](/eip-6492/) pre-deploy signatures (`0x8003`).\n\nA consumer treats an association as valid if: now ≥ `validAt`; `validUntil` is 0 or in the future; `revokedAt` is 0 or in the future; and every populated signature verifies with its key type.\n\nRecords can live on-chain (the store must validate, emit `AssociationCreated`, and support revocation with `AssociationRevoked`) or in a public off-chain store. Either party can revoke; an earlier revocation timestamp always wins.\n\n## Sample code\n\nSigning an association with ethers v6 (both accounts sign the same payload):\n\n```ts\nimport { Wallet } from \"ethers\";\n\nconst domain = { name: \"AssociatedAccounts\", version: \"1\" };\nconst types = {\n  AssociatedAccountRecord: [\n    { name: \"initiator\", type: \"bytes\" },\n    { name: \"approver\", type: \"bytes\" },\n    { name: \"validAt\", type: \"uint40\" },\n    { name: \"validUntil\", type: \"uint40\" },\n    { name: \"interfaceId\", type: \"bytes4\" },\n    { name: \"data\", type: \"bytes\" },\n  ],\n};\n\nconst record = {\n  initiator: initiator7930Bytes,   // ERC-7930 encoding of the main account\n  approver: approver7930Bytes,     // ERC-7930 encoding of the sub-account\n  validAt: Math.floor(Date.now() / 1000),\n  validUntil: 0,                   // no expiry\n  interfaceId: \"0x00000000\",\n  data: \"0x\",\n};\n\nconst initiatorSig = await mainWallet.signTypedData(domain, types, record);\nconst approverSig = await subWallet.signTypedData(domain, types, record);\n\nconst sar = {\n  revokedAt: 0,\n  initiatorKeyType: \"0x0001\",      // secp256k1\n  approverKeyType: \"0x0001\",\n  initiatorSignature: initiatorSig,\n  approverSignature: approverSig,\n  record,\n};\n```\n\n## Things to know\n\n- **Status: Draft.** Field names, key-type table and events may still change.\n- Off-chain stores add a trust assumption; the spec asks integrators to make that risk visible. If the same association exists both on- and off-chain, on-chain data should win.\n- Some key types (for example BLS or Ed25519) may be too expensive or impossible to verify on-chain; integrators must decide how to handle them.\n- The `Delegated` key type (`0x0000`) requires the implementer to publish how its delegation scheme is parsed.\n- Signatures are only required when records are used in trustless settings, but in that case both parties should sign.\n"},"ja":{"lang":"ja","tldr":"異なるチェーンや鍵タイプにまたがる 2 つのアカウントが、関係を公開宣言し、共同署名し、後で取り消せるようにする標準レコードのドラフト。アプリは、サブアカウント、委任先、評判を 1 つのアイデンティティに結び付けられる。","tags":["identity","accounts","signatures","eip-712","interoperability"],"related":[712,1271,6492,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8092/","markdown":"## 何を解決するのか\n\nオンチェーンのアイデンティティは通常 1 つのアドレスです。しかし実際には、個人も組織も多くのアドレスを使います。メインのウォレット、アプリごとのサブアカウント、パスキーウォレット、他のチェーン上のアカウントなどです。「この 2 つのアカウントは同じ持ち主のものだ」と、どのアプリでも読み取って検証できる形で示す共通の方法がないため、各プロジェクトが独自のスキーマを作っています。\n\nERC-8092 は標準の **association** ペイロードを定義します。2 つのアカウントが、両者の関係を記述した同じレコード（任意のアプリ固有データを含められる）に署名します。誰でもそれを検証し、オンチェーンまたはオフチェーンに保存でき、どちらの当事者も取り消すことができます。ユースケースには、サブアカウントのアイデンティティ継承、委任された認可、アドレスをまたいだ評判の集約などがあります。\n\n## 仕組み\n\n入れ子になった 2 つの構造があります。\n\n- **AssociatedAccountRecord（AAR）**: 合意されるペイロード。`initiator` と `approver` のアドレス（生のバイト列の [ERC-7930](/eip-7930/) 相互運用アドレスとして表現されるため、非 EVM アカウントにも対応）、開始時刻 `validAt`、任意の有効期限 `validUntil`、そして関係を記述する任意の `interfaceId` と `data`。\n- **SignedAssociationRecord（SAR）**: AAR を包み、各当事者の署名、各署名の 2 バイトの**鍵タイプ**、そして `revokedAt` タイムスタンプ（有効な間は 0）を持ちます。\n\n両当事者は、ドメイン `{ name: \"AssociatedAccounts\", version: \"1\" }`（チェーン ID やコントラクトは含まない）のもとで、AAR の [EIP-712](/eip-712/) ハッシュに署名します。鍵タイプは secp256k1（`0x0001`）、secp256r1、BLS、Ed25519、および最上位ビットが立ったプロトコルタイプ（WebAuthn（`0x8001`）、[ERC-1271](/eip-1271/) コントラクト署名（`0x8002`）、[ERC-6492](/eip-6492/) デプロイ前署名（`0x8003`））をカバーします。\n\nコンシューマーは、次の条件がすべて満たされる場合に association を有効とみなします。現在時刻 ≥ `validAt`、`validUntil` が 0 または未来、`revokedAt` が 0 または未来、そして値が入っているすべての署名がその鍵タイプで検証に通ること。\n\nレコードはオンチェーン（ストアは検証を行い、`AssociationCreated` を emit し、`AssociationRevoked` による取り消しをサポートしなければなりません）にも、公開されたオフチェーンのストアにも置けます。どちらの当事者も取り消すことができ、より早い取り消しタイムスタンプが常に優先されます。\n\n## サンプルコード\n\nethers v6 で association に署名する（両方のアカウントが同じペイロードに署名します）:\n\n```ts\nimport { Wallet } from \"ethers\";\n\nconst domain = { name: \"AssociatedAccounts\", version: \"1\" };\nconst types = {\n  AssociatedAccountRecord: [\n    { name: \"initiator\", type: \"bytes\" },\n    { name: \"approver\", type: \"bytes\" },\n    { name: \"validAt\", type: \"uint40\" },\n    { name: \"validUntil\", type: \"uint40\" },\n    { name: \"interfaceId\", type: \"bytes4\" },\n    { name: \"data\", type: \"bytes\" },\n  ],\n};\n\nconst record = {\n  initiator: initiator7930Bytes,   // ERC-7930 encoding of the main account\n  approver: approver7930Bytes,     // ERC-7930 encoding of the sub-account\n  validAt: Math.floor(Date.now() / 1000),\n  validUntil: 0,                   // no expiry\n  interfaceId: \"0x00000000\",\n  data: \"0x\",\n};\n\nconst initiatorSig = await mainWallet.signTypedData(domain, types, record);\nconst approverSig = await subWallet.signTypedData(domain, types, record);\n\nconst sar = {\n  revokedAt: 0,\n  initiatorKeyType: \"0x0001\",      // secp256k1\n  approverKeyType: \"0x0001\",\n  initiatorSignature: initiatorSig,\n  approverSignature: approverSig,\n  record,\n};\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** フィールド名、鍵タイプの表、イベントはまだ変わる可能性があります。\n- オフチェーンのストアは信頼の前提を追加します。仕様は、統合する側にそのリスクを見えるようにするよう求めています。同じ association がオンチェーンとオフチェーンの両方にある場合は、オンチェーンのデータを優先すべきです。\n- 一部の鍵タイプ（たとえば BLS や Ed25519）は、オンチェーンでの検証が高コストすぎるか不可能な場合があります。統合する側がその扱いを決める必要があります。\n- `Delegated` 鍵タイプ（`0x0000`）では、実装者が委任方式の解釈方法を公開する必要があります。\n- 署名が必要になるのは、レコードがトラストレスな環境で使われる場合だけですが、その場合は両当事者が署名すべきです。\n"},"ko":{"lang":"ko","tldr":"서로 다른 체인이나 키 유형에 있는 두 계정도 관계를 공개적으로 선언하고, 공동 서명하며, 나중에 철회할 수 있게 하는 표준 레코드 초안. 앱은 서브 계정, 위임 대상, 평판을 하나의 신원에 연결할 수 있다.","tags":["identity","accounts","signatures","eip-712","interoperability"],"related":[712,1271,6492,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8092/","markdown":"## 어떤 문제를 해결하나요?\n\n온체인 신원은 보통 주소 하나입니다. 하지만 실제로 개인과 조직은 많은 주소를 씁니다. 메인 지갑, 앱 범위의 서브 계정, 패스키 지갑, 다른 체인의 계정 등입니다. \"이 두 계정은 한 주인의 것이다\"를 어떤 앱이든 읽고 검증할 수 있게 표현하는 공통된 방법이 없어서, 프로젝트마다 자기만의 스키마를 만들어 냅니다.\n\nERC-8092는 표준 **association** 페이로드를 정의합니다. 두 계정이 두 계정의 관계를 설명하는 같은 레코드(선택적인 앱별 데이터 포함)에 서명합니다. 이후 누구나 이를 검증하고, 온체인 또는 오프체인에 저장할 수 있으며, 어느 쪽이든 철회할 수 있습니다. 사용 사례로는 서브 계정의 신원 상속, 위임된 권한 부여, 주소 간 평판 합산 등이 있습니다.\n\n## 어떻게 동작하나요?\n\n중첩된 두 가지 구조가 있습니다.\n\n- **AssociatedAccountRecord(AAR)**, 합의된 페이로드: `initiator`와 `approver` 주소(원시 바이트로 된 [ERC-7930](/eip-7930/) 상호운용 주소이므로 비 EVM 계정도 가능), 시작 시각 `validAt`, 선택적인 만료 시각 `validUntil`, 그리고 관계를 설명하는 선택적인 `interfaceId`와 `data`.\n- **SignedAssociationRecord(SAR)**, AAR을 감싸고 각 당사자의 서명, 각 서명의 2바이트 **키 타입**, `revokedAt` 타임스탬프(활성 상태이면 0)를 담습니다.\n\n두 당사자는 도메인 `{ name: \"AssociatedAccounts\", version: \"1\" }`(체인 ID나 컨트랙트 없음) 아래에서 AAR의 [EIP-712](/eip-712/) 해시에 서명합니다. 키 타입은 secp256k1(`0x0001`), secp256r1, BLS, Ed25519와, 최상위 비트가 설정된 프로토콜 타입인 WebAuthn(`0x8001`), [ERC-1271](/eip-1271/) 컨트랙트 서명(`0x8002`), [ERC-6492](/eip-6492/) 배포 전 서명(`0x8003`)을 포괄합니다.\n\n소비하는 쪽은 다음을 모두 만족할 때 association을 유효하다고 봅니다. 현재 시각 ≥ `validAt`, `validUntil`이 0이거나 미래, `revokedAt`이 0이거나 미래, 그리고 채워진 모든 서명이 해당 키 타입으로 검증될 것.\n\n레코드는 온체인(저장소는 검증을 수행하고, `AssociationCreated`를 emit하며, `AssociationRevoked`로 철회를 지원해야 함)이나 공개 오프체인 저장소에 둘 수 있습니다. 어느 당사자든 철회할 수 있으며, 더 이른 철회 타임스탬프가 항상 우선합니다.\n\n## 샘플 코드\n\nethers v6로 association에 서명하기(두 계정이 같은 페이로드에 서명합니다):\n\n```ts\nimport { Wallet } from \"ethers\";\n\nconst domain = { name: \"AssociatedAccounts\", version: \"1\" };\nconst types = {\n  AssociatedAccountRecord: [\n    { name: \"initiator\", type: \"bytes\" },\n    { name: \"approver\", type: \"bytes\" },\n    { name: \"validAt\", type: \"uint40\" },\n    { name: \"validUntil\", type: \"uint40\" },\n    { name: \"interfaceId\", type: \"bytes4\" },\n    { name: \"data\", type: \"bytes\" },\n  ],\n};\n\nconst record = {\n  initiator: initiator7930Bytes,   // ERC-7930 encoding of the main account\n  approver: approver7930Bytes,     // ERC-7930 encoding of the sub-account\n  validAt: Math.floor(Date.now() / 1000),\n  validUntil: 0,                   // no expiry\n  interfaceId: \"0x00000000\",\n  data: \"0x\",\n};\n\nconst initiatorSig = await mainWallet.signTypedData(domain, types, record);\nconst approverSig = await subWallet.signTypedData(domain, types, record);\n\nconst sar = {\n  revokedAt: 0,\n  initiatorKeyType: \"0x0001\",      // secp256k1\n  approverKeyType: \"0x0001\",\n  initiatorSignature: initiatorSig,\n  approverSignature: approverSig,\n  record,\n};\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 필드 이름, 키 타입 표, 이벤트는 아직 바뀔 수 있습니다.\n- 오프체인 저장소는 신뢰 가정을 추가합니다. 명세는 통합하는 쪽이 그 위험을 눈에 보이게 하라고 요구합니다. 같은 association이 온체인과 오프체인에 모두 있다면 온체인 데이터가 우선해야 합니다.\n- 일부 키 타입(예: BLS나 Ed25519)은 온체인에서 검증하기에 너무 비싸거나 불가능할 수 있으며, 통합하는 쪽이 이를 어떻게 처리할지 결정해야 합니다.\n- `Delegated` 키 타입(`0x0000`)은 구현자가 자신의 위임 방식을 어떻게 파싱하는지 공개해야 합니다.\n- 서명은 레코드가 신뢰가 필요 없는(trustless) 환경에서 쓰일 때만 요구되지만, 그런 경우에는 두 당사자 모두 서명해야 합니다.\n"},"zh":{"lang":"zh","tldr":"一种草案标准记录，让两个账户（即使位于不同链或使用不同密钥类型）公开声明、共同签署并在之后撤销一种关系，使应用可以把子账户、被委托方和声誉关联到同一个身份。","tags":["identity","accounts","signatures","eip-712","interoperability"],"related":[712,1271,6492,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8092/","markdown":"## 它解决什么问题？\n\n链上身份通常是一个地址。实际上，个人和组织会使用许多地址：主钱包、应用范围的子账户、通行密钥钱包、其他链上的账户。目前没有一种任何应用都能读取和验证的通用方式来表示\"这两个账户属于同一方\"，因此每个项目都自行发明一套 schema。\n\nERC-8092 定义了一个标准的 **association** 载荷：两个账户对同一条描述它们关系的记录签名（可带有可选的应用特定数据）。之后任何人都可以验证它，将其存储在链上或链下，任何一方也都可以撤销它。使用场景包括子账户的身份继承、委托授权，以及跨地址汇集声誉。\n\n## 它如何运作\n\n有两个嵌套的结构：\n\n- **AssociatedAccountRecord（AAR）**，即双方约定的载荷：`initiator` 和 `approver` 地址（以原始字节形式的 [ERC-7930](/eip-7930/) 互操作地址表示，因此非 EVM 账户也可使用）、起始时间 `validAt`、可选的到期时间 `validUntil`，以及描述该关系的可选 `interfaceId` 和 `data`。\n- **SignedAssociationRecord（SAR）**，它包裹 AAR，并带有每一方的签名、每个签名对应的 2 字节**密钥类型**，以及 `revokedAt` 时间戳（有效时为 0）。\n\n双方都对 AAR 的 [EIP-712](/eip-712/) 哈希签名，域为 `{ name: \"AssociatedAccounts\", version: \"1\" }`（不含链 ID 或合约）。密钥类型涵盖 secp256k1（`0x0001`）、secp256r1、BLS、Ed25519，以及最高位置 1 的协议类型：WebAuthn（`0x8001`）、[ERC-1271](/eip-1271/) 合约签名（`0x8002`）和 [ERC-6492](/eip-6492/) 部署前签名（`0x8003`）。\n\n消费方在满足以下全部条件时将 association 视为有效：当前时间 ≥ `validAt`；`validUntil` 为 0 或在未来；`revokedAt` 为 0 或在未来；并且每个已填写的签名都能用其密钥类型验证通过。\n\n记录可以存放在链上（存储方必须进行验证、发出 `AssociationCreated`，并支持通过 `AssociationRevoked` 撤销），也可以放在公开的链下存储中。任何一方都可以撤销；较早的撤销时间戳总是优先。\n\n## 示例代码\n\n用 ethers v6 签署一个 association（两个账户对同一载荷签名）：\n\n```ts\nimport { Wallet } from \"ethers\";\n\nconst domain = { name: \"AssociatedAccounts\", version: \"1\" };\nconst types = {\n  AssociatedAccountRecord: [\n    { name: \"initiator\", type: \"bytes\" },\n    { name: \"approver\", type: \"bytes\" },\n    { name: \"validAt\", type: \"uint40\" },\n    { name: \"validUntil\", type: \"uint40\" },\n    { name: \"interfaceId\", type: \"bytes4\" },\n    { name: \"data\", type: \"bytes\" },\n  ],\n};\n\nconst record = {\n  initiator: initiator7930Bytes,   // ERC-7930 encoding of the main account\n  approver: approver7930Bytes,     // ERC-7930 encoding of the sub-account\n  validAt: Math.floor(Date.now() / 1000),\n  validUntil: 0,                   // no expiry\n  interfaceId: \"0x00000000\",\n  data: \"0x\",\n};\n\nconst initiatorSig = await mainWallet.signTypedData(domain, types, record);\nconst approverSig = await subWallet.signTypedData(domain, types, record);\n\nconst sar = {\n  revokedAt: 0,\n  initiatorKeyType: \"0x0001\",      // secp256k1\n  approverKeyType: \"0x0001\",\n  initiatorSignature: initiatorSig,\n  approverSignature: approverSig,\n  record,\n};\n```\n\n## 需要注意\n\n- **状态：Draft。** 字段名、密钥类型表和事件仍可能变化。\n- 链下存储会增加一项信任假设；规范要求集成方让这一风险清晰可见。如果同一个 association 同时存在于链上和链下，应以链上数据为准。\n- 某些密钥类型（例如 BLS 或 Ed25519）在链上验证可能过于昂贵或根本无法实现；集成方必须决定如何处理它们。\n- `Delegated` 密钥类型（`0x0000`）要求实现方公布其委托方案的解析方式。\n- 只有在无需信任的场景中使用记录时才要求签名，但在这种情况下双方都应签名。\n"}}}
