add user registration

This commit is contained in:
Alexey 2021-06-21 20:05:36 +03:00
parent 6aab591bef
commit 617b7d3636
1 changed files with 5 additions and 0 deletions

View File

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