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.
ERC-8019 proposes a mechanism that lets wallets automatically sign Sign-In with Ethereum (SIWE) messages for trusted applications using a wallet-managed allowlist.
This article translates, summarizes, and expands on the proposal below as covered in the original February 2026 article. The original code comments and diagram labels remain in Japanese.
I also cover other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC-8019 defines a wallet-managed allowlist and enables automatic signing of ERC-4361 (SIWE) messages when simple, deterministic matching rules are satisfied.
For more on ERC-4361, see the following article.
ERC-4361: Using Ethereum Addresses to Sign In to Off-Chain Services
Policies are created and managed exclusively by the wallet and its user.
Key features
| Feature | Description |
|---|---|
| Wallet-managed | Policies are created and managed only within the wallet UI |
| Automatic signing | Sign in to trusted applications without a signing prompt |
| Domain-based matching | Strict matching based on domain and URI prefix |
| Chain ID restrictions | Automatic sign-in is enabled only on permitted chains |
| Expiration | Policies may have an expiration time |
| Hardware wallet support | Compatibility through ERC-6492 and session keys |
SIWE (Sign-In with Ethereum), defined in ERC-4361, is a standard for signing in to web applications using an Ethereum account. Users authenticate off-chain by signing a message with their wallet.
Motivation
Users repeatedly sign SIWE messages for the same trusted applications. Having to confirm each signature in the wallet disrupts the user experience.
A small, explicit matching policy can enable sign-in without repeated prompts and without requiring changes to the application. When users first connect to an application, wallets already ask whether they trust it. Where appropriate, this same flow can also offer permission for automatic sign-in.
Current problems
| Problem | Description |
|---|---|
| Repeated signing | Signing is required each time the user logs in to the same application |
| Poor user experience | Frequent prompts cause friction |
| Unnecessary interaction | Redundant confirmations for trusted applications |
The ERC-8019 approach
ERC-8019 improves the user experience while preserving security by keeping policy management within the wallet. Because applications cannot influence policy management, malicious applications cannot manipulate those policies.
Specification
Policy structure
Each allow-policy is defined in the following format.
{
"domain": "example.com", // SIWEドメインとの完全一致
"uriPrefix": "https://example.com/", // SIWE URIがこれで始まる必要あり
"allowedChains": [1], // 許可されたchainIdのリスト
"allowedResources": ["https://example.com/login"], // 完全一致するリソースセット
"supportsEIP6492": true, // ハードウェアウォレット使用時の円滑なUXに必要
"expiresAt": 1700000000000 // ポリシーの有効期限(UNIXタイムスタンプ)、0は無期限
}This policy object defines the rules that determine which SIWE messages may be signed automatically.
The domain must match the application's domain exactly, and uriPrefix requires the SIWE message URI to begin with the specified prefix.
| Field | Type | Description |
|---|---|---|
domain |
string | Must exactly match the SIWE domain |
uriPrefix |
string | The SIWE URI must begin with this prefix |
allowedChains |
number[] | Array of permitted chain IDs |
allowedResources |
string[] | Array of permitted resource URIs, independent of order |
supportsEIP6492 |
boolean | Whether ERC-6492 signature verification is supported |
expiresAt |
number | Policy expiration (Unix timestamp); 0 means no expiration |
Automatic signing rules
Given a parsed ERC-4361 message M, the wallet may sign it automatically only when all the following conditions are satisfied.
| Condition | Description |
|---|---|
M.domain == policy.domain |
The domains match exactly |
M.uri starts with policy.uriPrefix |
URI prefix matching |
If M.chainId is present, it is included in policy.allowedChains |
Chain ID validation |
If policy.allowedResources is nonempty, M.resources is a subset of it, regardless of order. If the list is empty, no resources are permitted |
Resource validation |
If policy.expiresAt is not 0, the current time precedes it |
Expiration validation |
All other SIWE validation requirements, including nonce uniqueness, time validity, and signature domain binding, must still be enforced by the wallet according to ERC-4361.
The following flowchart illustrates the automatic signing decision.
flowchart TD
A[SIWEメッセージ受信] --> B{ドメイン一致?}
B -->|No| Z[手動署名に移行]
B -->|Yes| C{URIプレフィックス一致?}
C -->|No| Z
C -->|Yes| D{chainId許可?}
D -->|No| Z
D -->|Yes| E{リソース許可?}
E -->|No| Z
E -->|Yes| F{有効期限内?}
F -->|No| Z
F -->|Yes| G[自動署名実行]
The flow checks each condition in sequence and falls back to the ordinary manual signing flow if any condition fails. Automatic signing without a user prompt takes place only when all conditions are satisfied.
Policy management
Policies are created, listed, updated, and deleted only through the wallet UI. The degree of control offered to users depends on the wallet implementation.
Wallets are encouraged to provide the following.
| Recommendation | Description |
|---|---|
| Default policy list | Include default policies for popular applications |
| Automatic policy creation | For applications deemed safe, create a policy after the first SIWE signature, with the user's consent |
| Dedicated consent flow | Display a prompt such as "Application X is trying to sign in with your account," with a checkbox to sign in to that application hostname automatically in the future |
Hints or headers supplied by applications do not influence policy creation. This prevents malicious applications from manipulating policies.
Hardware wallet compatibility and ERC-6492
For more on ERC-6492, see the following article.
ERC-6492: Verifying Signatures for Undeployed Contract Accounts
Automatic signing is not practical with hardware-wallet accounts alone. Users would be prompted to sign login messages without the context or expectation of doing so.
For this reason, the policy includes the supportsEIP6492 property.
If it is set to false, the wallet must not perform automatic sign-in when the primary signer of the account is a hardware wallet.
This is because the application has no way to verify a smart contract signature in that case.
If it is set to true, however, the wallet may perform automatic sign-in when the following conditions are satisfied.
| Condition | Description |
|---|---|
| EIP-7702 activation | EIP-7702 can be enabled for the account, or the account is already a smart account |
| Session key or delegation | A limited-scope session key or delegation dedicated to automatic sign-in can be authorized |
For more on EIP-7702, see the following article.
EIP-7702: Giving EOAs Contract Account Functionality
When these conditions are met, the wallet can generate login signatures without prompting the user on the hardware device. Activating EIP-7702 and authorizing the session key or delegation still require user prompts, however, so the wallet decides whether to guide the user through that process.
The precise mechanism for managing session keys or delegations is outside the scope of the proposal, but ERC-7710 may be used.
RPC method
Wallets may implement the RPC method wallet_getCurrentAutoLoginPolicy.
It takes no parameters and returns an object describing the current policy for the calling application.
{
// アクティブなポリシーを記述するオブジェクト、またはnull
"activePolicy": {
"domain": "example.com",
"uriPrefix": "https://example.com/",
"allowedChains": [1],
"allowedResources": ["https://example.com/login"],
"supportsEIP6492": true,
"expiresAt": 1700000000000
}
}The response allows the application to determine whether it can initiate a sign-in request without user interaction.
Under the following conditions, the wallet returns activePolicy as null.
| Condition | Description |
|---|---|
| ERC disabled | The wallet has disabled this proposal |
| No policy | No active policy exists for the calling application |
| Expired policy | The policy has expired (recommended) |
| Disallowed chain | The application is connected on a chain that is not permitted (recommended) |
Rationale
Design rationale
ERC-8019 is designed to minimize changes to existing applications. From a security perspective, it is much simpler to leave the decision about which applications qualify for a policy to the wallet. Most wallets already maintain a list of trusted applications.
| Design decision | Rationale |
|---|---|
| Wallet-managed policies | Prevent application-side manipulation and protect security |
| Based on ERC-4361 | Preserve compatibility with the existing SIWE standard |
| EIP-712 out of scope | SIWE is based on plain text |
Relationship to EIP-712
EIP-712 (typed data) is outside the scope of this standard. SIWE is built on plain-text messages. If automatic signing based on EIP-712 becomes necessary in the future, it may be addressed in a separate proposal.
Backwards compatibility
Backwards compatibility is one of the principal goals of this proposal. Existing applications need no changes because it builds directly on ERC-4361.
To take full advantage of the proposal, an application must initiate login requests itself rather than waiting for the user to press a login button.
It can do so using the wallet_getCurrentAutoLoginPolicy method.
| Compatibility level | Description |
|---|---|
| Full compatibility | Existing SIWE implementations continue to work |
| Enhanced functionality | The wallet_getCurrentAutoLoginPolicy method enables full use of automatic sign-in |
Security
Policy management is outside the scope of this proposal. Most wallets already manage lists of trusted applications. The following practices are nevertheless recommended.
| Consideration | Recommended practice |
|---|---|
| Default policies | Include a default policy list for popular applications |
| User consent | Create policies automatically for other applications only with user consent |
| Standard SIWE validation | Continue enforcing fresh nonces, correct domain binding, and time validity |
| Restricting uriPrefix | Specify a concrete path such as /login to avoid overly broad matching |
| Disable option | Include a top-level wallet setting to disable the proposal |
| iframe security | Match M.domain against each application's top-level origin to prevent automatic sign-in within an iframe hosted under a malicious top-level origin |
Threat model
| Threat | Mitigation |
|---|---|
| Policy manipulation by malicious applications | Application hints and headers do not influence policy creation |
| Replay attacks | Preserve standard SIWE nonce uniqueness validation |
| Abuse of expired policies | Enforce expiration through expiresAt |
| Overly broad matching | Use a specific uriPrefix |
Reference implementation
The following reference implementation determines whether a SIWE message should be signed automatically.
function shouldAutoSign(M, P) {
// ドメインの完全一致を確認
if (M.domain !== P.domain) return false;
// URIがプレフィックスで始まることを確認
if (!M.uri.startsWith(P.uriPrefix)) return false;
// chainIdが許可リストに含まれることを確認
if (!P.allowedChains.includes(M.chainId)) return false;
// リソースが許可リストのサブセットであることを確認
if (M.resources) {
const allowList = P.allowedResources || []
if (!M.resources.every(resource => allowList.includes(resource))) return false;
}
// 有効期限を確認
if (P.expiresAt !== 0 && Date.now() >= P.expiresAt) return false;
// 標準SIWEの検証もここで実行する
return true;
}The function takes message M and policy P and returns a Boolean indicating whether automatic signing should proceed.
It checks the conditions in sequence. If any condition fails, it returns false and the ordinary signing flow is used.
References
Conclusion
This article covered wallet-managed automatic SIWE sign-in under ERC-8019.
If you have questions, feel free to send me a direct message on Twitter.
I also publish technical content on the following platforms.




