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
33 lines
936 B
Solidity
33 lines
936 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity ^0.8.27;
|
|
|
|
/// @title IdentityTypes
|
|
/// @notice Constants for Identity Types
|
|
library IdentityTypes {
|
|
|
|
/// @dev 1: ASSET identity, used for token identities
|
|
uint256 internal constant ASSET = 1;
|
|
|
|
/// @dev 2: INDIVIDUAL identity
|
|
uint256 internal constant INDIVIDUAL = 2;
|
|
|
|
/// @dev 3: CORPORATE identity
|
|
uint256 internal constant CORPORATE = 3;
|
|
|
|
/// @dev 4: IOT identity
|
|
uint256 internal constant IOT = 4;
|
|
|
|
/// @dev 5: CLAIM_ISSUER identity
|
|
uint256 internal constant CLAIM_ISSUER = 5;
|
|
|
|
/// @dev 6: SMART_CONTRACT identity (DeFi protocols, vaults, bridges, escrows, etc.)
|
|
uint256 internal constant SMART_CONTRACT = 6;
|
|
|
|
/// @dev 7: PUBLIC_AUTHORITY identity (regulators, courts, government issuers, etc.)
|
|
uint256 internal constant PUBLIC_AUTHORITY = 7;
|
|
|
|
/// @dev 8: AI_AGENT identity
|
|
uint256 internal constant AI_AGENT = 8;
|
|
|
|
}
|