use inco_lightning::cpi::accounts::Allow;pub struct Allow<'info> { /// The allowance PDA account pub allowance_account: AccountInfo<'info>, /// The signer authorizing the allowance pub signer: AccountInfo<'info>, /// The address being allowed access pub allowed_address: AccountInfo<'info>, /// System program for account creation pub system_program: AccountInfo<'info>,}
Used for checking if an address has decryption permission.
use inco_lightning::cpi::accounts::IsAllowed;pub struct IsAllowed<'info> { /// The allowance PDA account to check pub allowance_account: AccountInfo<'info>, /// The address to check allowance for pub allowed_address: AccountInfo<'info>,}