这是代币成为 ERC20 代币所需的接口
contract ERC20Interface {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to, uint tokens) public returns (bool success);
function approve(address spender, uint tokens) public returns (bool success);
function transferFrom(address from, address to, uint tokens) public returns (bool success);
event Transfer(address indexed from, address indexed to, uint tokens);
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}
我想保密谁拥有我的令牌的地址。所以我删除了 Transfer 事件和 Approval 事件。我还将 balanceOf 函数设为私有。
公众是否还有办法找出谁拥有我的一个代币?还有什么方法可以让公众知道交易何时发生?