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-2525, which proposes using metadata associated with a user's ENS name to discover a compatible wallet provider and connect it to a DApp.
This article translates, summarizes, and supplements the material linked below.
I have also covered other EIPs.
Overview
ERC-2525 proposes improvements to universal login for Ethereum.
The central idea is to use ENS (Ethereum Name Service) metadata to identify a user's wallet provider so that a DApp can establish the corresponding connection.
In this proposal, being logged in means having access to an EIP-1193 provider capable of requesting transaction and message signatures. The approach draws inspiration from proposals by Alex Van de Sande and from Web3Connect.
The longer-term goal is to extend the approach beyond Ethereum to other blockchains.
Motivation
Users can choose from many wallet solutions for interacting with Ethereum.
Wallets such as MetaMask and Gnosis Safe offer provider integrations that can simplify DApp development, although particular approaches may require users to install browser extensions or other software.
Solutions such as Portis, Authereum, Torus, and Universal Login can offer a more accessible experience for users unfamiliar with cryptocurrency, but developers must integrate each provider. Hardware wallets such as Ledger, Trezor, and KeepKey likewise require appropriate integrations.
When a DApp supports several wallets, it generally asks the user to choose which one to connect. Increasing the number of choices can make the interface more complicated, particularly for beginners.
Supporting only established wallets can also make adoption harder for new providers and potentially limit competition and innovation.
ENSLogin addresses this problem by using a user's ENS name as the starting point for login. Metadata associated with the name identifies the wallet provider and enables the DApp to establish the relevant connection automatically.
The intended result is that users can use their ENS name to connect to compatible DApps regardless of which compatible wallet they use.
Specification
ENSLogin uses metadata recorded under the user's ENS name to discover and connect a wallet provider.
The login flow is implemented as an SDK, allowing DApps to support multiple compatible wallets through one integration.
Login Flow
- Ask the user to enter an ENS name.
- Resolve the following information from the name according to EIP-137:
- The address.
- Text records conforming to EIP-634.
- Interpret the text record and download the referenced file.
- Evaluate the downloaded file's contents.
- Return a Web3 provider object to the DApp.
- Use the provider for ordinary Web3 operations, such as requesting authorization through the historical
enable()method.
See the following article for EIP-137.
The SDK manages this process and can use both centralized and decentralized storage systems. Provider-specific code is supplied through external modules rather than bundled directly into the SDK.
Details
Resolving Text Records
ENS text records under EIP-634 supply a pointer, such as a URL, to the code used to instantiate the wallet provider.
The proposed key is enslogin, which may be subject to change. If it is absent, resolution falls back to the parent node's enslogin-default record.
For example, consider username.domain.eth.
resolver.at(ens.owner(nodehash("username.domain.eth"))).text(nodehash("username.domain.eth"), 'enslogin')
resolver.at(ens.owner(nodehash("domain.eth"))).text(nodehash("domain.eth"), 'enslogin-default')Provider Link Format
Wallet provider code is identified using a standard scheme and path.
Examples include:
ipfs://Qm123456.../60/jshttps://server.com/enslogin-module-someprovider/60/js
Here, 60 identifies Ethereum according to SLIP-44, and js identifies JavaScript.
Provider Initialization
The referenced file must expose a function in the following form.
global.provider = (config) => Promise<web3provider>It returns a Promise resolving to an EIP-1193-compatible provider. Support for other blockchains is envisaged as a future extension.
Configuration Object
A DApp can pass configuration information during initialization.
provider: Network information, ENS contract addresses, and related configuration._- Wallet-provider-specific options with an underscore prefix.
__- SDK-specific options with a double-underscore prefix.
Minimal configuration
{
"provider": {
"network": "goerli"
}
}Advanced configuration
{
"provider": {
"network": "goerli",
"ens": "0x112234455c3a32fd11230c42e7bccd4a84e02010"
},
"ipfs": {
"host": "ipfs.infura.io",
"port": 5001,
"protocol": "https"
},
"_authereum": {...},
"_portis": {...},
"__callbacks": {
"resolved": (username, addr, descr) => { ... },
"loading": (protocol, path) => { ... },
"loaded": (protocol, path) => { ... }
}
}Future extensions may add blockchain identifiers based on SLIP-44.
Decentralization
Unlike centrally coordinated wallet-discovery approaches such as Web3Connect, ENSLogin is designed to avoid a central provider registration authority.
The SDK resolves information through Ethereum and the referenced storage protocols, such as HTTPS or IPFS.
New wallet providers can publish modules in the expected format and make them available to compatible DApps without updating a centralized provider list or the SDK itself.
Incentive Design
ENSLogin seeks to align the interests of DApp developers and wallet providers.
- Wallet providers
- Publishing the required ENS entries and compatible modules can reduce the integration work needed to support DApps.
- DApp developers
- Integrating the SDK enables connections to compatible wallets and can broaden the range of supported users.
Users of compatible wallets may be able to connect without additional configuration. Advanced users can edit their ENS metadata themselves.
Challenges and Limitations
ENSLogin can facilitate connections between DApps and compatible wallets, but the initial decision about which wallet to use when registering still requires a user interface, such as wallet-selection components of the kind discussed in the original article.
Loading executable provider modules from ENS-linked references also introduces a trust boundary. Implementations must assess module integrity, authenticity, execution isolation, and user authorization. ENS resolution alone does not establish that downloaded code is trustworthy.
Supporting Community
The following table reproduces the historical support information in the original article. It is not a current availability or compatibility assessment.
| Name | Live | Module | Assigns ENS names | Support by default |
|---|---|---|---|---|
| Argent | yes | no | yes | no |
| Authereum | yes | yes | yes | no |
| Fortmatic | yes | no | no | no |
| Gnosis Safe | yes | yes* | no | no |
| Ledger | yes | beta | no | no |
| KeepKey | yes | no | no | no |
| Metamask | yes | yes | no | no |
| Opera | yes | yes* | no | no |
| Portis | yes | yes | no | no |
| SquareLink | yes | no | no | no |
| Shipl | no | no | no | no |
| Torus | yes | yes | no | no |
| Trezor | yes | no | no | no |
| UniLogin | beta | beta | yes | no |
* uses the Metamask module
Frequently Asked Questions
- Can another person connect using my login information?
- Where are private keys stored?
ENSLogin resolves information recorded in ENS, including the address and wallet provider reference.
Private key management is the wallet provider's responsibility and is outside ENSLogin's intended scope.
Storage and key management vary between providers.
- Some providers store keys on the user's local device.
- Custodial providers may manage keys on remote servers.
- Hardware wallets can perform signing operations on dedicated devices without exporting the private key.
Discovering a provider or resolving an address does not itself authorize signatures. The security of the resulting connection depends on the wallet provider, the integrity of the loaded module, and the authentication and authorization mechanisms used.
Citation
Hadrien Croubois (@amxx), "ERC-2525: ENSLogin [DRAFT]," Ethereum Improvement Proposals, no. 2525, February 2020. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2525.
Conclusion
ERC-2525 proposes using ENS metadata to discover wallet providers and simplify connections between users and compatible DApps.
If you have questions, feel free to contact me on Twitter.
I also publish articles on the following platforms.



