Private ERC20
The Private ERC20 contract is an abstract implementation of a privacy-enhanced ERC20 token. It introduces mechanisms for handling encrypted balances, allowing for more secure and private token transfers. This contract integrates with the MPC Core library for secure multiparty computation (MPC).
Usage
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import "@coti-io/coti-contracts/contracts/token/PrivateERC20/PrivateERC20.sol";
contract MyToken is PrivateERC20 {
constructor() PrivateERC20("Private Token", "PTOK") {}
}Functions
constructor(string memory name_, string memory symbol_)function name() view returns (string memory)function symbol() view returns (string memory)function decimals() view returns (uint8)function totalSupply() view returns (uint256)function accountEncryptionAddress(address account) view returns (address)Errors
Last updated
Was this helpful?