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-4886 proposes a way to designate one address to act on behalf of the wallet that holds assets and another to receive new assets, such as airdrops.

This article explains and expands on the proposal below.

I also cover other Ethereum improvement proposals.

Overview

ERC-4886 lets users appoint a separate wallet as their proxy and set a delivery address for new assets. Smart contracts and dapps can resolve the proxy address to the original holder, called the nominator, and check which assets it holds.

A user can keep assets in a cold wallet while using a hot wallet to interact with smart contracts. This limits the cold wallet's exposure to contracts that could attempt to take its assets. A separate delivery address also lets the user route new assets to the appropriate wallet, such as receiving an airdrop directly in cold storage.

Motivation

Many Ethereum applications require users to prove that they hold an asset. Typical examples include the following.

  • Signing with a token-holding wallet to join a Discord community.
  • Using an address that holds qualifying assets to Mint an NFT or claim an airdrop.
  • Signing from an eligible asset-holding address to vote in a DAO.

These actions generally require a signature or transaction from the holding address. That conflicts with keeping the address offline and increases exposure when the user signs or interacts with contracts from a hot wallet.

For instance, a project offering a free Mint to holders of a particular NFT may require the holding address to call its contract. A malicious contract can use the opportunity to target assets in that wallet. Security-conscious users may instead keep NFTs in a vault, but then risk losing access to Discord communities or airdrops.

Ethereum can support trustless proof of holdings without requiring the asset-holding address to sign every interaction. Users should also be able to direct new assets to a designated wallet regardless of which wallet signed the interaction.

ERC-4886 aims to let users register a proxy from a cold wallet once, use the hot wallet for routine interactions, and continue receiving new assets at the cold wallet.

Specification

Terminology

  • Delivery address. The address that receives new assets such as NFTs. When a proxy claims an asset on someone's behalf, the asset is delivered here.
  • Nomination. The act of proposing a proxy. It becomes active when the proxy accepts it.
  • Nominator address. The original address that designates a proxy.
  • Proxy address. The address that acts on-chain on the nominator's behalf.
  • Proxy record. The record of an active relationship, including the nominator, proxy, and delivery addresses.
  • Register. The main EPS smart contract, which stores nominations and proxy records.

Registering a proxy

  1. The nominator creates a nomination by specifying the proxy address.
  2. The proxy accepts the nomination, creating a proxy record.
  3. The proxy sets the delivery address when accepting and manages subsequent updates.
  4. Either the nominator or the proxy can delete the nomination and record at any time.

The relationship stays active until explicitly removed.

Information stored by the register

  • Nomination
    • Nominator address.
    • Designated proxy address.
  • Proxy record
    • Nominator address.
    • Proxy address.
    • Delivery address.

Constraints

  • Any address can serve as a nominator or a proxy.
  • Addresses already participating in another proxy relationship cannot be nominated again. This prevents recursive relationships.

Mapping structure

text
Contract / Dapp                        Register

  |                                       |
  |------------- 0x4567..---------------> |
  |                                       |
  | <-------nominator: 0x1234..---------- |
  |         delivery: 0x9876..            |
  |                                       |
  • A nomination uses an address => address mapping from the nominator to the proxy.
text
Contract / Dapp                        Register

  |                                       |
  |------------- 0x0222..---------------> |
  |                                       |
  | <-------nominator: 0x0222..---------- |
  |         delivery: 0x0222..            |
  |                                       |
  • A proxy record uses an address => struct mapping from the proxy to a structure containing the nominator and delivery addresses.

Reverse lookup and compatibility

  • For an address outside the register, the lookup can treat that address as both the nominator and the delivery address so that applications can support non-proxied users.
  • Passing an active nominator address to the reverse lookup reverts. This prevents applications from treating the same assets as represented by multiple addresses.

Ensuring one active representative

A proxy can claim benefits associated with the nominator's holdings, such as an NFT Mint or a Discord role. If the nominator could also act while the proxy remained active, both addresses could claim against the same assets. To act directly again, the nominator first removes the proxy record. The nominator then represents its own holdings again, and the proxy loses that role.

Nomination functions

nominationExists

js
function nominationExists(address _nominator) external view returns (bool)

Returns whether the specified address, _nominator, has a nomination.

nominationExistsForCaller

js
function nominationExistsForCaller() external view returns (bool)

Returns whether the caller, msg.sender, has made a nomination.

getNomination

js
function getNomination(address _nominator) external view returns (address proxy)

Returns the proxy address nominated by the specified address.

getNominationForCaller

js
function getNominationForCaller() external view returns (address proxy)

Returns the proxy address nominated by the caller, msg.sender.

Proxy record functions

proxyRecordExists

js
function proxyRecordExists(address _proxy) external view returns (bool)

Returns whether the specified address, _proxy, is the proxy in an active proxy record.

proxyRecordExistsForCaller

js
function proxyRecordExistsForCaller() external view returns (bool)

Returns whether the caller, msg.sender, has an active record as a proxy.

