{"eip":5883,"title":"Token Transfer by Social Recovery","description":"On-Chain Social Recovery taking users' reputation into account \u0026 using a nearest-neighbour approach.","authors":["Erhard Dinhobl (@mrqc)","Kevin Riedl (@wsdt)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-07-19","discussionsTo":"https://ethereum-magicians.org/t/eip-5806-delegate-transaction/11409","repo":"ERCs","label":"ERC-5883","officialUrl":"https://eips.ethereum.org/EIPS/eip-5883","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5883.md","url":"https://eips.huatuo.xyz/eip-5883/","tldr":{"en":"A stagnant proposal for recovering tokens from a lost account by having enough trusted \"neighbour\" identities approve moving them to a new address, weighted by an on-chain reputation score.","ja":"信頼できる「ネイバー」アイデンティティが十分な数だけ承認し、オンチェーンのレピュテーションスコアで重み付けして、紛失したアカウントのトークンを新しいアドレスへ移せるようにする、停滞中（Stagnant）の提案。","ko":"충분한 수의 신뢰하는 \"이웃\" 신원이 승인하고 온체인 평판 점수로 가중치를 두어, 잃어버린 계정의 토큰을 새 주소로 옮기도록 하는 정체(Stagnant) 상태의 제안.","zh":"一项处于停滞状态（Stagnant）的提案：通过让足够多受信任的\"邻居\"身份批准，并按链上声誉分数加权，将丢失账户中的代币转移到新地址，从而实现找回。"},"tags":["social-recovery","identity","reputation","wallet"],"explainers":{"en":{"lang":"en","tldr":"A stagnant proposal for recovering tokens from a lost account by having enough trusted \"neighbour\" identities approve moving them to a new address, weighted by an on-chain reputation score.","tags":["social-recovery","identity","reputation","wallet"],"related":[5192,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5883/","markdown":"## What problem does it solve?\n\nIf you lose the private key to an account, every token in it is gone for good. That hurts the owner and also the token's ecosystem, since lost tokens leave circulation permanently.\n\nERC-5883 sketches a **social recovery** scheme: other people you know (called *Souls*, after the soulbound token idea) vote to move your token from the inaccessible account to a new one. Unlike a pure multisig, approval is meant to be a human judgement, and approvers' votes count according to an on-chain reputation score.\n\n## How it works\n\nThe interface has four functions:\n\n| Function | Purpose |\n| --- | --- |\n| `addNeighbour(addr)` / `removeNeighbour(addr)` | Build your list of trusted identities |\n| `requestTransfer(from, to)` | Ask to move your on-chain identity/token from `from` to `to` (payable) |\n| `approveTransfer(from, to)` | A neighbour votes yes on that request |\n\nFlow:\n\n1. The user, from any wallet, requests the transfer.\n2. Neighbours are notified off-chain (the spec mentions websockets or push services).\n3. Neighbours call `approveTransfer`.\n4. Once both the **number of approvers** and their **cumulative score** pass thresholds, the contract moves the asset to the new owner.\n5. Approvers receive a reward, which raises their own score.\n\nThe score of a node blends its own reward count with its neighbours' rewards, discounted by how long ago each neighbour was last rewarded, and squashes the result with `tanh` so it stays bounded (below 1). Recently active, well-rewarded neighbours therefore count for more than dormant ones.\n\n## Sample code\n\nThe interface from the spec:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.7;\n\ninterface ISocialRecovery {\n    function approveTransfer(address from_, address to_) external;\n    function requestTransfer(address from_, address to_) external payable;\n    function addNeighbour(address neighbour_) external;\n    function removeNeighbour(address neighbour_) external;\n}\n```\n\nThe scoring idea in pseudocode (`t` is the current time or block number):\n\n```python\nimport math\n\ndef score(node, t):\n    s = 0.0\n    for nb in node.neighbours:\n        s += math.log(nb.rewards * (1 / (t - nb.last_reward_time + 1)))\n    return math.tanh(s / (len(node.neighbours) + 1) + node.rewards)\n```\n\n## Things to know\n\n- Status is **Stagnant**: there has been no recent progress and it is not a stable standard. Treat it as a design sketch, not something to build production wallets on.\n- The spec leaves key details open: who may call each function, what the thresholds are, and what exactly \"token\" means. The authors say their threshold is a first guess.\n- The authors list unsolved risks themselves: a wealthy user can farm rewards to raise their score, and if your neighbours become inactive, recovery can get stuck.\n- Today, smart contract wallets built on [ERC-4337](/eip-4337/) commonly implement guardian-based social recovery at the account level instead of per token.\n- For the non-transferable \"soul\" tokens this idea builds on, see [ERC-5192](/eip-5192/).\n"},"ja":{"lang":"ja","tldr":"信頼できる「ネイバー」アイデンティティが十分な数だけ承認し、オンチェーンのレピュテーションスコアで重み付けして、紛失したアカウントのトークンを新しいアドレスへ移せるようにする、停滞中（Stagnant）の提案。","tags":["social-recovery","identity","reputation","wallet"],"related":[5192,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5883/","markdown":"## 何を解決するのか\n\nアカウントの秘密鍵を失うと、その中のトークンはすべて永久に失われます。これは所有者にとって痛手であるだけでなく、失われたトークンは流通から永久に外れるため、トークンのエコシステムにとっても痛手です。\n\nERC-5883 は**ソーシャルリカバリー**の仕組みを素描します。あなたの知り合いである他の人々（ソウルバウンドトークンの考え方にちなんで *Souls* と呼ばれます）が投票し、アクセスできなくなったアカウントから新しいアカウントへトークンを移します。純粋なマルチシグとは異なり、承認は人間による判断であることが意図されており、承認者の票はオンチェーンのレピュテーションスコアに応じて重み付けされます。\n\n## 仕組み\n\nこのインターフェースには 4 つの関数があります。\n\n| 関数 | 役割 |\n| --- | --- |\n| `addNeighbour(addr)` / `removeNeighbour(addr)` | 信頼するアイデンティティのリストを作る |\n| `requestTransfer(from, to)` | オンチェーンのアイデンティティ／トークンを `from` から `to` へ移すよう求める（payable） |\n| `approveTransfer(from, to)` | ネイバーがそのリクエストに賛成票を投じる |\n\nフロー:\n\n1. ユーザーが、任意のウォレットから転送をリクエストします。\n2. ネイバーにオフチェーンで通知されます（仕様では WebSocket やプッシュサービスに言及しています）。\n3. ネイバーが `approveTransfer` を呼び出します。\n4. **承認者の数**と**累積スコア**の両方がしきい値を超えると、コントラクトは資産を新しい所有者へ移します。\n5. 承認者は報酬を受け取り、それによって自分自身のスコアが上がります。\n\nノードのスコアは、そのノード自身の報酬回数と、ネイバーの報酬を混ぜ合わせたものです。各ネイバーが最後に報酬を受けてからの経過時間によって割り引かれ、結果は `tanh` で押し込められて有界（1 未満）になります。したがって、最近活動していて報酬の多いネイバーは、休眠状態のネイバーよりも重みが大きくなります。\n\n## サンプルコード\n\n仕様のインターフェース:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.7;\n\ninterface ISocialRecovery {\n    function approveTransfer(address from_, address to_) external;\n    function requestTransfer(address from_, address to_) external payable;\n    function addNeighbour(address neighbour_) external;\n    function removeNeighbour(address neighbour_) external;\n}\n```\n\n擬似コードで示すスコアリングの考え方（`t` は現在の時刻またはブロック番号）:\n\n```python\nimport math\n\ndef score(node, t):\n    s = 0.0\n    for nb in node.neighbours:\n        s += math.log(nb.rewards * (1 / (t - nb.last_reward_time + 1)))\n    return math.tanh(s / (len(node.neighbours) + 1) + node.rewards)\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。最近の進展はなく、安定した標準ではありません。設計のスケッチとして扱い、本番のウォレットの土台にはしないでください。\n- 仕様は重要な詳細を未定のままにしています。各関数を誰が呼べるのか、しきい値はいくつか、「トークン」とは正確には何を指すのか、などです。作者は、しきい値は最初の推測だと述べています。\n- 作者自身が未解決のリスクを挙げています。裕福なユーザーは報酬を稼いでスコアを上げられること、そしてネイバーが非アクティブになるとリカバリーが行き詰まりうることです。\n- 現在では、[ERC-4337](/eip-4337/) 上に構築されたスマートコントラクトウォレットが、トークンごとではなくアカウントレベルで、ガーディアン方式のソーシャルリカバリーを実装するのが一般的です。\n- この考え方の土台となっている譲渡不可の「ソウル」トークンについては、[ERC-5192](/eip-5192/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"충분한 수의 신뢰하는 \"이웃\" 신원이 승인하고 온체인 평판 점수로 가중치를 두어, 잃어버린 계정의 토큰을 새 주소로 옮기도록 하는 정체(Stagnant) 상태의 제안.","tags":["social-recovery","identity","reputation","wallet"],"related":[5192,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5883/","markdown":"## 어떤 문제를 해결하나요?\n\n계정의 개인 키를 잃어버리면 그 안의 모든 토큰은 영영 사라집니다. 이는 소유자뿐 아니라 토큰의 생태계에도 타격인데, 잃어버린 토큰은 유통에서 영구히 빠지기 때문입니다.\n\nERC-5883은 **소셜 복구** 방식을 스케치합니다. 내가 아는 다른 사람들(소울바운드 토큰 개념에서 따와 *Souls*라고 부름)이 투표해서 접근할 수 없는 계정에서 새 계정으로 토큰을 옮깁니다. 순수한 멀티시그와 달리 승인은 사람의 판단이 되도록 의도되었으며, 승인자의 표는 온체인 평판 점수에 따라 가중됩니다.\n\n## 어떻게 동작하나요?\n\n이 인터페이스에는 네 개의 함수가 있습니다.\n\n| 함수 | 역할 |\n| --- | --- |\n| `addNeighbour(addr)` / `removeNeighbour(addr)` | 신뢰하는 신원 목록 만들기 |\n| `requestTransfer(from, to)` | 온체인 신원/토큰을 `from`에서 `to`로 옮기도록 요청(payable) |\n| `approveTransfer(from, to)` | 이웃이 해당 요청에 찬성표를 던짐 |\n\n흐름:\n\n1. 사용자가 아무 지갑에서나 전송을 요청합니다.\n2. 이웃에게 오프체인으로 알립니다(스펙은 웹소켓이나 푸시 서비스를 언급합니다).\n3. 이웃이 `approveTransfer`를 호출합니다.\n4. **승인자 수**와 그들의 **누적 점수**가 모두 임계값을 넘으면 컨트랙트가 자산을 새 소유자에게 옮깁니다.\n5. 승인자는 보상을 받으며, 이는 그들 자신의 점수를 높입니다.\n\n노드의 점수는 자신의 보상 횟수와 이웃들의 보상을 섞은 것이며, 각 이웃이 마지막으로 보상받은 이후 경과한 시간에 따라 할인되고, 결과는 `tanh`로 압축되어 유한한 값(1 미만)을 유지합니다. 따라서 최근에 활동했고 보상을 많이 받은 이웃이 휴면 상태의 이웃보다 더 큰 비중을 갖습니다.\n\n## 샘플 코드\n\n스펙의 인터페이스:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.7;\n\ninterface ISocialRecovery {\n    function approveTransfer(address from_, address to_) external;\n    function requestTransfer(address from_, address to_) external payable;\n    function addNeighbour(address neighbour_) external;\n    function removeNeighbour(address neighbour_) external;\n}\n```\n\n의사 코드로 나타낸 점수 계산 아이디어(`t`는 현재 시간 또는 블록 번호):\n\n```python\nimport math\n\ndef score(node, t):\n    s = 0.0\n    for nb in node.neighbours:\n        s += math.log(nb.rewards * (1 / (t - nb.last_reward_time + 1)))\n    return math.tanh(s / (len(node.neighbours) + 1) + node.rewards)\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 최근 진전이 없으며 안정적인 표준이 아닙니다. 설계 스케치로 취급하고, 프로덕션 지갑을 이 위에 만들지는 마세요.\n- 스펙은 핵심 세부 사항을 열어 두고 있습니다. 각 함수를 누가 호출할 수 있는지, 임계값이 얼마인지, \"토큰\"이 정확히 무엇을 뜻하는지 등입니다. 작성자들은 임계값이 첫 추측이라고 말합니다.\n- 작성자들이 해결되지 않은 위험을 직접 나열합니다. 부유한 사용자는 보상을 파밍해 점수를 올릴 수 있고, 이웃이 활동하지 않게 되면 복구가 막힐 수 있습니다.\n- 오늘날에는 [ERC-4337](/eip-4337/) 기반 스마트 컨트랙트 지갑이 토큰별이 아니라 계정 수준에서 가디언 기반 소셜 복구를 구현하는 것이 일반적입니다.\n- 이 아이디어의 바탕이 되는 양도 불가능한 \"소울\" 토큰은 [ERC-5192](/eip-5192/)를 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一项处于停滞状态（Stagnant）的提案：通过让足够多受信任的\"邻居\"身份批准，并按链上声誉分数加权，将丢失账户中的代币转移到新地址，从而实现找回。","tags":["social-recovery","identity","reputation","wallet"],"related":[5192,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5883/","markdown":"## 它解决什么问题？\n\n如果你丢失了某个账户的私钥，其中的所有代币就永远丢失了。这不仅伤害所有者，也伤害代币的生态，因为丢失的代币会永久退出流通。\n\nERC-5883 勾勒出一种**社交恢复**方案：你认识的其他人（借用灵魂绑定代币的概念，称为 *Souls*）投票，把你的代币从无法访问的账户转移到新账户。与纯粹的多签不同，这里的批准意在体现人的判断，并且批准者的投票按照链上声誉分数来计权。\n\n## 它如何运作\n\n该接口有四个函数：\n\n| 函数 | 用途 |\n| --- | --- |\n| `addNeighbour(addr)` / `removeNeighbour(addr)` | 建立你信任的身份列表 |\n| `requestTransfer(from, to)` | 请求把你的链上身份／代币从 `from` 转移到 `to`（payable） |\n| `approveTransfer(from, to)` | 邻居对该请求投赞成票 |\n\n流程：\n\n1. 用户从任意钱包发起转移请求。\n2. 邻居在链下收到通知（规范提到了 websocket 或推送服务）。\n3. 邻居调用 `approveTransfer`。\n4. 一旦**批准者数量**和他们的**累计分数**都超过阈值，合约就把资产转移给新的所有者。\n5. 批准者会获得奖励，这会提高他们自己的分数。\n\n一个节点的分数混合了它自己的奖励次数和邻居的奖励，并根据每个邻居上次获得奖励距今的时间进行折减，最后用 `tanh` 压缩结果，使其保持有界（小于 1）。因此，近期活跃且获得较多奖励的邻居，比休眠的邻居权重更大。\n\n## 示例代码\n\n规范中的接口：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.7;\n\ninterface ISocialRecovery {\n    function approveTransfer(address from_, address to_) external;\n    function requestTransfer(address from_, address to_) external payable;\n    function addNeighbour(address neighbour_) external;\n    function removeNeighbour(address neighbour_) external;\n}\n```\n\n用伪代码表示的评分思路（`t` 为当前时间或区块号）：\n\n```python\nimport math\n\ndef score(node, t):\n    s = 0.0\n    for nb in node.neighbours:\n        s += math.log(nb.rewards * (1 / (t - nb.last_reward_time + 1)))\n    return math.tanh(s / (len(node.neighbours) + 1) + node.rewards)\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**：近期没有进展，也不是稳定的标准。请把它当作设计草图，而不是用来构建生产钱包的基础。\n- 规范留下了关键细节未定：谁可以调用每个函数、阈值是多少，以及\"代币\"究竟指什么。作者说他们的阈值只是初步猜测。\n- 作者自己列出了尚未解决的风险：富有的用户可以刷奖励来提高自己的分数，而且如果你的邻居变得不活跃，恢复可能会卡住。\n- 如今，基于 [ERC-4337](/eip-4337/) 构建的智能合约钱包通常在账户层面（而不是针对每个代币）实现基于守护者的社交恢复。\n- 关于这一想法所依托的不可转让\"灵魂\"代币，请参阅 [ERC-5192](/eip-5192/)。\n"}}}
