keri-core 0.17.13

Core library for the Key Event Receipt Infrastructure
Documentation
use serde::{Deserialize, Serialize};
use thiserror::Error;

use crate::keys::KeysError;

#[derive(Error, Debug, Serialize, Deserialize)]
pub enum Error {
    #[error("Incorrect data length: {0}")]
    IncorrectLengthError(String),

    #[error("Wrong seed type error")]
    WrongSeedTypeError,

    #[error("Deserialize error: {0}")]
    DeserializeError(String),

    #[error(transparent)]
    ParseError(#[from] cesrox::error::Error),

    #[error(transparent)]
    KeysError(#[from] KeysError),
}