nominatorRecordExists

js
function nominatorRecordExists(address _nominator) external view returns (bool)

Returns whether the specified nominator address appears in an active record.

nominatorRecordExistsForCaller

js
function nominatorRecordExistsForCaller() external view returns (bool)

Returns whether the caller has an active record as a nominator.

getProxyRecord

js
function getProxyRecord(address _proxy) external view returns (address nominator, address proxy, address delivery)

Returns the nominator, proxy, and delivery addresses associated with the specified proxy.

getProxyRecordForCaller

js
function getProxyRecordForCaller() external view returns (address nominator, address proxy, address delivery)

Returns the proxy record in which the caller is the proxy.

getNominatorRecord

js
function getNominatorRecord(address _nominator) external view returns (address nominator, address proxy, address delivery)

Returns the nominator, proxy, and delivery addresses associated with the specified nominator.

getNominatorRecordForCaller

js
function getNominatorRecordForCaller() external view returns (address nominator, address proxy, address delivery)

Returns the proxy record in which the caller is the nominator.

Checking whether an address is active

addressIsActive

js
function addressIsActive(address _receivedAddress) external view returns (bool)

Returns whether the specified address appears as the nominator or proxy in an active record.

addressIsActiveForCaller

js
function addressIsActiveForCaller() external view returns (bool)

Returns whether the caller is a party to an active proxy record.

Looking up addresses

getAddresses

js
function getAddresses(address _receivedAddress) external view returns (address nominator, address delivery, bool isProxied)

For a proxy address, returns its nominator, its delivery address, and a Boolean indicating that the relationship is proxied. The Japanese source describes the non-proxy case here as returning address(0) for both addresses and false. That differs from its earlier compatibility description, where an unregistered address resolves to itself.

getAddressesForCaller

js
function getAddressesForCaller() external view returns (address nominator, address delivery, bool isProxied)

Resolves the caller's address and returns its proxy information.

Checking address roles

getRole

js
function getRole(address _roleAddress) external view returns (string memory currentRole)

Returns the specified address's role in EPS as a string.

  • None. The address has no role.
  • Nominator - Pending. The address has made a nomination that has yet to be accepted.
  • Nominator - Active. The address is the nominator in an active proxy record.
  • Proxy - Active. The address is the proxy in an active proxy record.

getRoleForCaller

js
function getRoleForCaller() external view returns (string memory currentRole)

Returns the caller's EPS role.

Managing proxy relationships

makeNomination

js
function makeNomination(address _proxy, uint256 _provider) external payable

Creates a nomination from msg.sender to the specified _proxy. The _provider argument is the EPS provider ID. Pass 0 if it is unused.

acceptNomination

js
function acceptNomination(address _nominator, address _delivery, uint256 _provider) external

Lets the proxy, msg.sender, accept a nomination from _nominator and register _delivery as the delivery address. The _provider argument is the EPS provider ID.

updateDeliveryAddress

js
function updateDeliveryAddress(address _delivery, uint256 _provider) external

Updates the delivery address of the current active record when msg.sender is its registered proxy.

Deleting records

deleteRecordByNominator

js
function deleteRecordByNominator(uint256 _provider) external

Lets the nominator, msg.sender, delete the nomination and proxy record. It can also delete a pending nomination.

deleteRecordByProxy

js
function deleteRecordByProxy(uint256 _provider) external

Lets the registered proxy, msg.sender, delete its proxy record and the corresponding nomination.

Additional notes

ERC-4886's main purpose is to let users designate a proxy to represent their holdings separately from the address that holds them. The approach can apply to existing and future assets on Ethereum.

In the conventional model, ownership and use are tied to the same address. A user who keeps assets in a cold wallet then has to expose that address to interactions to use the assets elsewhere.

Under ERC-4886, a smart contract called the register records the nomination and the proxy's acceptance. Applications can use this record as trustless proof of the relationship without changing existing token standards. Since both parties authorize it, the record shows that the holding address has agreed to let the proxy represent its holdings.

Security considerations

ERC-4886 aims to let users keep assets in cold storage while retaining the practical benefits of using them in applications.

A proxy record cannot be created unilaterally. The nominator proposes the relationship, and the register activates it only when the proxy accepts it. Requiring transactions from both parties establishes explicit consent and limits impersonation or unauthorized assignment.

A user could still specify the wrong delivery address. The Japanese article treats this as the same class of risk as sending Ethereum assets to the wrong address. It concludes that the mechanism is designed to improve safety through mutual authorization and clear roles.

Citation

Omnus Sunmo (@omnus), "ERC-4886: Proxy Ownership Register [DRAFT]," Ethereum Improvement Proposals, no. 4886, September 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-4886.

Conclusion

ERC-4886 separates the address that holds assets from the address that represents those holdings and the address that receives new assets. It gives apps a standard way to resolve those roles for activities such as claiming an airdrop.

Questions are welcome by direct message.

Twitter @cardene777

I also write on the following sites.

https://chaldene.net/