Expand description

Utility functions to simplify the handling of ZK ElGamal proof program instruction data in SPL crates

Enums§

ProofLocation
A proof location type meant to be used for arguments to instruction constructors.

Functions§

check_zk_elgamal_proof_program_account
Checks that the supplied program ID is correct for the ZK ElGamal proof program
decode_proof_instruction_context
Decodes the proof context data associated with a zero-knowledge proof instruction.
process_proof_location
Processes a proof location for instruction creation. Adds relevant accounts to supplied account vector
verify_and_extract_context
Verify zero-knowledge proof and return the corresponding proof context.
zk_proof_type_to_instruction
Converts a zk proof type to a corresponding ZK ElGamal proof program instruction that verifies the proof.