spl_token_confidential_transfer_proof_generation/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use {solana_zk_sdk::zk_elgamal_proof_program::errors::ProofGenerationError, thiserror::Error};

#[derive(Error, Clone, Debug, Eq, PartialEq)]
pub enum TokenProofGenerationError {
    #[error("inner proof generation failed")]
    ProofGeneration(#[from] ProofGenerationError),
    #[error("not enough funds in account")]
    NotEnoughFunds,
    #[error("illegal amount bit length")]
    IllegalAmountBitLength,
    #[error("fee calculation failed")]
    FeeCalculation,
}