parasol_runtime 0.10.0

This crate supports the Parasol CPU, providing key generation, encryption, and FHE evaluation functionality.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, thiserror::Error)]
/// Errors that can occur in this crate.
pub enum Error {
    /// Attempted an operation using an incorrect ciphertext type.
    #[error("Ciphertext was not of the expected type.")]
    CiphertextMismatch,

    /// A serialization error.
    #[error("{0}")]
    Bincode(#[from] bincode::Error),

    /// An error in the underlying `sunscreen_tfhe` crypto library.
    #[error("{0}")]
    SunscreenTfhe(#[from] sunscreen_tfhe::Error),
}

/// A `Result` for this crate.
pub type Result<T> = std::result::Result<T, Error>;