ERC-4886 · Stagnant · ERC · 2022-09-03
ERC-4886: Proxy Ownership Register
A shared on-chain register where a cold wallet nominates a hot wallet as its proxy, so apps can let the hot wallet prove the cold wallet's holdings and send new assets to a chosen delivery address.
What problem does it solve?
To claim an airdrop, join a token-gated Discord, mint an allow-listed NFT or vote, you usually have to connect the very wallet that holds the valuable assets. That makes "cold" storage impractical and exposes the wallet to malicious contracts, a common route for drained NFTs.
ERC-4886 (the "EPS" register) proposes a single contract that records a trustless link: this hot address acts for that cold address. Apps look up the hot wallet, see the cold wallet's holdings, and the cold wallet never has to sign anything risky again.
How it works
Three roles appear in a Proxy Record:
- Nominator: the address holding the assets (typically cold).
- Proxy: the address that interacts with apps on the nominator's behalf (hot).
- Delivery: where newly earned assets (mints, airdrops) should be sent.
Lifecycle:
- The nominator calls
makeNomination(proxy, provider). This is a pending nomination. - The proxy calls
acceptNomination(nominator, delivery, provider). Now a Proxy Record exists, signed for by both addresses. - The proxy can
updateDeliveryAddress; either side can delete the record (deleteRecordByNominator/deleteRecordByProxy). Otherwise it lasts forever.
Lookup for apps: pass the interacting address and get back the nominator and delivery address. An address with no record maps to itself, so integrating apps keep working for normal users. An address that is an active nominator makes the lookup revert, so the same holdings cannot be used twice (once by the cold wallet and once via its proxy). An address can be in only one active relationship at a time.
Many view helpers exist (getProxyRecord, getNominatorRecord, addressIsActive, getRole, and ...ForCaller variants). The provider argument is an ID for the author's provider program; 0 is the default.
Sample code
An app minting to holders of a collection, honoring the register (interface trimmed to what is used):
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IProxyRegister {
function getAddresses(address received)
external view returns (address nominator, address delivery, bool isProxied);
}
interface IERC721 { function balanceOf(address) external view returns (uint256); }
contract HolderMint {
IProxyRegister public immutable register;
IERC721 public immutable gate;
constructor(IProxyRegister r, IERC721 g) { register = r; gate = g; }
function mint() external {
(address nominator, address delivery, bool isProxied) = register.getAddresses(msg.sender);
address holder = isProxied ? nominator : msg.sender;
address to = isProxied ? delivery : msg.sender;
require(gate.balanceOf(holder) > 0, "not a holder");
_mintTo(to);
}
function _mintTo(address to) internal { /* ... */ }
}
Things to know
- Status is Stagnant: the proposal is not progressing toward finalization.
- The spec is internally inconsistent about lookups for unregistered addresses: the overview says the address is returned as both nominator and delivery, while
getAddressesis described as returningaddress(0)withisProxied = false. Check the deployed contract's behavior, and branch onisProxiedas above. - The register is a single shared contract; trust in it, and in the provider program, is part of the design. Confirm which deployment you are integrating.
- Main user risk noted by the author: setting the wrong delivery address.
- Similar "delegation registry" designs exist outside the EIP process; this ERC was not finalized as the standard.