Skip to main content
Version: v2.0_alpha

ISemaphore

SemaphoreProof

It defines all the Semaphore proof parameters used by Semaphore.sol.

struct SemaphoreProof {
uint256 merkleTreeDepth;
uint256 merkleTreeRoot;
uint256 nullifier;
uint256 message;
uint256 scope;
uint256[8] points;
}

verifyProof

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

Verifies a zero-knowledge proof by returning true or false.

Parameters

NameTypeDescription
groupIduint256
proofstruct ISemaphore.SemaphoreProof