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
Name | Type | Description |
---|---|---|
groupId | uint256 | |
proof | struct ISemaphore.SemaphoreProof |