Skip to content

feat: Add ZK ElGamal Proof program#353

Open
LStan wants to merge 1 commit intoanza-xyz:mainfrom
LStan:zk_elgamal
Open

feat: Add ZK ElGamal Proof program#353
LStan wants to merge 1 commit intoanza-xyz:mainfrom
LStan:zk_elgamal

Conversation

@LStan
Copy link
Contributor

@LStan LStan commented Feb 22, 2026

Added all instructions for the ZK ElGamal Proof program.
The instructions were taken from here.
All instructions except CloseContextState have the same pattern, and are implemented with a macro. For every such instruction, a proof can be provided either in the instruction data or in an account. Every type of proof has a constant size. The constants for proof lengths are the sizes of <ProofType>Data structs from here.
Also, an optional ContextStateInfo can be provided to store a context.
The instruction CloseContextState is implemented separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant