{"eip":6808,"title":"Fungible Key Bound Token","description":"An interface for Fungible Key Bound Tokens, also known as a FKBT.","authors":["Mihai Onila (@MihaiORO)","Nick Zeman (@NickZCZ)","Narcis Cotaie (@NarcisCRO)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2023-03-31","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/fungible-key-bound-token-kbt/13624","repo":"ERCs","label":"ERC-6808","officialUrl":"https://eips.ethereum.org/EIPS/eip-6808","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6808.md","url":"https://eips.huatuo.xyz/eip-6808/","tldr":{"en":"An ERC-20 extension where a holder can bind two key wallets that must pre-authorize transfers and approvals, and can rescue funds or reset keys if one wallet is compromised.","ja":"ERC-20 の拡張。保有者が 2 つの鍵ウォレットを紐付け、送金と承認を事前に許可制にできる。いずれかのウォレットが侵害された場合に、資金の退避や鍵のリセットも可能。","ko":"ERC-20 확장. 보유자가 키 지갑 두 개를 연결해 전송과 승인을 사전 허가제로 만들 수 있으며, 지갑 하나가 탈취되면 자금을 구출하거나 키를 재설정할 수 있다.","zh":"ERC-20 扩展：持有者可以绑定两个密钥钱包，转账和授权必须事先经过它们批准；若其中一个钱包被盗，还可以转移资金或重置密钥。"},"tags":["token","erc20","security","anti-theft","wallet"],"explainers":{"en":{"lang":"en","tldr":"An ERC-20 extension where a holder can bind two key wallets that must pre-authorize transfers and approvals, and can rescue funds or reset keys if one wallet is compromised.","tags":["token","erc20","security","anti-theft","wallet"],"related":[20,6809,7144],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6808/","markdown":"## What problem does it solve?\n\nWith a normal [ERC-20](/eip-20/) token, whoever controls the holding wallet's key controls the tokens. A leaked seed phrase or one malicious signature can drain everything, with no second chance.\n\nERC-6808 (Fungible Key Bound Token, FKBT) builds optional protection into the token itself. The holder links two extra **key wallets**; once linked, the holding wallet can only move or approve tokens within limits that a key wallet has explicitly allowed. If one of the three wallets is compromised, the other two can still protect the funds. Its sibling for NFTs is [ERC-6809](/eip-6809/).\n\n## How it works\n\nThe interface `IKBT20` adds to ERC-20:\n\n| Function | Caller | Effect |\n| --- | --- | --- |\n| `addBindings(key1, key2)` | holder | Secure the account with two distinct key wallets (emits `AccountSecured`) |\n| `allowTransfer(amount, time, to, allFunds)` | key wallet | Permit the holder's next `transfer` within limits |\n| `allowApproval(time, numberOfTransfers)` | key wallet | Permit the holder to call `approve` / `increaseAllowance` / `decreaseAllowance`, optionally capping how many `transferFrom` calls the spender gets |\n| `safeFallback()` | key wallet | Move all tokens from the holder to the **other** key wallet |\n| `resetBindings()` | key wallet | Remove both key wallets; token behaves like plain ERC-20 again |\n\nIn `allowTransfer`, a zero `amount`, zero `time` or zero `to` means \"no restriction\" on that dimension, and `allFunds = true` unlocks everything. View helpers (`getBindings`, `getTransferableFunds`, `getApprovalConditions`, `getNumberOfTransfersAllowed`, `isSecureWallet`) expose the current state.\n\nRecovery logic:\n\n- **Holding wallet compromised** → a key wallet calls `safeFallback`. Funds go to the *other* key wallet, so a single stolen key wallet cannot use this to steal.\n- **A key wallet compromised** → the other key wallet calls `resetBindings`, then the holder binds new keys. The holder alone cannot reset, otherwise a thief with the holder key could just remove the protection.\n\nIf two of the three wallets are compromised, the standard cannot help.\n\n## Sample code\n\nSecuring an account, then making a protected transfer (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function addBindings(address,address) returns (bool)\",\n  \"function allowTransfer(uint256 amount,uint256 time,address to,bool allFunds) returns (bool)\",\n  \"function transfer(address,uint256) returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst holder = new Wallet(process.env.HOLDER_KEY!, provider);\nconst key1   = new Wallet(process.env.KEY1_KEY!, provider);\n\nconst asHolder = new Contract(process.env.TOKEN!, abi, holder);\nconst asKey1   = asHolder.connect(key1) as Contract;\n\n// one-time setup from the holding wallet\nawait (await asHolder.addBindings(key1.address, process.env.KEY2_ADDRESS!)).wait();\n\n// each transfer: key wallet authorises 100 tokens to one recipient, then holder sends\nconst amount = parseUnits(\"100\", 18);\nawait (await asKey1.allowTransfer(amount, 600, process.env.RECIPIENT!, false)).wait();\nawait (await asHolder.transfer(process.env.RECIPIENT!, amount)).wait();\n```\n\n## Things to know\n\n- Status is **Final**.\n- Security is opt-in. Until `addBindings` is called the token behaves exactly like ERC-20.\n- Each protected transfer or approval needs an extra transaction from a key wallet, which costs gas and time.\n- The spec describes the `time` parameter both as seconds and as \"number of blocks\"; check the implementation you use before relying on a specific unit.\n- `addBindings` should revert if either key wallet is already bound to another holder, is the holder itself, or is the zero address.\n- Integrations that pull tokens with `transferFrom` still work, but only after the holder's approval was allowed via `allowApproval`. A related validation-based approach is [ERC-7144](/eip-7144/).\n"},"ja":{"lang":"ja","tldr":"ERC-20 の拡張。保有者が 2 つの鍵ウォレットを紐付け、送金と承認を事前に許可制にできる。いずれかのウォレットが侵害された場合に、資金の退避や鍵のリセットも可能。","tags":["token","erc20","security","anti-theft","wallet"],"related":[20,6809,7144],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6808/","markdown":"## 何を解決するのか\n\n通常の [ERC-20](/eip-20/) トークンでは、保有ウォレットの鍵を握る者がトークンを支配します。シードフレーズの流出や 1 回の悪意ある署名で全資産が抜き取られ、やり直しはききません。\n\nERC-6808（Fungible Key Bound Token、FKBT）は、任意で使える保護機能をトークン自体に組み込みます。保有者が 2 つの追加の **鍵ウォレット** を紐付けると、以後は保有ウォレットは、鍵ウォレットが明示的に許可した範囲内でしかトークンの移動や承認ができなくなります。3 つのウォレットのうち 1 つが侵害されても、残りの 2 つで資金を守れます。NFT 版の兄弟規格は [ERC-6809](/eip-6809/) です。\n\n## 仕組み\n\nインターフェース `IKBT20` は ERC-20 に次を追加します。\n\n| 関数 | 呼び出し元 | 効果 |\n| --- | --- | --- |\n| `addBindings(key1, key2)` | 保有者 | 2 つの異なる鍵ウォレットでアカウントを保護する（`AccountSecured` を emit） |\n| `allowTransfer(amount, time, to, allFunds)` | 鍵ウォレット | 保有者の次回の `transfer` を、制限の範囲内で許可する |\n| `allowApproval(time, numberOfTransfers)` | 鍵ウォレット | 保有者が `approve` / `increaseAllowance` / `decreaseAllowance` を呼ぶことを許可する。必要に応じて、spender が使える `transferFrom` の回数に上限を設ける |\n| `safeFallback()` | 鍵ウォレット | 保有者のすべてのトークンを **もう一方の** 鍵ウォレットへ移す |\n| `resetBindings()` | 鍵ウォレット | 2 つの鍵ウォレットを両方とも解除する。トークンは通常の ERC-20 の挙動に戻る |\n\n`allowTransfer` では、`amount` が 0、`time` が 0、`to` が 0 の場合は、その項目について「制限なし」を意味し、`allFunds = true` ですべてが解除されます。ビューヘルパー（`getBindings`、`getTransferableFunds`、`getApprovalConditions`、`getNumberOfTransfersAllowed`、`isSecureWallet`）で現在の状態を確認できます。\n\n復旧ロジック:\n\n- **保有ウォレットが侵害された場合** → 鍵ウォレットが `safeFallback` を呼びます。資金は *もう一方の* 鍵ウォレットに移るため、盗まれた鍵ウォレット 1 つだけではこれを使って盗むことはできません。\n- **鍵ウォレットが侵害された場合** → もう一方の鍵ウォレットが `resetBindings` を呼び、そのあと保有者が新しい鍵を紐付けます。保有者単独ではリセットできません。そうでないと、保有者の鍵を持つ泥棒が保護を外せてしまうためです。\n\n3 つのうち 2 つのウォレットが侵害された場合、この規格では対処できません。\n\n## サンプルコード\n\nアカウントを保護し、そのうえで保護付きの送金を行う（ethers v6）:\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function addBindings(address,address) returns (bool)\",\n  \"function allowTransfer(uint256 amount,uint256 time,address to,bool allFunds) returns (bool)\",\n  \"function transfer(address,uint256) returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst holder = new Wallet(process.env.HOLDER_KEY!, provider);\nconst key1   = new Wallet(process.env.KEY1_KEY!, provider);\n\nconst asHolder = new Contract(process.env.TOKEN!, abi, holder);\nconst asKey1   = asHolder.connect(key1) as Contract;\n\n// one-time setup from the holding wallet\nawait (await asHolder.addBindings(key1.address, process.env.KEY2_ADDRESS!)).wait();\n\n// each transfer: key wallet authorises 100 tokens to one recipient, then holder sends\nconst amount = parseUnits(\"100\", 18);\nawait (await asKey1.allowTransfer(amount, 600, process.env.RECIPIENT!, false)).wait();\nawait (await asHolder.transfer(process.env.RECIPIENT!, amount)).wait();\n```\n\n## 知っておくべきこと\n\n- ステータスは **Final** です。\n- セキュリティはオプトインです。`addBindings` が呼ばれるまで、トークンは ERC-20 とまったく同じ挙動をします。\n- 保護された送金や承認のたびに、鍵ウォレットからの追加トランザクションが必要になり、gas と時間がかかります。\n- 仕様書では `time` パラメータが「秒」と「ブロック数」の両方で説明されています。特定の単位に頼る前に、使用する実装を確認してください。\n- どちらかの鍵ウォレットがすでに別の保有者に紐付いている、保有者自身である、またはゼロアドレスである場合、`addBindings` は revert すべきです。\n- `transferFrom` でトークンを引き出す連携も引き続き動作しますが、保有者の承認が `allowApproval` で許可されたあとに限られます。関連する検証ベースの方式として [ERC-7144](/eip-7144/) があります。\n"},"ko":{"lang":"ko","tldr":"ERC-20 확장. 보유자가 키 지갑 두 개를 연결해 전송과 승인을 사전 허가제로 만들 수 있으며, 지갑 하나가 탈취되면 자금을 구출하거나 키를 재설정할 수 있다.","tags":["token","erc20","security","anti-theft","wallet"],"related":[20,6809,7144],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6808/","markdown":"## 어떤 문제를 해결하나요?\n\n일반 [ERC-20](/eip-20/) 토큰에서는 보유 지갑의 키를 가진 사람이 토큰을 통제합니다. 시드 문구가 유출되거나 악성 서명 한 번이면 전부 털릴 수 있고, 두 번째 기회는 없습니다.\n\nERC-6808(Fungible Key Bound Token, FKBT)은 선택적 보호 기능을 토큰 자체에 내장합니다. 보유자가 추가 **키 지갑** 두 개를 연결하면, 이후 보유 지갑은 키 지갑이 명시적으로 허용한 한도 안에서만 토큰을 옮기거나 승인할 수 있습니다. 세 지갑 중 하나가 탈취되어도 나머지 둘이 자금을 지킬 수 있습니다. NFT용 자매 표준은 [ERC-6809](/eip-6809/)입니다.\n\n## 어떻게 동작하나요?\n\n`IKBT20` 인터페이스는 ERC-20에 다음을 추가합니다.\n\n| 함수 | 호출자 | 효과 |\n| --- | --- | --- |\n| `addBindings(key1, key2)` | 보유자 | 서로 다른 키 지갑 두 개로 계정을 보호합니다(`AccountSecured` emit) |\n| `allowTransfer(amount, time, to, allFunds)` | 키 지갑 | 보유자의 다음 `transfer`를 제한 범위 안에서 허용합니다 |\n| `allowApproval(time, numberOfTransfers)` | 키 지갑 | 보유자가 `approve` / `increaseAllowance` / `decreaseAllowance`를 호출하도록 허용하며, 선택적으로 spender가 쓸 수 있는 `transferFrom` 호출 횟수에 상한을 둡니다 |\n| `safeFallback()` | 키 지갑 | 보유자의 모든 토큰을 **다른** 키 지갑으로 옮깁니다 |\n| `resetBindings()` | 키 지갑 | 두 키 지갑을 모두 제거합니다. 토큰은 다시 일반 ERC-20처럼 동작합니다 |\n\n`allowTransfer`에서 `amount`가 0, `time`이 0, `to`가 0이면 해당 항목에 \"제한 없음\"을 뜻하고, `allFunds = true`이면 모든 제한이 풀립니다. 조회용 헬퍼(`getBindings`, `getTransferableFunds`, `getApprovalConditions`, `getNumberOfTransfersAllowed`, `isSecureWallet`)로 현재 상태를 확인할 수 있습니다.\n\n복구 로직:\n\n- **보유 지갑이 탈취된 경우** → 키 지갑이 `safeFallback`을 호출합니다. 자금은 *다른* 키 지갑으로 가므로, 탈취된 키 지갑 하나만으로는 이를 이용해 훔칠 수 없습니다.\n- **키 지갑이 탈취된 경우** → 다른 키 지갑이 `resetBindings`를 호출한 뒤, 보유자가 새 키를 연결합니다. 보유자 혼자서는 재설정할 수 없습니다. 그렇지 않으면 보유자 키를 가진 도둑이 보호를 그냥 제거할 수 있기 때문입니다.\n\n세 지갑 중 두 개가 탈취되면 이 표준으로는 도울 수 없습니다.\n\n## 샘플 코드\n\n계정을 보호한 뒤 보호된 전송을 수행(ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function addBindings(address,address) returns (bool)\",\n  \"function allowTransfer(uint256 amount,uint256 time,address to,bool allFunds) returns (bool)\",\n  \"function transfer(address,uint256) returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst holder = new Wallet(process.env.HOLDER_KEY!, provider);\nconst key1   = new Wallet(process.env.KEY1_KEY!, provider);\n\nconst asHolder = new Contract(process.env.TOKEN!, abi, holder);\nconst asKey1   = asHolder.connect(key1) as Contract;\n\n// one-time setup from the holding wallet\nawait (await asHolder.addBindings(key1.address, process.env.KEY2_ADDRESS!)).wait();\n\n// each transfer: key wallet authorises 100 tokens to one recipient, then holder sends\nconst amount = parseUnits(\"100\", 18);\nawait (await asKey1.allowTransfer(amount, 600, process.env.RECIPIENT!, false)).wait();\nawait (await asHolder.transfer(process.env.RECIPIENT!, amount)).wait();\n```\n\n## 알아둘 점\n\n- 상태는 **Final**입니다.\n- 보안은 옵트인 방식입니다. `addBindings`를 호출하기 전까지 토큰은 ERC-20과 완전히 똑같이 동작합니다.\n- 보호된 전송이나 승인마다 키 지갑에서 추가 트랜잭션이 필요하므로 gas와 시간이 듭니다.\n- 명세는 `time` 매개변수를 초와 \"블록 수\" 두 가지로 설명합니다. 특정 단위에 의존하기 전에 사용하는 구현을 확인하세요.\n- 키 지갑 중 하나라도 이미 다른 보유자에게 연결되어 있거나, 보유자 자신이거나, 제로 주소이면 `addBindings`는 revert해야 합니다.\n- `transferFrom`으로 토큰을 가져가는 연동은 계속 동작하지만, 보유자의 승인이 `allowApproval`로 허용된 뒤에만 가능합니다. 관련된 검증 기반 접근 방식으로 [ERC-7144](/eip-7144/)가 있습니다.\n"},"zh":{"lang":"zh","tldr":"ERC-20 扩展：持有者可以绑定两个密钥钱包，转账和授权必须事先经过它们批准；若其中一个钱包被盗，还可以转移资金或重置密钥。","tags":["token","erc20","security","anti-theft","wallet"],"related":[20,6809,7144],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6808/","markdown":"## 它解决什么问题？\n\n使用普通的 [ERC-20](/eip-20/) 代币时，谁掌握持有钱包的私钥，谁就掌控代币。助记词泄露或一次恶意签名就可能让资产被全部转走，没有第二次机会。\n\nERC-6808（Fungible Key Bound Token，FKBT）把可选的保护机制直接内置到代币中。持有者关联两个额外的 **密钥钱包**；关联之后，持有钱包只能在密钥钱包明确允许的限额内转移或授权代币。三个钱包中若有一个被盗，另外两个仍然可以保护资金。它面向 NFT 的姊妹标准是 [ERC-6809](/eip-6809/)。\n\n## 它如何运作\n\n接口 `IKBT20` 在 ERC-20 基础上增加了：\n\n| 函数 | 调用者 | 效果 |\n| --- | --- | --- |\n| `addBindings(key1, key2)` | 持有者 | 用两个不同的密钥钱包保护账户（触发 `AccountSecured`） |\n| `allowTransfer(amount, time, to, allFunds)` | 密钥钱包 | 在限制范围内允许持有者的下一次 `transfer` |\n| `allowApproval(time, numberOfTransfers)` | 密钥钱包 | 允许持有者调用 `approve` / `increaseAllowance` / `decreaseAllowance`，并可限制 spender 能调用 `transferFrom` 的次数 |\n| `safeFallback()` | 密钥钱包 | 将持有者的全部代币转到 **另一个** 密钥钱包 |\n| `resetBindings()` | 密钥钱包 | 移除两个密钥钱包；代币恢复为普通 ERC-20 的行为 |\n\n在 `allowTransfer` 中，`amount` 为 0、`time` 为 0 或 `to` 为 0，表示该维度\"不设限制\"，`allFunds = true` 则解锁全部。查询辅助函数（`getBindings`、`getTransferableFunds`、`getApprovalConditions`、`getNumberOfTransfersAllowed`、`isSecureWallet`）用于查看当前状态。\n\n恢复逻辑：\n\n- **持有钱包被盗** → 密钥钱包调用 `safeFallback`。资金会转到 *另一个* 密钥钱包，因此仅凭一个被盗的密钥钱包无法借此窃取资金。\n- **某个密钥钱包被盗** → 另一个密钥钱包调用 `resetBindings`，然后持有者绑定新的密钥。持有者不能单独重置，否则掌握持有者私钥的窃贼可以直接移除保护。\n\n如果三个钱包中有两个被盗，该标准就无能为力了。\n\n## 示例代码\n\n保护账户，然后发起一次受保护的转账（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, parseUnits } from \"ethers\";\n\nconst abi = [\n  \"function addBindings(address,address) returns (bool)\",\n  \"function allowTransfer(uint256 amount,uint256 time,address to,bool allFunds) returns (bool)\",\n  \"function transfer(address,uint256) returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst holder = new Wallet(process.env.HOLDER_KEY!, provider);\nconst key1   = new Wallet(process.env.KEY1_KEY!, provider);\n\nconst asHolder = new Contract(process.env.TOKEN!, abi, holder);\nconst asKey1   = asHolder.connect(key1) as Contract;\n\n// one-time setup from the holding wallet\nawait (await asHolder.addBindings(key1.address, process.env.KEY2_ADDRESS!)).wait();\n\n// each transfer: key wallet authorises 100 tokens to one recipient, then holder sends\nconst amount = parseUnits(\"100\", 18);\nawait (await asKey1.allowTransfer(amount, 600, process.env.RECIPIENT!, false)).wait();\nawait (await asHolder.transfer(process.env.RECIPIENT!, amount)).wait();\n```\n\n## 需要注意\n\n- 状态为 **Final**。\n- 安全功能需要主动开启。在调用 `addBindings` 之前，代币的行为与 ERC-20 完全相同。\n- 每次受保护的转账或授权都需要密钥钱包额外发送一笔交易，会花费 gas 和时间。\n- 规范对 `time` 参数既说成秒，又说成\"区块数\"；在依赖某个具体单位之前，请先确认你所使用的实现。\n- 如果任一密钥钱包已绑定到其他持有者、就是持有者本人，或是零地址，`addBindings` 应该 revert。\n- 通过 `transferFrom` 拉取代币的集成仍然可用，但前提是持有者的授权已通过 `allowApproval` 获得允许。一种相关的基于验证的方案是 [ERC-7144](/eip-7144/)。\n"}}}
