ERC-884 · Stagnant · ERC · 2018-02-14
ERC-884: DGCL Token
A proposed ERC-20 extension for share tokens of Delaware corporations, with verified holders, an enumerable shareholder list and a way to reissue lost shares. Stagnant.
What problem does it solve?
In 2017 Delaware amended its General Corporation Law (Senate Bill 69) to allow corporations to keep their stock ledger on a blockchain. Many US companies are incorporated in Delaware. A plain ERC-20 token cannot serve as that ledger, though. Anyone can receive it, there is no way to list all shareholders, and a lost private key means lost shares forever.
ERC-884 is a minimal extension of ERC-20 that adds what the spec reads the law as requiring:
- Every holder's identity must be verified.
- The corporation must be able to produce a list of shareholders.
- Transfers must be recorded.
- A shareholder who loses access must be able to get their shares reissued.
How it works
- One token is one share.
decimals()must return0, and there are no partial shares. - Verified addresses only. An authorized party calls
addVerified(addr, hash).hashis a hash of the holder's identity data (name, address), which is kept in an off-chain database. Personal data never goes on chain. Anyone can later check a claim withhasHash(addr, hash).updateVerifiedandremoveVerifiedmaintain the list. An address that still holds shares cannot be removed. - Restricted transfers.
transferandtransferFrommust fail if the recipient is not verified. Recipients are added to the shareholder list, and senders whose balance drops to zero are removed from it. - Shareholder list.
holderCount()andholderAt(i)let anyone enumerate current holders, for example to check a legal limit on the number of shareholders. - Lost keys.
cancelAndReissue(original, replacement)moves the shares to a new verified address. It marks the old one as superseded and never reusable, and emitsVerifiedAddressSuperseded.isSupersededandgetCurrentForfollow the chain of replacements.
How identity is verified, and who may call the admin functions, is left to the implementer.
Sample code
The transfer rule at the heart of the standard (simplified):
function transfer(address to, uint256 value) public override returns (bool) {
require(isVerified(to), "recipient not verified");
_updateShareholders(to); // add `to` to holder list if new
bool ok = super.transfer(to, value);
_pruneShareholders(msg.sender); // drop sender if balance is now 0
return ok;
}
Enumerating shareholders off-chain (ethers v6):
const n = await token.holderCount();
const holders = await Promise.all([...Array(Number(n)).keys()].map((i) => token.holderAt(i)));
Things to know
- This proposal is Stagnant and was never finalized. A reference implementation exists (linked from the spec), but the standard was not widely adopted.
- Because transfers to unverified addresses fail, these tokens do not work with ordinary DEXs or wallets that expect free transferability. The spec says openly that this may make it "unpalatable to some exchanges".
cancelAndReissuelets an administrator move anyone's shares. That is needed under the law, but it means holders must trust whoever controls that role.- The legal analysis is the author's, from 2018. It is not legal advice, and requirements may have changed. Treat compliance as a question for lawyers.
- Later regulated-token work, such as ERC-3643 (T-REX), covers similar ground with on-chain identity and transfer rules.