Expand description
§light-compressed-account
Compressed account struct and utility types for Light Protocol.
| Type | Description |
|---|---|
CompressedAccountError | Error codes 12001–12025 for account operations |
QueueType | Nullifier, address, and state queue variants |
TreeType | State and address tree version variants |
CpiSigner | Program ID, CPI signer pubkey, and bump |
address | Address derivation and seed structs |
compressed_account | Core compressed account struct |
constants | Program IDs and account discriminators as byte arrays |
discriminators | Instruction discriminators for invoke, invoke_cpi, and queue operations |
instruction_data | Instruction data types and proof structs |
nullifier | Nullifier computation |
pubkey | Pubkey struct (re-exported at root) and AsPubkey conversion trait |
tx_hash | Transaction hash computation |
Re-exports§
pub use instruction_data::traits::InstructionDiscriminator;pub use instruction_data::traits::LightInstructionData;pub use pubkey::Pubkey;
Modules§
- address
- compressed_
account - constants
- discriminators
- hash_
chain - instruction_
data - nullifier
- pubkey
- tx_hash
- vec
- A contiguous growable array type with heap-allocated contents, written
Vec<T>.
Macros§
Structs§
- CpiSigner
- Configuration struct containing program ID, CPI signer, and bump for Light Protocol
- Vec
- A contiguous growable array type, written as
Vec<T>, short for ‘vector’.
Enums§
Constants§
- ADDRESS_
MERKLE_ TREE_ TYPE_ V1 - ADDRESS_
MERKLE_ TREE_ TYPE_ V2 - ADDRESS_
QUEUE_ TYPE_ V1 - ADDRESS_
QUEUE_ TYPE_ V2 - INPUT_
STATE_ QUEUE_ TYPE_ V2 - NULLIFIER_
QUEUE_ TYPE_ V1 - OUTPUT_
STATE_ QUEUE_ TYPE_ V2 - STATE_
MERKLE_ TREE_ TYPE_ V1 - STATE_
MERKLE_ TREE_ TYPE_ V2
Functions§
- bigint_
to_ be_ bytes_ array - Converts the given
ark_ff::BigUintinto a big-endian byte array. - hash_
to_ bn254_ field_ size_ be - Hashes the provided
byteswith Keccak256 and ensures the result fits in the BN254 field by truncating the resulting hash to 31 bytes. - hashv_
to_ bn254_ field_ size_ be