mirror of
https://github.com/waku-org/waku-rlnv1-contract.git
synced 2025-02-24 13:18:13 +00:00
1.7 KiB
1.7 KiB
Solidity API
NotImplemented
error NotImplemented()
WakuRln
constructor
constructor(address _poseidonHasher) public
_register
function _register(uint256 idCommitment) internal
Registers a member
Parameters
Name | Type | Description |
---|---|---|
idCommitment | uint256 | The idCommitment of the member |
register
function register(uint256[] idCommitments) external
register
function register(uint256 idCommitment) external payable
Allows a user to register as a member
Parameters
Name | Type | Description |
---|---|---|
idCommitment | uint256 | The idCommitment of the member |
slash
function slash(uint256 idCommitment, address payable receiver, uint256[8] proof) external pure
Allows a user to slash a member
Parameters
Name | Type | Description |
---|---|---|
idCommitment | uint256 | The idCommitment of the member |
receiver | address payable | |
proof | uint256[8] |
_validateRegistration
function _validateRegistration(uint256 idCommitment) internal view
Inheriting contracts MUST override this function
_validateSlash
function _validateSlash(uint256 idCommitment, address payable receiver, uint256[8] proof) internal pure