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 ERC7754, a proposal to authenticate RPC requests between DApps and wallets and detect tampering using domain-associated public keys and digital signatures.
This article translates, summarizes, and expands on the following proposal as covered on January 14, 2026. The existing sequence diagram retains its original Japanese labels.
I also cover various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC7754 defines a mechanism for protecting communication between wallets and DApps (decentralized applications) against tampering.
The full name is Tamperproof Web Immutable Secure Transaction (TWIST), and the proposal calls for wallets to implement a new RPC method, wallet_signedRequest.
The mechanism centers on signed requests. A DApp associates a public key with its domain through DNS and uses the corresponding private key to sign the contents of requests sent to the wallet. By retrieving the public key associated with the DApp's DNS record and verifying the request signature, the wallet can establish the following:
- The request originated from that DApp.
- Its contents have not been modified in transit.
The following diagram illustrates the relationship.
sequenceDiagram
participant Dapp
participant DNS
participant Wallet
Dapp->>DNS: 公開鍵を登録
Dapp->>Wallet: 署名付きリクエストを送信(wallet_signedRequest)
Wallet->>DNS: Dappの公開鍵を取得
Wallet->>Wallet: 署名検証と改ざんチェック
The underlying idea is similar to HTTPS on the web. HTTPS uses server certificates to authenticate the communicating party and protect against tampering. ERC7754 instead associates the DApp's public key with DNS and verifies signatures to establish a chain of trust between the DApp and the wallet.
Motivation
ERC7754 addresses the susceptibility of existing DApp-to-wallet communication to man-in-the-middle (MITM) attacks.
Problems with current communication
DApps and wallets typically communicate through JavaScript in the browser and RPC calls. This communication path has several potential vulnerabilities:
- Cross-site scripting (XSS) can alter JavaScript within the page.
- Malicious browser extensions can intercept RPC calls.
An attacker may therefore intercept or modify RPC requests on their way to the wallet. Examples of the resulting harm include:
| Attack | Consequence |
|---|---|
| Calldata tampering | The recipient or amount can be replaced, turning the transaction into one that steals funds. |
| Modification of EIP712 signing parameters | The user can be induced to sign a message they did not intend to authorize. |
| Theft of reusable signatures | A stolen signature can be exploited repeatedly later. |
For more on EIP712, see the following article.
[EIP712] Hashing and Signing Typed Structured Data
Risks for both users and DApps
Even if a DApp is developed in good faith, its communications may still be modified in transit. This can lead to the following problems:
| Party | Risk |
|---|---|
| User | May lose assets despite using a legitimate DApp. |
| DApp developer | May lose the trust of users despite not being responsible for the attack. |
In other words, the absence of a chain of trust between DApps and wallets undermines the security of the ecosystem as a whole.
The ERC7754 solution
Through the wallet_signedRequest RPC method, ERC7754 makes the following process explicit:
- The DApp attaches a digital signature to the request contents.
- The wallet verifies the signature using the public key associated with the DNS record.
This allows the wallet to verify:
- Whether the request actually came from the DApp associated with that domain.
- Whether its contents have been modified in transit.
Rather than relying on implicit, fragile defenses such as bit packing or custom argument encoding, DApps and wallets can establish an explicit cryptographic trust relationship.
The aim of ERC7754 is therefore to bring a form of security comparable to HTTPS on the web to DApp-to-wallet communication.
Specification
Architecture
ERC7754 uses the DApp's domain certificate as the root of trust, establishing a cryptographic chain of trust extending to the wallet. The process is as follows:
- The browser verifies the HTTPS certificate to authenticate the domain.
- A TWIST TXT record is configured in the domain's DNS.
- The TXT record specifies the TWIST manifest URL.
- The manifest is usually located at
/.well-known/twist.json. - The JSON manifest defines a list of public keys, including their IDs, signature algorithms, and key material.
- The DApp signs the request contents in a secure environment, such as its backend.
- It sends the original RPC payload, signature, and key ID to the wallet using
wallet_signedRequest. - The wallet verifies the signature against the manifest's public key and processes the request normally if it is valid.
This establishes a trust model in which RPC requests signed by the operator of the domain are treated as authentic.
Wallet integration
Key discovery
To establish the chain of trust, the wallet must correctly identify which public keys belong to the DApp. ERC7754 uses a DNS TXT record to discover the location of the TWIST manifest. The approach resembles DKIM (RFC 6376), which is used for email signing. Rather than storing the keys directly in DNS, it uses a JSON manifest, allowing future extensions and support for multiple keys and algorithms.
As in the JWT operational model of EIP7519, wallets may fetch keys in advance and cache them. However, lengthy caching is risky because there is no revocation mechanism. A maximum public-key cache lifetime of 2 hours is therefore strongly recommended.
DNS and manifest examples
Example DNS record:
TXT: TWIST=/.well-known/twist.jsonCorresponding manifest example:
{
"publicKeys": [
{ "id": "1", "alg": "ES256", "publicKey": "0xaf34..." },
{ "id": "2", "alg": "PS256", "publicKey": "0x98ab..." }
]
}The fields have the following meanings:
| Field | Description |
|---|---|
| id | Key identifier |
| alg | Signature algorithm (as defined in RFC 7518) |
| publicKey | Hex-encoded public key in X.509 SPKI (DER) format |
Algorithm support requirements are as follows:
| Requirement | Algorithms |
|---|---|
| MUST | ES256, EdDSA |
| SHOULD | PS256, RS256, ES384, ES512, PS384, PS512, RS384, RS512 |
The browser's standard SubtleCrypto API is recommended for cryptographic operations.
Manifest structure
The TWIST manifest has the following JSON schema:
{
"title": "TWIST manifest",
"type": "object",
"properties": {
"publicKeys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"alg": { "type": "string" },
"publicKey": { "type": "string" }
}
}
}
}
}The structure is deliberately simple so that it does not impede future extensions.
RPC method
The parameters of wallet_signedRequest are defined in TypeScript as follows:
type RequestPayload<Params> = { method: string; params: Params };
type SignedRequestParameters<Params> = [
requestPayload: RequestPayload<Params>,
signature: `0x${string}`,
keyId: string,
];Example call:
const keyId = '1';
const requestPayload = {
method: 'eth_sendTransaction',
params: [{ /* ... */ }],
};
const signature = await getSignature(requestPayload, keyId);
const result = await ethereum.request({
method: 'wallet_signedRequest',
params: [requestPayload, signature, keyId],
});Signature verification flow
The wallet must perform the following verification steps:
- Obtain the domain of the originating tab.
- Require HTTPS to mitigate DNS spoofing.
- Retrieve the manifest using the DNS TWIST record or
/.well-known/twist.json. - Disallow redirects to protect against open-redirect attacks.
- Check that the Content-Type is
application/json. - Retrieve the public key and algorithm corresponding to keyId.
- Verify the signature with
crypto.verify(alg, key, signature, requestPayload).
Wallet behavior depends on the verification result:
| Condition | Wallet behavior |
|---|---|
| TWIST not configured | Process normally. |
| TWIST configured, but a regular RPC call is used | Display a warning and proceed if the user approves. |
| Invalid signature | Display a warning and let the user choose whether to proceed or cancel. |
| Valid signature | Process normally. |
Wallet-side implementation example
async function signedRequest(
requestPayload,
signature,
keyId,
) {
const domain = getDappDomain();
const doh = require('dohjs');
const resolver = new doh.DohResolver('<doh-endpoint>');
let manifestPath = '';
const dnsResp = await resolver.query(domain, 'TXT');
for (const record of dnsResp.answers) {
if (!record.data.startsWith('TWIST=')) continue;
manifestPath = record.data.substring(5);
break;
}
const manifestUrl = `https://${domain}${manifestPath}`;
const manifestReq = await fetch(manifestUrl, { redirect: 'error' });
const contentType = (manifestReq.headers.get('content-type') || '').toLowerCase();
if (!contentType.startsWith('application/json')) {
throw new Error('The manifest is not a proper JSON file');
}
const manifest = await manifestReq.json();
const keyData = manifest.publicKeys.find((x) => x.id === keyId);
if (!keyData) {
throw new Error('Could not find the signing key');
}
const valid = await crypto.verify(keyData.alg, keyData.publicKey, signature, requestPayload);
if (!valid) {
throw new Error('The data was tampered with');
}
return await processRequest(requestPayload);
}Proposed wallet UI (Wallet UX)
ERC7754 also considers the user experience. Like the HTTPS lock icon, TWIST-enabled DApps should display a visual indication that the communication has been signature-verified.
When a signature is missing or invalid, the design does not immediately block the request. Instead, it displays a clear warning and lets the user decide whether to proceed or cancel. This is intended to improve security and transparency without sacrificing usability.
Additional considerations
ERC7754 does not modify the existing mechanisms of EIP712 or EIP1193. It adds signed RPC requests on top of them. It can therefore be introduced without breaking existing DApp and wallet behavior.
For more on EIP1193, see the following article.
[ERC1193] Understanding the Ethereum Provider API
The design draws on mechanisms with an established operational track record. One example is DKIM, used for email sender-domain authentication. DKIM also places a public key in DNS, lets the sender sign a message, and enables the recipient to verify it to protect against tampering and impersonation. Likewise, ERC7754 establishes a chain of trust through DNS, public keys, and signature verification.
Rather than introducing entirely new cryptography, the proposal combines established standards and operational models. This has several advantages:
- Implementation is relatively straightforward for both wallets and DApps.
- Existing infrastructure (DNS, HTTPS, public-key cryptography, and WebCrypto) can be reused.
- The threat model is explicit, making the design easier to analyze from a security perspective.
The result is a practical standard designed for gradual adoption without major disruption to the ecosystem.
Security
Replay attacks
Signing a request can establish that its contents have not been altered, but it does not by itself prevent repeated reuse of the same signed request (a replay attack).
Two problems remain:
- The same signed request may be submitted repeatedly on the same chain.
- The same signature may be reused on different chains.
For the first case, transactions typically include a nonce, so the same transaction can only be executed once.
For the second, cross-chain replay can be prevented by including the chain ID when signing with EIP712 signTypedData.
Read-only methods that do not change state (read-only RPC calls such as balanceOf), however, may have neither a nonce nor chain-specific context.
Replay is theoretically possible in this case, but the article assesses its value to an attacker as very low because such methods cannot transfer funds or change permissions.
For these reasons, ERC7754 does not currently mandate a uniform replay-protection mechanism. If one becomes necessary in the future, the TWIST manifest could be extended to incorporate expiring tokens such as JWTs or replay-prevention counters.
Defending against malicious manifests
The TWIST trust model depends on retrieving the correct public key from the correct domain. If the manifest itself is modified, the entire mechanism may be undermined. The anticipated attack scenarios and countermeasures are as follows:
| Attack scenario | Description | Countermeasure |
|---|---|---|
| DNS spoofing | An attacker returns a false DNS response pointing to a fraudulent manifest. | The wallet retrieves the manifest only from under https://${sender.tab.url}. |
| Open-redirect abuse | A redirect on the legitimate domain leads to an external fraudulent manifest. | The wallet disallows all redirects. |
| Unauthorized file placement on the domain | A vulnerable upload feature or similar weakness is used to place a fraudulent JSON file. | Strictly check that the Content-Type is application/json. |
Two precautions are especially important:
- Never follow redirects when retrieving the manifest. This prevents a legitimate domain from redirecting the wallet to an external malicious site.
- Always use HTTPS rather than HTTP, and ensure the retrieval domain exactly matches the originating tab's domain. This reduces the risk of a different manifest being substituted through DNS spoofing or a man-in-the-middle attack.
ERC7754 thus treats the manifest itself as a potential attack target and requires strict validation of its retrieval path and format.
References
Erik Marks (@remarks), Guillaume Grosbois (@uni-guillaume), "ERC-7754: Tamperproof Extension Wallets API (TWIST) [DRAFT]," Ethereum Improvement Proposals, no. 7754, July 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7754.
Conclusion
This article examined ERC7754, a proposal to authenticate RPC requests exchanged between DApps and wallets and detect tampering through domain-associated public keys and digital signatures. I hope this explanation was helpful.
If you have any questions, feel free to reach out through Twitter DMs or the link below.
I also publish on the following platforms:



