enigma-identity 0.1.0

Enigma Identity: local identity + X3DH bundle + shared secret derivation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

pub type Result<T> = std::result::Result<T, EnigmaIdentityError>;

#[derive(Debug, Error)]
pub enum EnigmaIdentityError {
    #[error("username invalide")]
    InvalidUsername,

    #[error("bundle X3DH invalide: signature incorrecte")]
    InvalidBundleSignature,

    #[error("données invalides")]
    InvalidData,

    #[error("erreur cryptographique")]
    CryptoError,
}