spl_token_confidential_transfer_proof_extraction/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Clone, Debug, Eq, PartialEq)]
pub enum TokenProofExtractionError {
    #[error("ElGamal pubkey mismatch")]
    ElGamalPubkeyMismatch,
    #[error("Pedersen commitment mismatch")]
    PedersenCommitmentMismatch,
    #[error("Range proof length mismatch")]
    RangeProofLengthMismatch,
    #[error("Fee parameters mismatch")]
    FeeParametersMismatch,
    #[error("Curve arithmetic failed")]
    CurveArithmetic,
    #[error("Ciphertext extraction failed")]
    CiphertextExtraction,
}