
The ERC-20 token, with the amounts encrypted.



Confidentiality is the requirement.

Investors, terms, and the cap table stay sealed.

Pay onchain without publishing the amount.

The position stays off the public book.

Who received what stays encrypted.

This is the calculation. The token adds, subtracts, and compares while every amount stays ciphertext. Coprocessors run that work, and anyone can recompute it. The numbers stay hidden from the chain.

This is the Solidity the token is written in. A balance is an euint64 handle, not a public uint256. The contract still checks and moves value. The chain records the operation and hands back a new handle.

This is who may open a handle. The token writes the list: the holder, an auditor, a regulator. A name that is not on it never gets the amount.
If you have written an ERC-20, this is the same token. Balance, transfer, and read are the same calls. The amount stays sealed, so the chain records the move and never the number.

An euint64 handle. Not a public number. The wallet shows **** because the balance stays ciphertext.

confidentialTransfer, instead of transfer. From and to stay visible. The value on the explorer is ****.

confidentialBalanceOf, instead of balanceOf. You still ask for a balance. The answer is a sealed handle, not the amount.