Writing the confidential ERC-20 contract
We will be creating a confidential ERC20 contract that enables the minting of new tokens, transferring tokens between accounts, and managing token allowances (specifying how much one account is permitted to spend on behalf of another) while keeping the amounts encrypted. Additionally, only the contract deployer will be able to view everyone's balances. If desired, the owner can also globally decrypt an individual's balance.
For the Hardhat template, refer to this link.
Last updated