EIPs Explained

ERC-7964 · Draft · ERC · 2025-06-05

ERC-7964: Crosschain EIP-712 Signatures

Lets one EIP-712 signature authorize operations on several chains by dropping chainId from the domain and listing a per-chain operation (each with its own chainId) in an array the wallet displays in full.

What problem does it solve?

Smart accounts today need a separate signature for every chain. A user who wants to vote on a DAO deployed on three networks, run an intent that touches two chains, or rotate keys on the same account everywhere has to sign again and again.

Earlier ideas signed a Merkle root of all operations, but a normal wallet cannot show what is inside a Merkle root, so the user is effectively signing blind. ERC-7964 uses only plain EIP-712 typed data, so any wallet that already displays typed data shows every operation on every chain.

How it works

  • Domain without chainId. The top-level EIP712Domain usually contains only name and version. EIP-712 only requires wallets to check the chain when chainId is present, so omitting it makes the signature legitimately multi-chain.
  • One operation per chain. The message holds an array of structs, and each must contain a field named exactly chainId (and normally the target contract). The signer therefore still sees and approves the exact set of chains.
  • Wrapper struct. The array sits inside an app-defined struct such as CrossChainIntent(ChainOperation[] operations, uint256 nonce, uint256 deadline), with the same type hash on every chain.
  • On-chain envelope. Each chain receives abi.encode(header, structsArray, signature). header packs a 9-byte magic value 0x796479647964796479, a fields byte, the structIndex of this chain's operation, and an application address implementing ERC-5267 to supply the domain. structsArray is the list of every operation's struct hash.
  • Verification. The contract checks structsArray[structIndex] equals the hash of the local operation, rebuilds the full EIP-712 digest, and verifies the signature with ECDSA or ERC-1271.

Sample code

Typed data a wallet would sign (two chains, one signature):

{
  "domain": { "name": "MyApp", "version": "1" },
  "primaryType": "CrossChainIntent",
  "types": {
    "EIP712Domain": [
      { "name": "name", "type": "string" },
      { "name": "version", "type": "string" }
    ],
    "CrossChainIntent": [
      { "name": "operations", "type": "ChainOperation[]" },
      { "name": "nonce", "type": "uint256" },
      { "name": "deadline", "type": "uint256" }
    ],
    "ChainOperation": [
      { "name": "domain", "type": "EIP712ChainDomain" },
      { "name": "target", "type": "address" },
      { "name": "value", "type": "uint256" },
      { "name": "data", "type": "bytes" }
    ],
    "EIP712ChainDomain": [
      { "name": "chainId", "type": "uint256" },
      { "name": "verifyingContract", "type": "address" }
    ]
  },
  "message": {
    "operations": [
      { "domain": { "chainId": 1,    "verifyingContract": "0x…" }, "target": "0x…", "value": 0, "data": "0x" },
      { "domain": { "chainId": 8453, "verifyingContract": "0x…" }, "target": "0x…", "value": 0, "data": "0x" }
    ],
    "nonce": 7,
    "deadline": 1767225600
  }
}

Things to know

  • Status is Draft; the encoding and field names may still change.
  • Each chain receives every operation's hash (N × 32 bytes). The spec argues this is only slightly more than a Merkle proof for 2–5 chains and keeps full transparency.
  • Contracts that build their domain with a specific chainId reject these signatures by default, which is the safe failure mode; support must be added on purpose.
  • Replay protection still matters: include a nonce and deadline in the wrapper struct, and make sure each chain only executes the operation matching its own chainId.

#signatures #eip-712 #crosschain #account-abstraction #erc

Details

Authors
Ernesto García (@ernestognw)
Status
Draft
Type
Standards Track / ERC
Created
2025-06-05
Requires

Machine-readable: Markdown · JSON