Skip to content

AssessorCommitmentLibrary

State Variables

ASSESSOR_COMMITMENT_TYPE

Id is uint256 as for user defined types, the eip712 type hash uses the underlying type.

string constant ASSESSOR_COMMITMENT_TYPE =
    "AssessorCommitment(uint256 index,uint256 id,bytes32 requestDigest,bytes32 claimDigest)";

ASSESSOR_COMMITMENT_TYPEHASH

bytes32 constant ASSESSOR_COMMITMENT_TYPEHASH = keccak256(bytes(ASSESSOR_COMMITMENT_TYPE));

Functions

eip712Digest

Computes the EIP-712 digest for the given commitment.

function eip712Digest(AssessorCommitment memory commitment) internal pure returns (bytes32);
Parameters
NameTypeDescription
commitmentAssessorCommitmentThe commitment to compute the digest for.
Returns
NameTypeDescription
<none>bytes32The EIP-712 digest of the commitment.