ERC-1484 Unified digital identity registry (Digital Identity Aggregator)
Stagnant · Accounts & wallets · created 2018-10-12
A general-purpose identity registry protocol that groups multiple Ethereum addresses under a single EIN (identification number) and manages identity information through Providers and Resolvers.
Why it is needed
Multiple on-chain identity standards such as ERC-725, ERC-735, ERC-780, and ERC-1056 each define identity differently and are tied to specific Ethereum elements like claim protocols, individual identity contracts, or particular signature verification methods. As standards proliferate, the burden on users and developers to coordinate across multiple identity systems grows, leading to duplicated implementations of the same functionality. Without a common protocol layer, users have no way to unify identity information scattered across their wallet addresses, and there is no standard procedure to recover an entire identity if an address is lost.
What to implement
function identityExists(uint ein) public view returns (bool);: Returns whether an Identity exists for the given EIN.function hasIdentity(address _address) public view returns (bool);: Returns whether the given address is linked to any Identity.function getEIN(address _address) public view returns (uint ein);: Returns the EIN linked to the given address. Execution reverts if the address is not linked to an EIN.function isAssociatedAddressFor(uint ein, address _address) public view returns (bool);: Returns whether the given address is linked to the given EIN.function isProviderFor(uint ein, address provider) public view returns (bool);: Returns whether the given EIN has set the given provider.function isResolverFor(uint ein, address resolver) public view returns (bool);: Returns whether the given EIN has set the given resolver.function createIdentity(address recoveryAddress, address[] memory providers, address[] memory resolvers) public returns (uint ein);: Creates an Identity with msg.sender as its sole Associated Address and returns the new Identity's EIN.function removeAssociatedAddress() public;: Removes msg.sender from the Associated Addresses of the corresponding EIN.function removeAssociatedAddressDelegated(address addressToRemove, uint8 v, bytes32 r, bytes32 s, uint timestamp) public;: Removes addressToRemove from its linked EIN. Requires addressToRemove's signature.function addProviders(address[] memory providers) public;: Adds an array of Providers to msg.sender's Identity.function addProvidersFor(uint ein, address[] memory providers) public;: Performs the same logic as addProviders, but must be called by a Provider.function removeProviders(address[] memory providers) public;: Removes an array of Providers from msg.sender's Identity.function removeProvidersFor(uint ein, address[] memory providers) public;: Performs the same logic as removeProviders, but is called by a Provider.function addResolvers(address[] memory resolvers) public;: Adds an array of Resolvers to msg.sender's EIN.function addResolversFor(uint ein, address[] memory resolvers) public;: Performs the same logic as addResolvers, but must be called by a Provider.function removeResolvers(address[] memory resolvers) public;: Removes an array of Resolvers from msg.sender's EIN.function removeResolversFor(uint ein, address[] memory resolvers) public;: Performs the same logic as removeResolvers, but must be called by a Provider.function triggerRecoveryAddressChange(address newRecoveryAddress) public;: Initiates a change to the current recoveryAddress for msg.sender's EIN.function triggerRecoveryAddressChangeFor(uint ein, address newRecoveryAddress) public;: Initiates a change to the current recoveryAddress for the given EIN.function triggerRecovery(uint ein, address newAssociatedAddress, uint8 v, bytes32 r, bytes32 s, uint timestamp) public;: Executes recovery of an EIN from the current recoveryAddress (or, if changed within the last two weeks, from the previous recoveryAddress).function triggerDestruction(uint ein, address[] memory firstChunk, address[] memory lastChunk, bool clearResolvers) public;: Executes the Destruction of an EIN. This permanently disables the Identity.event IdentityCreated( address indexed initiator, uint indexed ein, address recoveryAddress, address associatedAddress, address[] providers, address[] resolvers, bool delegated );: An event that must be emitted when an Identity is created.event AssociatedAddressAdded( address indexed initiator, uint indexed ein, address approvingAddress, address addedAddress, bool delegated );: An event that must be emitted when an address is added to an Identity.event AssociatedAddressRemoved(address indexed initiator, uint indexed ein, address removedAddress, bool delegated);: An event that must be emitted when an address is removed from an Identity.event ProviderAdded(address indexed initiator, uint indexed ein, address provider, bool delegated);: An event that must be emitted when a Provider is added to an Identity.event ProviderRemoved(address indexed initiator, uint indexed ein, address provider, bool delegated);: An event that must be emitted when a Provider is removed.event ResolverAdded(address indexed initiator, uint indexed ein, address resolvers, bool delegated);: An event that must be emitted when a Resolver is added.event ResolverRemoved(address indexed initiator, uint indexed ein, address resolvers, bool delegated);: An event that must be emitted when a Resolver is removed.event RecoveryAddressChangeTriggered( address indexed initiator, uint indexed ein, address oldRecoveryAddress, address newRecoveryAddress, bool delegated );: An event that must be emitted when a change to recoveryAddress is initiated.event RecoveryTriggered( address indexed initiator, uint indexed ein, address[] oldAssociatedAddresses, address newAssociatedAddress );: An event that must be emitted when recovery is executed.event IdentityDestroyed(address indexed initiator, uint indexed ein, address recoveryAddress, bool resolversReset);: An event that must be emitted when an Identity is destroyed.
In depth
EIN and Identity structure
An Identity is a Solidity struct composed of a recoveryAddress, a set of associatedAddresses, a set of providers, and a set of resolvers. Each Identity is distinguished by an EIN (Ethereum Identification Number), a uint identifier starting from 1; the EIN itself is unique but otherwise carries no meaning.
Rules for adding and removing Associated Addresses
Adding an address to an Identity requires approval (a transaction or signature) from both the already-registered address and the new address being added. Conversely, removal requires a transaction or signature from the address being removed itself, so a single compromised address cannot arbitrarily remove other addresses. A single address can belong to only one EIN at a time.
Signature scheme and replay protection
All signatures required by ERC-1484 follow the ERC-191 v0 specification. To prevent replay attacks, every signature must include a timestamp within a rolling delay window measured from the current block.timestamp.
Providers and Resolvers
A Provider is an address (usually a smart contract) that, with a user's approval, can perform address, Provider, and Resolver management on the user's behalf. A Resolver is a smart contract holding arbitrary information for an Identity, which can implement an existing identity standard like ERC-725 or declare its own independent information.
Recovery Address change procedure
Initiating a Recovery Address change via triggerRecoveryAddressChange opens a 14 day challenge period, during which the existing Recovery Address can call triggerRecovery to reject the change. If it is not rejected within 14 days, the change becomes final.
triggerRecovery and full reset
When a user realizes their address has been lost or compromised, the Recovery Address calls triggerRecovery(ein, newAssociatedAddress, v, r, s, timestamp). This call removes all existing Associated Addresses and Providers and replaces them with a single new address, while the Identity itself and the Resolver remain unchanged.
triggerDestruction, the last resort
If the Recovery Address itself is compromised and triggerRecovery is executed maliciously, one of the addresses removed during recovery can call triggerDestruction(ein, firstChunk, lastChunk, clearResolvers) within 14 days to permanently invalidate that Identity. Whether the Resolver is also removed is chosen via clearResolvers.
A proposal still stalled
This EIP is in Stagnant status. It is a proposal that has stalled without further active discussion or finalization.