Skip to main content

Module sdk

Module sdk 

Source
Expand description

SDK for building nullifier instructions.

Provides helpers for fetching validity proofs and building instructions that work with any Rpc-compatible client (LightProgramTest or LightClient).

Structs§

ProofResult
Result from fetching validity proof - contains all data needed to build the instruction.

Constants§

PROGRAM_ID
The deployed program ID.

Functions§

address_tree
Returns the address tree pubkey (static for v2).
build_instruction
Builds the create_nullifier instruction from proof data.
create_nullifier_ix
Creates a nullifier instruction in one call.
derive_nullifier_address
Derives the nullifier address for a given ID.
fetch_proof
Fetches validity proof and packs accounts for a nullifier creation.
output_queue
Output queue pubkey (V2 batch queue 5: oq5oh5ZR3yGomuQgFduNDzjtGvVWfDRGLuDVjv9a96P).