Macros§
- derive_
light_ rent_ sponsor - Derives a complete Rent Sponsor configuration for a program at compile time.
- derive_
light_ rent_ sponsor_ pda - Derives a Rent Sponsor PDA for a program at compile time.
Attribute Macros§
- account
- add_
compressible_ instructions - Adds compressible account support with automatic seed generation.
- light_
accounts - light_
program - Generates a Light program for the given module.
- light_
system_ accounts - Adds required fields to your anchor instruction for applying a zk-compressed state transition.
Derive Macros§
- Compress
As - Legacy CompressAs trait implementation (use Compressible instead).
- Compressible
- Automatically implements all required traits for compressible accounts.
- Compressible
Pack - Automatically implements Pack and Unpack traits for compressible accounts.
- Data
Hasher - Alias of
LightHasher. - Decompress
Context - Generates complete compressible instructions with auto-generated seed derivation.
- HasCompression
Info - Automatically implements the HasCompressionInfo trait for structs that have a
compression_info: Option<CompressionInfo>field. - Light
Accounts - Light
Discriminator - Light
Hasher - Makes the annotated struct hashable by implementing the following traits:
- Light
Hasher Sha - SHA256 variant of the LightHasher derive macro.
- Light
Traits - Implements traits on the given struct required for invoking The Light system program via CPI.