mirror of
https://github.com/arnaucube/phantom-zone.git
synced 2026-01-11 16:41:29 +01:00
remove num.rs and fix mp parameter selector
This commit is contained in:
@@ -1299,7 +1299,6 @@ mod tests {
|
||||
use rand_distr::Uniform;
|
||||
|
||||
use crate::{
|
||||
backend::{GetModulus, ModInit, ModularOpsU64, WordSizeModulus},
|
||||
bool::{
|
||||
self, CommonReferenceSeededMultiPartyServerKeyShare, PublicKey,
|
||||
SeededMultiPartyServerKey,
|
||||
|
||||
@@ -27,12 +27,12 @@ static BOOL_SERVER_KEY: OnceLock<ShoupServerKeyEvaluationDomain<Vec<Vec<u64>>>>
|
||||
static MULTI_PARTY_CRS: OnceLock<MultiPartyCrs<[u8; 32]>> = OnceLock::new();
|
||||
|
||||
pub enum ParameterSelector {
|
||||
MultiPartyLessThan16,
|
||||
MultiPartyLessThanOrEqualTo16,
|
||||
}
|
||||
|
||||
pub fn set_parameter_set(select: ParameterSelector) {
|
||||
match select {
|
||||
ParameterSelector::MultiPartyLessThan16 => {
|
||||
ParameterSelector::MultiPartyLessThanOrEqualTo16 => {
|
||||
BOOL_EVALUATOR.with_borrow_mut(|v| *v = Some(BoolEvaluator::new(SMALL_MP_BOOL_PARAMS)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user