light-compressible 0.5.0

Light Protocol compressible data structures
Documentation

light-compressible

Compressible account lifecycle for accounts with sponsored rent-exemption. The program pays the rent exemption for the account. Transaction fee payers bump a virtual rent balance when writing to the account, which keeps the account "hot". "Cold" accounts virtual rent balance below threshold (eg 24h without write bump) get auto-compressed. The cold account's state is cryptographically preserved on the Solana ledger. Users can load a cold account into hot state in-flight when using the account again.

Type Description
CompressionInfo Rent state, authorities, and compression config per account
CompressibleConfig Program-level config: rent sponsor, authorities, address space
RentConfig Rent function parameters for compression eligibility
[compression_info] is_compressible, claim, and top-up logic
[registry_instructions] Instructions for the compression registry
[rent] Epoch-based rent calculation and claim amounts