From 1016f0f70006bd39026ee34d969230978e3bfa37 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Fri, 25 Jun 2021 12:35:32 +0300 Subject: [PATCH] feat: encrypted account event --- contracts/TornadoPool.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/TornadoPool.sol b/contracts/TornadoPool.sol index 5553d7b..19fa7cc 100644 --- a/contracts/TornadoPool.sol +++ b/contracts/TornadoPool.sol @@ -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); } }