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
Name | Type | Description |
---|---|---|
_groupId | uint256 | The 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