All access control functions work on ebool | euint8 | euint16 | euint32 | euint64 | euint128 | eaddress.
allow
Grants permission to a specific address.
allowThis
Grants permission to the current contract (address(this)).
Call allowThis after modifying encrypted state variables so the contract can use them in future transactions.
allowPublic
Grants public permission — anyone can request decryption off-chain via decryptForTx without a permit.
Once called, the value can be decrypted by anyone. Only use this when you intend to reveal the value publicly (e.g., after an auction closes or when unwrapping tokens).
allowSender
Grants permission to msg.sender.
allowTransient
Grants temporary permission to a specific address for the current transaction only.
isAllowed
Checks if an address has permission.
isPubliclyAllowed
Checks if the value has been granted public access via allowPublic.