Files
Mohamad HammoudandGitHub f290366435 Feature/bt 1496 identity setup single transaction (#142)
* 💥 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
2026-04-08 15:52:08 +03:00

24 lines
809 B
Solidity

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.27;
/// @title KeyPurposes
/// @notice Constants for Key Purposes
library KeyPurposes {
/// @dev 1: MANAGEMENT keys, which can manage the identity
uint256 internal constant MANAGEMENT = 1;
/// @dev 2: ACTION keys, which perform actions in this identities name (signing, logins, transactions, etc.)
uint256 internal constant ACTION = 2;
/// @dev 3: CLAIM signer keys, used to sign claims on other identities which need to be revokable.
uint256 internal constant CLAIM_SIGNER = 3;
/// @dev 4: ENCRYPTION keys, used to encrypt data e.g. hold in claims.
uint256 internal constant ENCRYPTION = 4;
/// @dev 5: CLAIM_ADDER key, can add claims but cannot remove them.
uint256 internal constant CLAIM_ADDER = 5;
}