{"eip":7968,"title":"Owner-Authorized Token Transfer Protocol","description":"Enable third parties to transfer tokens authorized by a signed message.","authors":["Julius Lauterbach (@Julius278)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2025-06-11","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/erc-7951-owner-authorized-token-transfer-protocol/24526","repo":"ERCs","label":"ERC-7968","officialUrl":"https://eips.ethereum.org/EIPS/eip-7968","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7968.md","url":"https://eips.huatuo.xyz/eip-7968/","tldr":{"en":"A draft pattern where tokens sit in a per-owner contract, a payment processor proposes transfers and pays gas, and each transfer only executes once the owner signs the proposal hash, with an escape hatch to pull all funds back.","ja":"トークンをオーナーごとのコントラクトに保管し、決済プロセッサーが送金を提案してガス代を負担し、オーナーが提案ハッシュに署名して初めて各送金が実行される、というドラフト段階のパターン。資金をすべて引き戻すための緊急用の仕組みも備える。","ko":"토큰을 소유자별 컨트랙트에 보관하고, 결제 프로세서가 전송을 제안하며 가스비를 부담하고, 소유자가 제안 해시에 서명해야만 각 전송이 실행되는 초안 단계의 패턴. 모든 자금을 되찾아 올 수 있는 비상 수단도 갖추고 있다.","zh":"一种处于草案阶段的模式：代币存放在每个所有者专属的合约中，支付处理方提议转账并支付 gas，只有所有者对提议哈希签名后每笔转账才会执行，并提供可将全部资金取回的应急机制。"},"tags":["erc-20","payments","signatures","gasless","custody"],"explainers":{"en":{"lang":"en","tldr":"A draft pattern where tokens sit in a per-owner contract, a payment processor proposes transfers and pays gas, and each transfer only executes once the owner signs the proposal hash, with an escape hatch to pull all funds back.","tags":["erc-20","payments","signatures","gasless","custody"],"related":[20,2612,2771,191],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7968/","markdown":"## What problem does it solve?\n\nBusinesses that want to use tokenized payments often stumble on the basics: their users or partners do not want to run wallets, hold ETH for gas, or submit transactions themselves. Handing the tokens to a custodian solves the operational problem but gives up ownership.\n\nERC-7968 describes a middle ground. A third-party **payment processor** does all the on-chain work and pays the gas (and is reimbursed off-chain, for example in fiat), while the **owner** keeps on-chain ownership and must cryptographically approve every outgoing transfer.\n\n## How it works\n\nTokens such as [ERC-20](/eip-20/) are held in a storage contract tied to one owner. Transfers happen in two phases:\n\n1. **Proposal**: the processor calls `proposeTransaction(token, amount, destination)`. The contract stores the proposal, derives a unique `uint256` hash for it and emits `TransactionProposed(hash)`.\n2. **Approval**: the owner reviews the proposal off-chain and signs the hash. The processor submits `completeTransaction(hash, signature)`; the contract checks the signature belongs to the owner and then transfers the tokens, emitting `TransactionCompleted(hash)`.\n\nEach proposal carries an expiry; if the signature is not submitted in time, it can no longer be executed.\n\nAs a safety valve, the owner can call `sendFundsToOwner(token)` at any time to move the entire balance of that token to their own address (emitting `FallbackScenarioExecuted`), for example if the processor stops responding or behaves badly.\n\nA helper `verifySignature(signer, token, amount, destination, signature)` lets anyone check a signature before it is submitted.\n\n## Sample code\n\nThe interface from the spec:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface ITokenStorage {\n    event TransactionProposed(uint256 hash);\n    event TransactionCompleted(uint256 hash);\n    event FallbackScenarioExecuted(address tokenAddress);\n\n    function proposeTransaction(address tokenAddress, uint256 amountToSent, address destinationAddress) external;\n    function completeTransaction(uint256 hash, bytes memory signature) external;\n    function sendFundsToOwner(address tokenAddress) external;\n}\n```\n\nOwner side, signing a proposal hash read from the event (ethers v6). The spec does not fix the signing format; this assumes an [EIP-191](/eip-191/) `personal_sign` over the 32-byte hash:\n\n```ts\nimport { Wallet, toBeHex, getBytes } from \"ethers\";\n\nconst owner = new Wallet(process.env.OWNER_KEY!);\n\n// `proposalHash` is the uint256 from TransactionProposed(hash)\nasync function approve(proposalHash: bigint): Promise\u003cstring\u003e {\n  const hashBytes = getBytes(toBeHex(proposalHash, 32));\n  return owner.signMessage(hashBytes); // send this signature to the processor\n}\n```\n\n## Things to know\n\n- **Status: Draft, and incomplete.** The Rationale and Security Considerations sections are still placeholders, and there is no reference implementation or test suite.\n- Important details are left open: how the proposal hash is computed, the exact signature scheme (plain hash, [EIP-191](/eip-191/) or EIP-712), how the expiry is stored, and replay protection across contracts and chains. Implementers must decide these carefully.\n- The listed `verifySignature` is declared `pure` yet takes the transfer parameters rather than the stored hash, so it cannot cover expiry or contract-specific data. Treat the signature design as unsettled.\n- The processor can propose anything, but cannot move funds without the owner's signature. The owner should check every field before signing.\n- For simpler gasless approvals of a single token, compare [ERC-2612](/eip-2612/) `permit`; for relayed calls in general, [ERC-2771](/eip-2771/).\n"},"ja":{"lang":"ja","tldr":"トークンをオーナーごとのコントラクトに保管し、決済プロセッサーが送金を提案してガス代を負担し、オーナーが提案ハッシュに署名して初めて各送金が実行される、というドラフト段階のパターン。資金をすべて引き戻すための緊急用の仕組みも備える。","tags":["erc-20","payments","signatures","gasless","custody"],"related":[20,2612,2771,191],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7968/","markdown":"## 何を解決するのか\n\nトークン化された決済を使いたい企業は、基本的な部分でつまずくことがよくあります。ユーザーや取引先がウォレットを運用したくない、ガス代のための ETH を持ちたくない、自分でトランザクションを送信したくない、といった事情です。トークンをカストディアンに預ければ運用上の問題は解決しますが、所有権を手放すことになります。\n\nERC-7968 は中間的な解決策を示します。第三者の**決済プロセッサー**がオンチェーンの作業をすべて行ってガス代を負担し（その分はたとえば法定通貨でオフチェーンで精算されます）、**オーナー**はオンチェーンでの所有権を保ち、あらゆる出金を暗号署名で承認する必要があります。\n\n## 仕組み\n\n[ERC-20](/eip-20/) などのトークンは、1 人のオーナーに紐づいたストレージコントラクトに保管されます。送金は 2 つのフェーズで行われます。\n\n1. **提案**: プロセッサーが `proposeTransaction(token, amount, destination)` を呼び出します。コントラクトは提案を保存し、その提案に固有の `uint256` ハッシュを導出して `TransactionProposed(hash)` を発行します。\n2. **承認**: オーナーは提案をオフチェーンで確認し、ハッシュに署名します。プロセッサーが `completeTransaction(hash, signature)` を送信すると、コントラクトは署名がオーナーのものであることを確認したうえでトークンを送金し、`TransactionCompleted(hash)` を発行します。\n\n各提案には有効期限があり、期限内に署名が送信されなければ実行できなくなります。\n\n安全弁として、オーナーはいつでも `sendFundsToOwner(token)` を呼び出して、そのトークンの残高全額を自分のアドレスへ移せます（`FallbackScenarioExecuted` を発行）。たとえばプロセッサーが応答しなくなった場合や不正に振る舞った場合に使います。\n\n補助関数 `verifySignature(signer, token, amount, destination, signature)` を使えば、誰でも署名を送信前に確認できます。\n\n## サンプルコード\n\n仕様のインターフェース:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface ITokenStorage {\n    event TransactionProposed(uint256 hash);\n    event TransactionCompleted(uint256 hash);\n    event FallbackScenarioExecuted(address tokenAddress);\n\n    function proposeTransaction(address tokenAddress, uint256 amountToSent, address destinationAddress) external;\n    function completeTransaction(uint256 hash, bytes memory signature) external;\n    function sendFundsToOwner(address tokenAddress) external;\n}\n```\n\nオーナー側で、イベントから読み取った提案ハッシュに署名する例（ethers v6）。仕様は署名フォーマットを定めていないため、ここでは 32 バイトのハッシュに対する [EIP-191](/eip-191/) の `personal_sign` を想定しています。\n\n```ts\nimport { Wallet, toBeHex, getBytes } from \"ethers\";\n\nconst owner = new Wallet(process.env.OWNER_KEY!);\n\n// `proposalHash` is the uint256 from TransactionProposed(hash)\nasync function approve(proposalHash: bigint): Promise\u003cstring\u003e {\n  const hashBytes = getBytes(toBeHex(proposalHash, 32));\n  return owner.signMessage(hashBytes); // send this signature to the processor\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft（未完成）。** Rationale と Security Considerations のセクションはまだプレースホルダーで、リファレンス実装もテストスイートもありません。\n- 重要な詳細が未定のままです。提案ハッシュの計算方法、正確な署名方式（生のハッシュ、[EIP-191](/eip-191/)、EIP-712）、有効期限の保存方法、コントラクトやチェーンをまたぐリプレイ攻撃への対策などです。実装者は慎重に決める必要があります。\n- 記載されている `verifySignature` は `pure` と宣言されていますが、保存済みのハッシュではなく送金パラメータを受け取るため、有効期限やコントラクト固有のデータは検証できません。署名の設計は未確定として扱ってください。\n- プロセッサーは何でも提案できますが、オーナーの署名なしに資金を動かすことはできません。オーナーは署名前にすべての項目を確認してください。\n- 単一トークンのよりシンプルなガスレス承認には [ERC-2612](/eip-2612/) の `permit` を、リレーされた呼び出し全般には [ERC-2771](/eip-2771/) を比較してください。\n"},"ko":{"lang":"ko","tldr":"토큰을 소유자별 컨트랙트에 보관하고, 결제 프로세서가 전송을 제안하며 가스비를 부담하고, 소유자가 제안 해시에 서명해야만 각 전송이 실행되는 초안 단계의 패턴. 모든 자금을 되찾아 올 수 있는 비상 수단도 갖추고 있다.","tags":["erc-20","payments","signatures","gasless","custody"],"related":[20,2612,2771,191],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7968/","markdown":"## 어떤 문제를 해결하나요?\n\n토큰화된 결제를 쓰려는 기업은 가장 기본적인 부분에서 막히는 경우가 많습니다. 사용자나 파트너가 지갑을 운영하거나, 가스비용 ETH를 보유하거나, 직접 트랜잭션을 제출하고 싶어 하지 않기 때문입니다. 토큰을 수탁 기관에 맡기면 운영상의 문제는 풀리지만 소유권을 포기하게 됩니다.\n\nERC-7968은 그 중간 지점을 제시합니다. 제3자 **결제 프로세서**가 온체인 작업을 모두 처리하고 가스비를 부담하며(그 비용은 오프체인에서, 예를 들어 법정화폐로 정산됩니다), **소유자**는 온체인 소유권을 유지하면서 모든 출금을 암호학적으로 승인해야 합니다.\n\n## 어떻게 동작하나요?\n\n[ERC-20](/eip-20/) 같은 토큰은 한 명의 소유자에게 묶인 스토리지 컨트랙트에 보관됩니다. 전송은 두 단계로 이루어집니다.\n\n1. **제안**: 프로세서가 `proposeTransaction(token, amount, destination)`을 호출합니다. 컨트랙트는 제안을 저장하고, 그 제안에 고유한 `uint256` 해시를 도출한 뒤 `TransactionProposed(hash)`를 발생시킵니다.\n2. **승인**: 소유자는 오프체인에서 제안을 검토하고 해시에 서명합니다. 프로세서가 `completeTransaction(hash, signature)`를 제출하면, 컨트랙트는 서명이 소유자의 것인지 확인한 다음 토큰을 전송하고 `TransactionCompleted(hash)`를 발생시킵니다.\n\n각 제안에는 만료 시각이 있으며, 서명이 제때 제출되지 않으면 더 이상 실행할 수 없습니다.\n\n안전장치로서 소유자는 언제든 `sendFundsToOwner(token)`을 호출해 해당 토큰의 전체 잔액을 자기 주소로 옮길 수 있습니다(`FallbackScenarioExecuted` 발생). 예를 들어 프로세서가 응답하지 않거나 잘못 행동할 때 쓸 수 있습니다.\n\n보조 함수 `verifySignature(signer, token, amount, destination, signature)`를 사용하면 누구나 서명을 제출하기 전에 확인할 수 있습니다.\n\n## 샘플 코드\n\n스펙의 인터페이스:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface ITokenStorage {\n    event TransactionProposed(uint256 hash);\n    event TransactionCompleted(uint256 hash);\n    event FallbackScenarioExecuted(address tokenAddress);\n\n    function proposeTransaction(address tokenAddress, uint256 amountToSent, address destinationAddress) external;\n    function completeTransaction(uint256 hash, bytes memory signature) external;\n    function sendFundsToOwner(address tokenAddress) external;\n}\n```\n\n소유자 쪽에서 이벤트로 읽은 제안 해시에 서명하는 예시(ethers v6)입니다. 스펙은 서명 형식을 정하지 않았으며, 여기서는 32바이트 해시에 대한 [EIP-191](/eip-191/) `personal_sign`을 가정합니다.\n\n```ts\nimport { Wallet, toBeHex, getBytes } from \"ethers\";\n\nconst owner = new Wallet(process.env.OWNER_KEY!);\n\n// `proposalHash` is the uint256 from TransactionProposed(hash)\nasync function approve(proposalHash: bigint): Promise\u003cstring\u003e {\n  const hashBytes = getBytes(toBeHex(proposalHash, 32));\n  return owner.signMessage(hashBytes); // send this signature to the processor\n}\n```\n\n## 알아둘 점\n\n- **상태: Draft이며 미완성입니다.** Rationale과 Security Considerations 섹션은 아직 자리 표시자이고, 레퍼런스 구현이나 테스트 스위트도 없습니다.\n- 중요한 세부 사항이 열려 있습니다. 제안 해시를 어떻게 계산하는지, 정확한 서명 방식(단순 해시, [EIP-191](/eip-191/), EIP-712), 만료 시각을 어떻게 저장하는지, 컨트랙트와 체인 간 리플레이 방지 등입니다. 구현자는 이를 신중하게 정해야 합니다.\n- 명시된 `verifySignature`는 `pure`로 선언되어 있지만 저장된 해시가 아니라 전송 파라미터를 받기 때문에 만료 시각이나 컨트랙트별 데이터는 다룰 수 없습니다. 서명 설계는 아직 확정되지 않은 것으로 보세요.\n- 프로세서는 무엇이든 제안할 수 있지만 소유자의 서명 없이는 자금을 옮길 수 없습니다. 소유자는 서명하기 전에 모든 필드를 확인해야 합니다.\n- 단일 토큰에 대한 더 간단한 가스리스 승인은 [ERC-2612](/eip-2612/) `permit`을, 릴레이 호출 전반은 [ERC-2771](/eip-2771/)을 비교해 보세요.\n"},"zh":{"lang":"zh","tldr":"一种处于草案阶段的模式：代币存放在每个所有者专属的合约中，支付处理方提议转账并支付 gas，只有所有者对提议哈希签名后每笔转账才会执行，并提供可将全部资金取回的应急机制。","tags":["erc-20","payments","signatures","gasless","custody"],"related":[20,2612,2771,191],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7968/","markdown":"## 它解决什么问题？\n\n想要使用代币化支付的企业常常在最基本的环节上遇到困难：他们的用户或合作伙伴不想自己运行钱包、持有 ETH 来支付 gas，也不想自己提交交易。把代币交给托管方可以解决运营问题，却放弃了所有权。\n\nERC-7968 描述了一种折中方案。第三方**支付处理方**完成所有链上操作并支付 gas（并在链下获得补偿，例如以法币结算），而**所有者**保留链上所有权，并且必须以密码学方式批准每一笔转出。\n\n## 它如何运作\n\n[ERC-20](/eip-20/) 等代币存放在与某一位所有者绑定的存储合约中。转账分两个阶段进行：\n\n1. **提议**：处理方调用 `proposeTransaction(token, amount, destination)`。合约保存该提议，为其派生出唯一的 `uint256` 哈希，并触发 `TransactionProposed(hash)`。\n2. **批准**：所有者在链下审阅提议并对哈希签名。处理方提交 `completeTransaction(hash, signature)`；合约验证签名确实属于所有者，然后转移代币，并触发 `TransactionCompleted(hash)`。\n\n每个提议都带有过期时间；如果没有在时限内提交签名，该提议就无法再执行。\n\n作为安全阀，所有者可以随时调用 `sendFundsToOwner(token)`，将该代币的全部余额转到自己的地址（触发 `FallbackScenarioExecuted`），例如在处理方不再响应或行为不当时使用。\n\n辅助函数 `verifySignature(signer, token, amount, destination, signature)` 让任何人都可以在签名提交之前验证它。\n\n## 示例代码\n\n规范中的接口：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface ITokenStorage {\n    event TransactionProposed(uint256 hash);\n    event TransactionCompleted(uint256 hash);\n    event FallbackScenarioExecuted(address tokenAddress);\n\n    function proposeTransaction(address tokenAddress, uint256 amountToSent, address destinationAddress) external;\n    function completeTransaction(uint256 hash, bytes memory signature) external;\n    function sendFundsToOwner(address tokenAddress) external;\n}\n```\n\n所有者一侧，对从事件中读取的提议哈希进行签名（ethers v6）。规范没有固定签名格式；这里假设对 32 字节哈希使用 [EIP-191](/eip-191/) 的 `personal_sign`：\n\n```ts\nimport { Wallet, toBeHex, getBytes } from \"ethers\";\n\nconst owner = new Wallet(process.env.OWNER_KEY!);\n\n// `proposalHash` is the uint256 from TransactionProposed(hash)\nasync function approve(proposalHash: bigint): Promise\u003cstring\u003e {\n  const hashBytes = getBytes(toBeHex(proposalHash, 32));\n  return owner.signMessage(hashBytes); // send this signature to the processor\n}\n```\n\n## 需要注意\n\n- **状态：Draft，且尚不完整。** Rationale 和 Security Considerations 章节仍是占位内容，也没有参考实现或测试套件。\n- 一些重要细节尚未确定：提议哈希如何计算、具体的签名方案（原始哈希、[EIP-191](/eip-191/) 还是 EIP-712）、过期时间如何存储，以及跨合约和跨链的重放保护。实现者必须谨慎决定这些问题。\n- 所列的 `verifySignature` 被声明为 `pure`，但它接收的是转账参数而不是已存储的哈希，因此无法覆盖过期时间或合约特有的数据。请把签名设计视为尚未定论。\n- 处理方可以提议任何转账，但没有所有者的签名就无法动用资金。所有者在签名前应检查每一个字段。\n- 如果只需要对单一代币进行更简单的无 gas 授权，可参考 [ERC-2612](/eip-2612/) 的 `permit`；对于一般的中继调用，可参考 [ERC-2771](/eip-2771/)。\n"}}}
