{"eip":1775,"title":"App Keys, application specific wallet accounts","description":"Among others cryptographic applications, scalability and privacy solutions for ethereum blockchain require that an user performs a significant amount of signing operations. It may also require her to watch some state and be ready to sign data automatically (e.g. sign a state or contest a withdraw).","authors":["Vincent Eli (@Bunjin)","Dan Finlay (@DanFinlay)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2019-02-20","discussionsTo":"https://ethereum-magicians.org/t/eip-erc-app-keys-application-specific-wallet-accounts/2742","repo":"ERCs","label":"ERC-1775","officialUrl":"https://eips.ethereum.org/EIPS/eip-1775","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1775.md","url":"https://eips.huatuo.xyz/eip-1775/","tldr":{"en":"Proposes per-application wallet keys derived deterministically from the user's account and the app's origin, so apps get isolated, restorable keys they can use without exposing the user's main funds.","ja":"ユーザーのアカウントとアプリのオリジンから決定的に導出される、アプリごとのウォレット鍵を提案する。アプリはユーザーのメイン資金を危険にさらさずに使える、分離された復元可能な鍵を得られる。","ko":"사용자의 계정과 앱의 오리진에서 결정적으로 파생되는 앱별 지갑 키를 제안한다. 앱은 사용자의 주 자금을 노출하지 않고 쓸 수 있는, 격리되고 복구 가능한 키를 얻는다.","zh":"提议为每个应用提供由用户账户和应用来源（origin）确定性派生的钱包密钥，使应用获得相互隔离、可恢复的密钥，在使用时不会暴露用户的主资金。"},"tags":["wallet","keys","privacy","json-rpc"],"explainers":{"en":{"lang":"en","tldr":"Proposes per-application wallet keys derived deterministically from the user's account and the app's origin, so apps get isolated, restorable keys they can use without exposing the user's main funds.","tags":["wallet","keys","privacy","json-rpc"],"related":[1102,2255,1581,600,601],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-1775/","markdown":"## What problem does it solve?\n\nWallets typically give every dapp the same main account. That account holds most of the user's funds, so every signature needs careful manual confirmation, and using one address everywhere links the user's activity across apps.\n\nSome applications, such as state channels, privacy systems and games, need to sign many messages, sometimes automatically, or sign transactions without broadcasting them. ERC-1775 proposes **app keys**: separate keys that a wallet derives for each application. They can be handled with looser confirmation rules while main accounts stay protected, and they can always be regenerated from the user's seed.\n\n## How it works\n\n- **App identity**: each application is identified by its origin, a domain string (DNS name today; ENS names or content hashes are discussed as future options).\n- **Derivation**: the wallet computes\n  `appKeyPrivKey = keccak256(privKey + originString)`\n  where `privKey` is the private key of the account the user selected and `+` is concatenation. The same account and origin always give the same key, so nothing extra needs backing up.\n- **Personas**: choosing a different base account produces a completely different set of app keys, e.g. a personal and a business identity for the same app from one mnemonic, which the app cannot link.\n- **RPC**: the app requests its key through a wallet method, `wallet_getAppKeyForAccount`. Permissions for what the app may do with it were intended to use the [EIP-2255](/eip-2255/) permission model.\n- An app key is a single private key, not a BIP-32 node, but an app can use it as entropy to build its own HD tree.\n\n## Sample code\n\nDerivation as described in the spec (TypeScript with ethers v6, illustrative only):\n\n```ts\nimport { keccak256, concat, toUtf8Bytes, Wallet } from \"ethers\";\n\nfunction deriveAppKey(accountPrivKey: string, origin: string): Wallet {\n  // keccak256(privKey ++ originString)\n  const appPriv = keccak256(concat([accountPrivKey, toUtf8Bytes(origin)]));\n  return new Wallet(appPriv);\n}\n\n// A dapp asking the wallet for its key (method name from the spec):\nconst appKey = await window.ethereum.request({\n  method: \"wallet_getAppKeyForAccount\",\n  params: [selectedAddress],\n});\n```\n\n## Things to know\n\n- Status: **Stagnant**. Wallet support was experimental (an early MetaMask prototype is linked from the spec) and the RPC method is not a widely available standard.\n- The spec does not pin down the exact byte encoding of `privKey + originString`; implementations must agree on it to stay compatible.\n- If an app key needs ETH for gas, funding it from a main account links the two and weakens the privacy benefit.\n- Handing raw private keys to web pages is risky; treat any app key as exposed to the app that received it.\n"},"ja":{"lang":"ja","tldr":"ユーザーのアカウントとアプリのオリジンから決定的に導出される、アプリごとのウォレット鍵を提案する。アプリはユーザーのメイン資金を危険にさらさずに使える、分離された復元可能な鍵を得られる。","tags":["wallet","keys","privacy","json-rpc"],"related":[1102,2255,1581,600,601],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-1775/","markdown":"## 何を解決するのか\n\nウォレットは通常、すべての dapp に同じメインアカウントを渡します。そのアカウントにはユーザーの資金の大半があるため、あらゆる署名に慎重な手動確認が必要で、あらゆる場所で同じアドレスを使うと、アプリをまたいでユーザーの活動が紐づいてしまいます。\n\nステートチャネル、プライバシーシステム、ゲームなど、多くのメッセージに（ときには自動的に）署名したり、ブロードキャストせずにトランザクションに署名したりする必要があるアプリケーションもあります。ERC-1775 は **app key** を提案します。ウォレットがアプリケーションごとに導出する、独立した鍵です。メインアカウントを保護したまま、より緩い確認ルールで扱うことができ、ユーザーのシードからいつでも再生成できます。\n\n## 仕組み\n\n- **アプリの識別**: 各アプリケーションは、オリジン（ドメイン文字列）で識別されます（現在は DNS 名。将来の選択肢として ENS 名やコンテンツハッシュが議論されています）。\n- **導出**: ウォレットは次を計算します。  \n  `appKeyPrivKey = keccak256(privKey + originString)`  \n  ここで `privKey` はユーザーが選択したアカウントの秘密鍵で、`+` は連結です。同じアカウントとオリジンからは常に同じ鍵が得られるため、追加でバックアップするものはありません。\n- **ペルソナ**: 別のベースアカウントを選ぶと、まったく異なる app key のセットが生成されます。たとえば、1 つのニーモニックから同じアプリに対して個人用と業務用のアイデンティティを持つことができ、アプリはそれらを紐づけられません。\n- **RPC**: アプリはウォレットのメソッド `wallet_getAppKeyForAccount` を通じて鍵を要求します。アプリがその鍵で何をしてよいかのパーミッションには、[EIP-2255](/eip-2255/) のパーミッションモデルを使うことが意図されていました。\n- app key は 1 本の秘密鍵であり、BIP-32 ノードではありませんが、アプリはそれをエントロピーとして使い、独自の HD ツリーを構築できます。\n\n## サンプルコード\n\n仕様に記載された導出方法（ethers v6 を使った TypeScript、説明用のみ）:\n\n```ts\nimport { keccak256, concat, toUtf8Bytes, Wallet } from \"ethers\";\n\nfunction deriveAppKey(accountPrivKey: string, origin: string): Wallet {\n  // keccak256(privKey ++ originString)\n  const appPriv = keccak256(concat([accountPrivKey, toUtf8Bytes(origin)]));\n  return new Wallet(appPriv);\n}\n\n// A dapp asking the wallet for its key (method name from the spec):\nconst appKey = await window.ethereum.request({\n  method: \"wallet_getAppKeyForAccount\",\n  params: [selectedAddress],\n});\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。ウォレットの対応は実験的なもので（仕様には初期の MetaMask プロトタイプへのリンクがあります）、この RPC メソッドは広く利用可能な標準ではありません。\n- 仕様は `privKey + originString` の正確なバイトエンコーディングを定めていません。互換性を保つには、実装同士で合意する必要があります。\n- app key がガス代の ETH を必要とする場合、メインアカウントから資金を入れると両者が紐づき、プライバシー上の利点が弱まります。\n- 生の秘密鍵を Web ページに渡すのは危険です。app key は、それを受け取ったアプリには露出したものとして扱ってください。\n"},"ko":{"lang":"ko","tldr":"사용자의 계정과 앱의 오리진에서 결정적으로 파생되는 앱별 지갑 키를 제안한다. 앱은 사용자의 주 자금을 노출하지 않고 쓸 수 있는, 격리되고 복구 가능한 키를 얻는다.","tags":["wallet","keys","privacy","json-rpc"],"related":[1102,2255,1581,600,601],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-1775/","markdown":"## 어떤 문제를 해결하나요?\n\n지갑은 보통 모든 dapp에 같은 주 계정을 줍니다. 그 계정에는 사용자의 자금 대부분이 있어서 모든 서명에 신중한 수동 확인이 필요하고, 어디서나 하나의 주소를 쓰면 앱 사이에서 사용자의 활동이 연결됩니다.\n\n스테이트 채널, 프라이버시 시스템, 게임 같은 일부 애플리케이션은 많은 메시지에 (때로는 자동으로) 서명하거나, 브로드캐스트하지 않고 트랜잭션에 서명해야 합니다. ERC-1775는 **앱 키(app key)**를 제안합니다. 지갑이 애플리케이션마다 파생하는 별도의 키입니다. 주 계정은 보호한 채로 더 느슨한 확인 규칙으로 다룰 수 있고, 사용자의 시드에서 언제든 다시 만들 수 있습니다.\n\n## 어떻게 동작하나요?\n\n- **앱 식별**: 각 애플리케이션은 오리진, 즉 도메인 문자열로 식별됩니다(현재는 DNS 이름이며, ENS 이름이나 콘텐츠 해시는 향후 선택지로 논의됩니다).\n- **파생**: 지갑은 다음을 계산합니다.  \n  `appKeyPrivKey = keccak256(privKey + originString)`  \n  여기서 `privKey`는 사용자가 선택한 계정의 개인 키이고 `+`는 이어 붙이기입니다. 같은 계정과 오리진은 항상 같은 키를 만들므로 따로 백업할 것이 없습니다.\n- **페르소나**: 다른 기본 계정을 고르면 완전히 다른 앱 키 집합이 만들어집니다. 예를 들어 하나의 니모닉으로 같은 앱에 대해 개인용과 업무용 신원을 가질 수 있고, 앱은 이를 연결할 수 없습니다.\n- **RPC**: 앱은 지갑 메서드 `wallet_getAppKeyForAccount`를 통해 자신의 키를 요청합니다. 앱이 그 키로 무엇을 할 수 있는지에 대한 권한은 [EIP-2255](/eip-2255/) 권한 모델을 쓰도록 의도되었습니다.\n- 앱 키는 BIP-32 노드가 아니라 하나의 개인 키지만, 앱은 이를 엔트로피로 삼아 자체 HD 트리를 만들 수 있습니다.\n\n## 샘플 코드\n\n명세에 설명된 파생 방식(ethers v6를 사용한 TypeScript, 설명용):\n\n```ts\nimport { keccak256, concat, toUtf8Bytes, Wallet } from \"ethers\";\n\nfunction deriveAppKey(accountPrivKey: string, origin: string): Wallet {\n  // keccak256(privKey ++ originString)\n  const appPriv = keccak256(concat([accountPrivKey, toUtf8Bytes(origin)]));\n  return new Wallet(appPriv);\n}\n\n// A dapp asking the wallet for its key (method name from the spec):\nconst appKey = await window.ethereum.request({\n  method: \"wallet_getAppKeyForAccount\",\n  params: [selectedAddress],\n});\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 지갑 지원은 실험적이었고(명세에 초기 MetaMask 프로토타입 링크가 있습니다), 이 RPC 메서드는 널리 쓸 수 있는 표준이 아닙니다.\n- 명세는 `privKey + originString`의 정확한 바이트 인코딩을 정하지 않습니다. 호환성을 유지하려면 구현들이 이에 합의해야 합니다.\n- 앱 키가 가스비용 ETH를 필요로 할 때, 주 계정에서 자금을 보내면 둘이 연결되어 프라이버시 이점이 약해집니다.\n- 원시 개인 키를 웹 페이지에 넘기는 것은 위험합니다. 어떤 앱 키든 이를 받은 앱에는 노출된 것으로 간주하세요.\n"},"zh":{"lang":"zh","tldr":"提议为每个应用提供由用户账户和应用来源（origin）确定性派生的钱包密钥，使应用获得相互隔离、可恢复的密钥，在使用时不会暴露用户的主资金。","tags":["wallet","keys","privacy","json-rpc"],"related":[1102,2255,1581,600,601],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-1775/","markdown":"## 它解决什么问题？\n\n钱包通常给每个 dapp 同一个主账户。该账户持有用户的大部分资金，因此每次签名都需要谨慎的手动确认，而且到处使用同一个地址会把用户在各应用中的活动关联起来。\n\n有些应用，如状态通道、隐私系统和游戏，需要签署大量消息（有时是自动签署），或者在不广播的情况下签署交易。ERC-1775 提出 **app key**：钱包为每个应用派生的独立密钥。它们可以采用较宽松的确认规则来处理，同时主账户依然受到保护，并且总能根据用户的助记种子重新生成。\n\n## 它如何运作\n\n- **应用身份**：每个应用由其来源（origin）标识，即一个域名字符串（目前是 DNS 名称；ENS 名称或内容哈希被讨论为未来的选项）。\n- **派生**：钱包计算  \n  `appKeyPrivKey = keccak256(privKey + originString)`  \n  其中 `privKey` 是用户所选账户的私钥，`+` 表示拼接。相同的账户和来源总是得到相同的密钥，因此无需额外备份。\n- **身份角色（Persona）**：选择不同的基础账户会产生完全不同的一组 app key，例如用同一个助记词为同一个应用提供个人身份和商业身份，而应用无法将二者关联。\n- **RPC**：应用通过钱包方法 `wallet_getAppKeyForAccount` 请求其密钥。应用可以用它做什么的权限，原本打算采用 [EIP-2255](/eip-2255/) 的权限模型。\n- app key 是单个私钥，而不是 BIP-32 节点，但应用可以把它当作熵来构建自己的 HD 树。\n\n## 示例代码\n\n规范中描述的派生方式（使用 ethers v6 的 TypeScript，仅作示意）：\n\n```ts\nimport { keccak256, concat, toUtf8Bytes, Wallet } from \"ethers\";\n\nfunction deriveAppKey(accountPrivKey: string, origin: string): Wallet {\n  // keccak256(privKey ++ originString)\n  const appPriv = keccak256(concat([accountPrivKey, toUtf8Bytes(origin)]));\n  return new Wallet(appPriv);\n}\n\n// A dapp asking the wallet for its key (method name from the spec):\nconst appKey = await window.ethereum.request({\n  method: \"wallet_getAppKeyForAccount\",\n  params: [selectedAddress],\n});\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。钱包支持处于实验阶段（规范中链接了一个早期的 MetaMask 原型），该 RPC 方法并不是广泛可用的标准。\n- 规范没有确定 `privKey + originString` 的确切字节编码；各实现必须就此达成一致才能保持兼容。\n- 如果 app key 需要 ETH 来支付 gas，用主账户给它充值会把两者关联起来，削弱隐私方面的好处。\n- 把原始私钥交给网页存在风险；请把任何 app key 都视为已暴露给接收它的应用。\n"}}}
