spl_token_confidential_transfer_proof_generation/
errors.rs1use {solana_zk_sdk::zk_elgamal_proof_program::errors::ProofGenerationError, thiserror::Error};
2
3#[derive(Error, Clone, Debug, Eq, PartialEq)]
4pub enum TokenProofGenerationError {
5 #[error("inner proof generation failed")]
6 ProofGeneration(#[from] ProofGenerationError),
7 #[error("not enough funds in account")]
8 NotEnoughFunds,
9 #[error("illegal amount bit length")]
10 IllegalAmountBitLength,
11 #[error("fee calculation failed")]
12 FeeCalculation,
13 #[error("ciphertext extraction failed")]
14 CiphertextExtraction,
15}