Expand description
Utility functions to simplify the handling of ZK ElGamal proof program instruction data in SPL crates
Enums§
- A proof data type to distinguish between proof data included as part of zk-token proof instruction data and proof data stored in a record account.
- A proof location type meant to be used for arguments to instruction constructors.
Functions§
- Checks that the supplied program ID is correct for the ZK ElGamal proof program
- Decodes the proof context data associated with a zero-knowledge proof instruction.
- Processes a proof location for instruction creation. Adds relevant accounts to supplied account vector
- Verify zero-knowledge proof and return the corresponding proof context.
- Converts a zk proof type to a corresponding ZK ElGamal proof program instruction that verifies the proof.