1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod credential;
pub use credential::*;

mod presentation;
pub use presentation::*;

/// Error that can occur when decoding a JOSE VC or VP.
#[derive(Debug, thiserror::Error)]
pub enum JoseDecodeError {
    /// JWS error.
    #[error(transparent)]
    JWS(#[from] ssi_jws::DecodeError),

    /// JSON payload error.
    #[error(transparent)]
    JSON(#[from] serde_json::Error),
}