ZkVerifierClient
The ZkVerifierClient builds verification instructions for zero-knowledge proofs and queries on-chain proof contexts.
Proof Types
Verification Instructions
buildVerifyPubkeyValidityInstruction
buildVerifyWithdrawInstruction
buildVerifyZeroBalanceInstruction
buildVerifyTransferInstruction
Querying Proof Contexts
fetchProofContext(proofContextAddress)
Returns: ProofContext | null
isProofFresh(proofContext)
Check if a proof context is still within the 5-minute freshness window:
PDA Derivation
deriveProofContextPda(owner, tokenAccount, timestamp)
Usage with ConfidentialClient
In typical usage, the ConfidentialClient handles proof generation and verification internally. Use ZkVerifierClient directly when you need:
- Custom proof verification logic
- Batch proof verification
- Proof context inspection
- Integration with other on-chain programs
Last modified on February 8, 2026