This commit is contained in:
Rick Weber
2021-12-10 15:55:44 -08:00
parent 3f5912199a
commit 1ebb44cede
3 changed files with 5 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
use std::ops::{Add, Mul, Shl, Shr};
use std::ops::{Add, Mul};
use seal::Plaintext as SealPlaintext;
use crate::{
types::{BfvType, CircuitNode, FheType, U64LiteralRef},
types::{BfvType, CircuitNode, FheType},
Context, Params, TypeName as DeriveTypeName, CURRENT_CTX,
};
use sunscreen_runtime::{InnerPlaintext, Plaintext, TryFromPlaintext, TryIntoPlaintext};

View File

@@ -92,7 +92,7 @@ where
pub trait FheType: TypeNameInstance + TryIntoPlaintext {}
/**
* Denotes the given type is valid under the [SchemeType::BFV](crate::SchemeType::Bfv).
* Denotes the given type is valid under the BFV scheme.
*/
pub trait BfvType: FheType {}

View File

@@ -114,7 +114,7 @@ pub struct PublicRuntime {
metadata: CircuitMetadata,
/**
* The context associated with the BFV scheme. Created by [`RuntimeBuilder`].
* The context associated with the BFV scheme.
*/
context: Context,
}
@@ -196,7 +196,7 @@ impl PublicRuntime {
}
/**
* Encrypts the given [`FheType`] using the given public key.
* Encrypts the given [`FheType`](crate::FheType) using the given public key.
*
* Returns [`Error::ParameterMismatch`] if the plaintext is incompatible with this runtime's
* scheme.