feat: encrypted account event

This commit is contained in:
nikdementev 2021-06-25 12:35:32 +03:00
parent 617b7d3636
commit 1016f0f700
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2
1 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ contract TornadoPool {
event NewCommitment(bytes32 commitment, uint256 index, bytes encryptedOutput);
event NewNullifier(bytes32 nullifier);
event PublicKey(address indexed owner, bytes key);
event EncryptedAccount(address indexed owner, bytes account);
/**
@dev The constructor
@ -186,7 +187,8 @@ contract TornadoPool {
}
}
function register(bytes calldata _pubKey) external {
function register(bytes calldata _pubKey, bytes calldata _account) external {
emit PublicKey(msg.sender, _pubKey);
emit EncryptedAccount(msg.sender, _account);
}
}