mirror of
https://github.com/luxfi/onchain-id.git
synced 2026-10-30 15:23:49 +00:00
* 💥 identity added claim signers at setup * 💥 adde claim_Adder purpose * 💥 added identity types lib and rename variables * 🚨 fix lint * ♻️ renamed claim adder * 💥 resolved claim adder just add claims in execute * 🚨 fix add name selector * 💥 added AI_AGENT type * 🔧 updated the husky files * Removed __ClaimIssuer_init
30 lines
906 B
Solidity
30 lines
906 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity ^0.8.27;
|
|
|
|
import "./IERC734.sol";
|
|
import "./IERC735.sol";
|
|
|
|
// solhint-disable-next-line no-empty-blocks
|
|
interface IIdentity is IERC734, IERC735 {
|
|
|
|
/**
|
|
* @dev Checks if a claim is valid.
|
|
* @param _identity the identity contract related to the claim
|
|
* @param claimTopic the claim topic of the claim
|
|
* @param sig the signature of the claim
|
|
* @param data the data field of the claim
|
|
* @return claimValid true if the claim is valid, false otherwise
|
|
*/
|
|
function isClaimValid(IIdentity _identity, uint256 claimTopic, bytes calldata sig, bytes calldata data)
|
|
external
|
|
view
|
|
returns (bool);
|
|
|
|
/**
|
|
* @dev Returns the identity type set at initialization.
|
|
* @return The identity type (see IdentityTypes library)
|
|
*/
|
|
function getIdentityType() external view returns (uint256);
|
|
|
|
}
|