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-2193, a proposal for assigning human-readable identifiers to arbitrary on-chain data on Ethereum.
This explanation translates, summarizes, and expands on the following specification.
For other EIPs, see https://cardene.dev/proposals.
Overview
Alias is a standard for assigning human-readable identifiers to on-chain resources. An identifier is based on the resource's type, defined by dType (ERC-1900), and its content, identified through a dType Storage Contract (ERC-2157). Alias supports arbitrary data, enabling meaningful and general-purpose content references on Ethereum.
For ERC-1900, see the following article.
ERC-1900 Explained: Standardizing Contract Types
For ERC-2157, see the following article.
ERC-2157 Explained: Sharing Common Type Definitions
Motivation
Ethereum already has standards for human-readable account names, such as EIP-137, which uses a domain-like structure (subdomain.domain.tld). However, this reverses the root-to-leaf meaning of dots common in programming languages and user interfaces. Object-oriented languages, for example, use object.property.
For EIP-137, see the following article.
ERC-137 Explained: ENS Names for Addresses
EIP-137 also makes it difficult to name diverse data within a smart contract. A PaymentChannel contract might have a name, without an individual name for the channel between Alice and Bob.
Alias enables naming such fine-grained resources and provides a foundation for protocols meaningful to both machines and humans. Given SocialNetwork and Profile dTypes, a user profile might be referenced as alice@socialnetwork.profile. A specific payment channel might be identified as alice-bob.paymentchannel.
This offers a machine-readable naming scheme that can be used off-chain as an alternative to DNS-style naming.
Specification
The dType registry provides domain and subdomain names for resource types. Subdomains may be recursively assigned to dTypes containing more complex types.
Alias Registry Contract
The Alias registry records mappings between human-readable names and on-chain data.
- Data owners may set aliases.
- Ownership is determined by the dType Storage Contract (EIP-2157).
- Aliases can be updated or deleted.
Interface
interface Alias {
event AliasSet(bytes32 dtypeIdentifier, bytes1 separator, string name, bytes32 indexed identifier);
function setAlias(
bytes32 dtypeIdentifier,
bytes1 separator,
string memory name,
bytes32 identifier,
bytes memory signature
) external;
function getAliased(
bytes1 separator,
string memory name
) view external returns (bytes32 identifier);
}Parameters
- dtypeIdentifier: the type identifier registered in the dType registry; it provides a namespace for uniqueness.
- name: the human-readable resource name.
- separator: a single character used as a separator within an alias.
- Dot: hierarchical separation from root to leaf, for example domain.subdomain.resource.
- At sign: information associated with an actor, such as a user, from leaf to root, for example alice@socialnetwork.profile.
- Hash: concept identification, for example topicX#postY.
- Slash: path-style resource references, for example root/resource.
- identifier: the identifier of the resource stored in the dType Storage Contract.
- signature: a signature authorizing alias assignment, covering dtypeIdentifier, identifier, name, separator, nonce, aliasAddress, and chainId.
- nonce: a counter for replay protection.
- aliasAddress: the Alias contract address.
- chainId: the chain ID of the deployment network, as defined by EIP-155.
For EIP-155, see the following article.
EIP-155 Explained: Preventing Replay Attacks Across Ethereum Networks
Address Resolution
Alias supports two forms of content addressability.
- Hash-based identifiers, such as
0x0b5e...d2e7@0x9dbb...47da. - Human-readable aliases, such as
alice@socialnetwork.
Both can resolve to the same data and can be selected according to the use case.
Additional Considerations
EIP-137 provides human-readable names for Ethereum accounts. Its HTTP- and DNS-inspired structure is not well suited to the machine-processing approach envisioned by this proposal.
Combining ERC-1900 and ERC-2157 makes general-purpose content addressing possible.
- ERC-1900 provides data type information.
- ERC-2157 identifies the contracts storing data of those types.
Alias assigns meaning to separators between subdomains, allowing identifiers to express intuitive presentation and structural order.
A resource may have multiple aliases using different names or different separators such as @, dot, or slash. Each separator can have presentation and processing rules appropriate to its context, supporting flexible naming and protocol design.
Citation
Loredana Cirstea (@loredanacirstea), Christian Tzurcanu (@ctzurcanu), "ERC-2193: dType Alias Extension - Decentralized Type System [DRAFT]," Ethereum Improvement Proposals, no. 2193, July 2019. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2193.
Conclusion
ERC-2193 proposes human-readable aliases for arbitrary on-chain data on Ethereum.
Further reading and author links:




