Skip to main content
Version: v2.0_alpha

MockSemaphore

A mock contract to test the Semaphore gatekeeper

groupId

uint256 groupId

The group id

valid

bool valid

constructor

constructor(uint256 _groupId) public

Create a new instance

Parameters

NameTypeDescription
_groupIduint256The group id

flipValid

function flipValid() external

mock function to flip the valid state

verifyProof

function verifyProof(uint256 _groupId, struct ISemaphore.SemaphoreProof proof) external view returns (bool)

Verify a proof for the group