mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
add user registration
This commit is contained in:
parent
6aab591bef
commit
617b7d3636
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user