shamirss 0.1.0

Hobbist implementation of Shamirs Secret Sharing algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

/// SSSErrors contains all the errors types that are returned in Result.
///
#[derive(Error, Debug)]
pub enum SSSError {
    #[error("failed with openssl error: {0}")]
    FromOpenssl(#[from] openssl::error::ErrorStack),
    #[error("failed with hex operation: {0}")]
    FromHex(#[from] hex::FromHexError),
    #[error("failed with base64 operation: {0}")]
    FromBase64(#[from] base64::DecodeError),
    #[error("failed with reason: {0}")]
    WithReason(String),
}