Crate light_sdk

Source

Re-exports§

pub use light_compressed_account;
pub use light_verifier as verifier;
pub use constants::*;

Modules§

account
account_info
address
bigint
checks
constants
cpi
discriminator
error
errors
hash_to_field_size
instruction
keccak
legacy
Legacy types re-imported from programs which should be removed as soon as possible.
poseidon
sha256
syscalls
This module is a partial copy from solana-program, which is licensed under Apache License 2.0.
to_byte_array
token
transfer
utils
zero_bytes
zero_indexed_leaf

Macros§

find_cpi_signer_macro
impl_to_byte_array_for_array
Example usage: impl_to_byte_array_for_array! { MyCustomType, 1 => [0], 2 => [0, 1] }

Structs§

InstructionDataInvoke
Keccak
NewAddressParams
NewAddressParamsAssigned
NewAddressParamsAssignedPacked
NewAddressParamsPacked
OutputCompressedAccountWithContext
OutputCompressedAccountWithPackedContext
PackedReadOnlyAddress
Poseidon
ReadOnlyAddress
Sha256
ValidityProof

Enums§

HasherError

Constants§

HASH_BYTES

Traits§

DataHasher
Hasher
LightDiscriminator

Functions§

pack_pubkey
pack_pubkey_usize

Type Aliases§

Hash

Attribute Macros§

light_account
light_accounts
light_program
light_system_accounts
Adds required fields to your anchor instruction for applying a zk-compressed state transition.

Derive Macros§

LightAccounts
LightDiscriminator
LightHasher
Makes the annotated struct hashable by implementing the following traits:
LightTraits
Implements traits on the given struct required for invoking The Light system program via CPI.