---
eip: 7964
label: ERC-7964
title: Crosschain EIP-712 Signatures
status: Draft
type: Standards Track
category: ERC
created: 2025-06-05
requires: 712, 1271, 5267
official: https://eips.ethereum.org/EIPS/eip-7964
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7964.md
canonical: https://eips.huatuo.xyz/eip-7964/
lang: en
tldr: 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.
tags: [signatures, eip-712, crosschain, account-abstraction, erc]
---

# ERC-7964: Crosschain EIP-712 Signatures

> Support EIP-712 signatures for crosschain account operations.

**TL;DR:** 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](/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](/eip-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](/eip-1271/).

## Sample code

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

```json
{
  "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`.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7964
