Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC-7803, a proposal to extend EIP-712 for account abstraction.
The explanation below translates, summarizes, and expands on the original proposal.
I also cover a range of other EIPs.
Overview
ERC-7803 proposes adapting the EIP-712 signing mechanism to the needs of smart contract accounts.
For more on EIP-712, see the following article.
[EIP-712] Understanding Typed Structured Data Hashing and Signing
Specifically, it proposes two improvements.
- Introduce signing domains to mitigate replay attacks when the same private key controls multiple accounts.
- Enable negotiation of authentication methods so that dApps and wallets can coordinate how signatures are verified.
These improvements aim to make smart contract accounts more secure and flexible.
Motivation
What are signing domains?
Existing standards such as ERC-1271 and ERC-6492 allow dApps to verify signatures associated with smart contract accounts. Account owners can therefore authorize third parties to perform specific operations without submitting an on-chain transaction themselves.
For more on ERC-1271, see the following article.
[ERC-1271] Verifying Signatures with Smart Contracts
For more on ERC-6492, see the following article.
[ERC-6492] Signature Verification for Undeployed Smart Contract Accounts
However, multiple smart contract accounts may be controlled by the same private key. A signature intended for one account could consequently be accepted by another. This creates a replay risk in which an existing signature is reused to authorize an unintended operation.
EIP-712 partially addresses this problem by associating signatures with a specific verification domain. For example, an application can restrict a signature to a particular verifying contract.
Applying this mechanism directly to smart contract accounts, however, introduces several challenges.
- Increased complexity
- A smart contract account may control other smart contract accounts, making verification domain configuration difficult.
- Additional security risks
- Smart contract accounts can serve multiple roles, and incorrect configuration can create opportunities for misuse.
ERC-7803 therefore introduces signing domains to identify the accounts involved in producing a signature. This helps prevent replay across accounts while preserving the flexibility of smart contract accounts.
Authentication challenges and improvements
ERC-1271 defines an interface for verifying signatures associated with smart contract accounts. Applications can use this interface without understanding the account's internal signature validation rules.
However, conventional ERC-1271 verification requires the account contract to exist on-chain. ERC-6492 extends verification to signatures associated with contracts that have not yet been deployed.
Different protocols currently use different authentication procedures, creating several interoperability problems.
- Inconsistent use of ERC-1271
- Some protocols attempt ECRECOVER before calling
isValidSignature, while others perform these checks in the opposite order.
- Some protocols attempt ECRECOVER before calling
- Impact of EIP-7702
- With EIP-7702, differences in verification order can lead to substantially different outcomes across protocols.
For more on EIP-7702, see the following article.
[EIP-7702] Enabling Contract Account Behavior for EOAs
ERC-7803 introduces a mechanism for dApps to indicate which authentication methods they support. By allowing applications and wallets to coordinate both the verification methods and their order, the proposal aims to improve interoperability between smart contract accounts and protocols. This addresses an important challenge in account abstraction.
Specification
ERC-7803 extends typed-data signing requests made through JSON-RPC (eth_signTypedData) or client libraries by adding two optional properties, signingDomains and authMethods.
These properties aim to improve signature security and provide flexibility when supporting multiple authentication methods.
signingDomains (signing domains)
The signingDomains property describes the hierarchy of smart contract accounts involved in signing and is intended to mitigate replay attacks.
It helps bind a signature to its intended account hierarchy, including when accounts are nested.
The property is an array of objects containing two keys.
- types
- Uses the same format as the type definitions in EIP-712.
- It must contain at least the EIP712Domain key.
- domain
- An object containing domain information structured according to the
EIP712Domaintype.
- An object containing domain information structured according to the
The order of entries in signingDomains represents the sequence of accounts through which the signing request passes. Each account adds its domain as the request is forwarded.
This is particularly important when one smart contract account controls another.
Consider the following example.
- A dApp requests an EIP-712 signature from its connected account.
- Initially,
signingDomainsis empty.
- Initially,
- If the connected account is a multisignature account, it forwards an EIP-712 signing request to its signers.
- It adds its domain information to
signingDomains, bringing the array length to 1.
- It adds its domain information to
- If one signer uses a smart contract account, that account forwards the signing request to a hardware wallet.
- It adds its own domain information to
signingDomains, bringing the array length to 2.
- It adds its own domain information to
- When signing with the hardware wallet, the signer can inspect the contents of the signing request.
- The wallet can display the dApp domain, the smart contract account domain, and the multisignature account domain, helping the signer understand the purpose of the signature.
Using signingDomains in this way helps clarify signing intent and prevent misuse.
Encoding the signed data
When signing domains are present, the signed data is encoded recursively.
- If signingDomainSeparators, the array of signing domain hashes, is not empty, the encoding incorporates the first separator and recursively processes the remaining separators.
- When signingDomainSeparators is empty, the message is encoded using the conventional EIP-712 encoding.
This encoding binds the signature to the specified signing domains, helping prevent replay across different domains.
authMethods
The authMethods property indicates which methods are supported for authenticating a signature associated with a smart contract account.
It aims to improve interoperability across protocols and avoid authentication failures caused by incompatible assumptions.
The property is an array of objects with the following keys.
id
A string identifying the authentication method. Examples include the following.
-
ECDSA
- ECDSA signatures from externally owned accounts.
-
ERC-{n}
- A signing or authentication method based on an ERC standard.
- The value of
nis the ERC number written without leading zeros. - For example, ERC-1271 identifies the method defined by that standard.
-
parameters(optional)
An array containing additional parameters specific to the authentication method.
The order of entries in authMethods indicates the order in which authentication methods are considered.
For example, a protocol may support checking ECDSA signatures first and then attempting ERC-1271 verification.
JSON schema
{
type: 'object',
properties: {
types: {$ref: '#/$defs/EIP712Types'},
primaryType: {type: 'string'},
domain: {type: 'object'},
message: {type: 'object'},
signingDomains: {
type: 'array',
items: {$ref: '#/$defs/EIP712Types'}
}
authMethods: {
type: 'array',
items: {
type: 'object',
id: {type: 'string'},
parameters: {type: 'array'},
required: ['id'],
},
}
},
required: ['types', 'primaryType', 'domain', 'message'],
$defs: {
EIP712Types: {
type: 'object',
properties: {
EIP712Domain: {type: 'array'},
},
additionalProperties: {
type: 'array',
items: {
type: 'object',
properties: {
name: {type: 'string'},
type: {type: 'string'}
},
required: ['name', 'type']
}
},
required: ['EIP712Domain']
}
}
}This JSON schema describes the data structure of an EIP-712 signing request.
The two properties signingDomains and authMethods are added to strengthen signature handling when smart contract accounts are involved.
They aim to improve both security and interoperability across wallets and protocols.
The schema specifies rules for validating the structure of JSON data and ensuring signing requests conform to the expected format.
Data structure details
The schema defines an object (type: 'object') with the following properties.
types
An object referencing EIP712Types.
It contains EIP-712 type definitions describing the structure of the signed data.
For example, if the data contains a name and an address, their type information is defined here.
primaryType
A string identifying the primary type of the data to be signed. EIP-712 allows multiple types to be defined, and this field specifies which one is the primary type. For example, a contract operation might use a type named Transaction.
domain
The domain information defined by EIP-712. It is used to separate signatures intended for different contexts. For example, the application name, version, chain ID (the Ethereum network identifier), and verifying contract can be specified to bind signatures to a particular application.
message
An object containing the actual data to be signed. For example, it can hold information about a token transfer or the contents of a message displayed by the wallet.
signingDomains
An optional array describing the hierarchy of smart contract accounts involved in signing.
The example schema references EIP712Types for its elements.
The purpose of the array is to clarify signing intent and mitigate replay attacks. For example, when multisignature accounts or delegated signing by smart contracts are involved, adding their respective domains helps identify which layer of the account hierarchy is requesting the signature.
authMethods
An optional array defining signature authentication methods. Each element is an object with the following keys.
id- A string identifying the authentication method.
- Examples include "ECDSA" and "ERC-1271", which identifies smart contract signature verification.
parameters- An optional array of additional parameters specific to the authentication method.
required: ['id']- Indicates that the
idproperty is required.
- Indicates that the
This property helps wallets and dApps determine which authentication methods should be used, reducing interoperability problems.
The role of $defs
The schema's $defs contains an object named EIP712Types.
It defines a shared structure for EIP-712 type information.
EIP712Types
This object defines the type information required by EIP-712.
EIP712Domain- A required array defining the fields of the EIP-712 domain.
additionalProperties- Describes additional type definitions as arrays.
- Each element is an object containing a field name (
name) and its type (type), following the type definition rules.
The following example illustrates the intended signing request format.
{
"types": {
"EIP712Domain": [
{ "name": "name", "type": "string" },
{ "name": "version", "type": "string" },
{ "name": "chainId", "type": "uint256" },
{ "name": "verifyingContract", "type": "address" }
],
"Transaction": [
{ "name": "to", "type": "address" },
{ "name": "value", "type": "uint256" },
{ "name": "data", "type": "bytes" }
]
},
"primaryType": "Transaction",
"domain": {
"name": "MyDapp",
"version": "1",
"chainId": 1,
"verifyingContract": "0x1234567890abcdef1234567890abcdef12345678"
},
"message": {
"to": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
"value": 1000,
"data": "0x"
},
"signingDomains": [],
"authMethods": [
{ "id": "ECDSA" },
{ "id": "ERC-1271" }
]
}Structuring signing requests in this way helps wallets and dApps handle smart contract account signatures more securely and support different authentication methods.
Citation
Francisco Giordano (@frangio), "ERC-7803: EIP-712 Extensions for Account Abstraction [DRAFT]," Ethereum Improvement Proposals, no. 7803, October 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7803.
Conclusion
This article covered ERC-7803, a proposal to extend EIP-712 for account abstraction.
If you have questions, feel free to reach out via Twitter DM.
I also publish on the following platforms.



