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
24 lines
809 B
Solidity
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;
|
|
|
|
}
|