mirror of
https://github.com/Sunscreen-tech/Sunscreen.git
synced 2026-04-19 03:00:06 -04:00
Fix docs
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user