add user registration

This commit is contained in:
Alexey 2021-06-21 20:05:36 +03:00
parent 6aab591bef
commit 617b7d3636

View File

@ -38,6 +38,7 @@ contract TornadoPool {
event NewCommitment(bytes32 commitment, uint256 index, bytes encryptedOutput); event NewCommitment(bytes32 commitment, uint256 index, bytes encryptedOutput);
event NewNullifier(bytes32 nullifier); event NewNullifier(bytes32 nullifier);
event PublicKey(address indexed owner, bytes key);
/** /**
@dev The constructor @dev The constructor
@ -184,4 +185,8 @@ contract TornadoPool {
revert("unsupported input count"); revert("unsupported input count");
} }
} }
function register(bytes calldata _pubKey) external {
emit PublicKey(msg.sender, _pubKey);
}
} }