solana_zk_sdk/zk_elgamal_proof_program/proof_data/errors.rs
use thiserror::Error;
#[derive(Error, Clone, Debug, Eq, PartialEq)]
pub enum ProofDataError {
#[error("decryption error")]
Decryption,
#[error("missing ciphertext")]
MissingCiphertext,
#[error("illegal amount bit length")]
IllegalAmountBitLength,
#[error("arithmetic overflow")]
Overflow,
#[error("invalid proof type")]
InvalidProofType,
}