Skip to main content

Account Structs

CPI account structures required for making calls to the Inco Lightning program.

Operation

Used for all encrypted operations (arithmetic, comparison, bitwise, random, input functions, select).

Usage

Allow

Used for granting or revoking decryption access.

PDA Derivation

The allowance account is a PDA derived from the handle and allowed address:
Client-side (TypeScript):

Usage

IsAllowed

Used for checking if an address has decryption permission.

Usage

VerifySignature

Used for verifying Ed25519 signatures for attested decryption.

Usage

Adding to Your Instruction

When defining your instruction’s account struct, include the Inco Lightning program:
For access control operations, also include the allowance PDA and system program: