Expand description
Utility functions to simplify the handling of ZK ElGamal proof program instruction data in SPL crates
Enums§
- Proof
Location - 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.