EIPs Explained

ERC-7968 · Draft · ERC · 2025-06-11

ERC-7968: Owner-Authorized Token Transfer Protocol

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.

What problem does it solve?

Businesses 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.

ERC-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.

How it works

Tokens such as ERC-20 are held in a storage contract tied to one owner. Transfers happen in two phases:

  1. Proposal: the processor calls proposeTransaction(token, amount, destination). The contract stores the proposal, derives a unique uint256 hash for it and emits TransactionProposed(hash).
  2. 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).

Each proposal carries an expiry; if the signature is not submitted in time, it can no longer be executed.

As 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.

A helper verifySignature(signer, token, amount, destination, signature) lets anyone check a signature before it is submitted.

Sample code

The interface from the spec:

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface ITokenStorage {
    event TransactionProposed(uint256 hash);
    event TransactionCompleted(uint256 hash);
    event FallbackScenarioExecuted(address tokenAddress);

    function proposeTransaction(address tokenAddress, uint256 amountToSent, address destinationAddress) external;
    function completeTransaction(uint256 hash, bytes memory signature) external;
    function sendFundsToOwner(address tokenAddress) external;
}

Owner side, signing a proposal hash read from the event (ethers v6). The spec does not fix the signing format; this assumes an EIP-191 personal_sign over the 32-byte hash:

import { Wallet, toBeHex, getBytes } from "ethers";

const owner = new Wallet(process.env.OWNER_KEY!);

// `proposalHash` is the uint256 from TransactionProposed(hash)
async function approve(proposalHash: bigint): Promise<string> {
  const hashBytes = getBytes(toBeHex(proposalHash, 32));
  return owner.signMessage(hashBytes); // send this signature to the processor
}

Things to know

  • Status: Draft, and incomplete. The Rationale and Security Considerations sections are still placeholders, and there is no reference implementation or test suite.
  • Important details are left open: how the proposal hash is computed, the exact signature scheme (plain hash, EIP-191 or EIP-712), how the expiry is stored, and replay protection across contracts and chains. Implementers must decide these carefully.
  • 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.
  • The processor can propose anything, but cannot move funds without the owner's signature. The owner should check every field before signing.
  • For simpler gasless approvals of a single token, compare ERC-2612 permit; for relayed calls in general, ERC-2771.

#erc-20 #payments #signatures #gasless #custody

Details

Authors
Julius Lauterbach (@Julius278)
Status
Draft
Type
Standards Track / ERC
Created
2025-06-11
Requires

Machine-readable: Markdown · JSON