---
eip: 7920
label: ERC-7920
title: Composite EIP-712 Signatures
status: Draft
type: Standards Track
category: ERC
created: 2025-03-20
requires: 20, 712
official: https://eips.ethereum.org/EIPS/eip-7920
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7920.md
canonical: https://eips.huatuo.xyz/eip-7920/
lang: en
tldr: Sign several EIP-712 messages with one wallet prompt by signing the Merkle root of their hashes, while each message stays independently verifiable with a Merkle proof.
tags: [signatures, eip-712, merkle, wallet, ux]
---

# ERC-7920: Composite EIP-712 Signatures

> A scheme for signing multiple typed-data messages with a single signature

**TL;DR:** Sign several EIP-712 messages with one wallet prompt by signing the Merkle root of their hashes, while each message stays independently verifiable with a Merkle proof.

## What problem does it solve?

Gasless flows often need several off-chain signatures in a row: a token permit ([ERC-2612](/eip-2612/), Permit2) followed by an order, an intent or a relay instruction. Each one is a separate wallet pop-up, and users lose track of what they are approving in total.

The alternatives are poor: merging everything into one big struct means every verifier must know the whole bundle, and pre-approving large allowances is a security risk.

ERC-7920 lets a wallet show all messages at once, take **one** signature, and still let each contract verify only the message it cares about.

## How it works

Signing:

1. For each message `mᵢ`, compute its [EIP-712](/eip-712/) hash, `keccak256(encode(mᵢ))`.
2. Use those hashes as leaves of a Merkle tree. Leaves are padded with zero hashes up to the next power of two, and each pair is sorted before hashing.
3. Sign the Merkle root.

Verifying message `mₓ`:

1. `ecrecover(merkleRoot, signature)` must equal the expected signer.
2. The leaf for `mₓ` plus its proof must hash up to `merkleRoot`.

Both checks must pass. With a single message the root *is* the message hash, so the signature equals a normal `eth_signTypedData_v4` signature and existing on-chain verifiers keep working.

Wallets expose this as a new RPC method, `eth_signTypedData_v5`, taking an address and one or an array of TypedData objects, and returning `{ signature, merkleRoot, proofs }`.

## Sample code

On-chain verification of one message from a composite signature:

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

library CompositeSig {
    function verify(
        bytes32 leaf,                 // EIP-712 digest of this message
        bytes32[] calldata proof,
        bytes32 merkleRoot,
        uint8 v, bytes32 r, bytes32 s,
        address expectedSigner
    ) internal pure returns (bool) {
        if (ecrecover(merkleRoot, v, r, s) != expectedSigner) return false;

        bytes32 node = leaf;
        for (uint256 i = 0; i < proof.length; ++i) {
            node = node < proof[i]
                ? keccak256(abi.encode(node, proof[i]))
                : keccak256(abi.encode(proof[i], node));
        }
        return node == merkleRoot;
    }
}
```

Requesting the signature from a wallet that supports it:

```ts
const { signature, merkleRoot, proofs } = await provider.send(
  "eth_signTypedData_v5",
  [account, [permitTypedData, orderTypedData]],
);
```

## Things to know

- Status is **Draft**; `eth_signTypedData_v5` is not a widely shipped wallet method yet.
- No replay protection is included. Each message still needs its own nonce or deadline.
- Never accept a Merkle proof without also checking the root signature, or vice versa.
- Wallets must display every message in the bundle; the spec recommends capping bundles at 10 messages.
- Apps can require two messages to be signed *together* by checking both proofs against the same root.


---

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