Skip to main content

ISablierMerkleSignature

Git Source

Inherits: ISablierMerkleBase

Title: ISablierMerkleSignature

Abstract contract providing helper functions for verifying EIP-712 and EIP-1271 signatures for Merkle campaigns.

Functions

attestor

Retrieves the attestor address used for creating attestation signatures.

function attestor() external view returns (address);

domainSeparator

The domain separator, as required by EIP-712 and EIP-1271, used for signing claims to prevent replay attacks across different campaigns.

function domainSeparator() external view returns (bytes32);

setAttestor

Sets the attestor address used for verifying attestation signatures.

Emits a SetAttestor event. Requirements:

  • msg.sender must be either the comptroller or the campaign admin.
function setAttestor(address newAttestor) external;

Parameters

NameTypeDescription
newAttestoraddressThe new attestor address. If zero, the attestor from the comptroller will be used.

Events

SetAttestor

Emitted when the address of the attestor is set in this contract.

event SetAttestor(address indexed caller, address indexed previousAttestor, address indexed newAttestor);