2023-08-02 10:54:59 +05:30

1.8 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

withdraw

function withdraw() external pure

Allows a user to withdraw funds allocated to them upon slashing a member