mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
feat: accept no evaluation keys
This commit is contained in:
@@ -37,6 +37,8 @@ using concretelang::error::StringError;
|
||||
|
||||
const std::string SMALL_KEY = "small";
|
||||
const std::string BIG_KEY = "big";
|
||||
const std::string BOOTSTRAP_KEY = "bsk_v0";
|
||||
const std::string KEYSWITCH_KEY = "ksk_v0";
|
||||
|
||||
const std::string CLIENT_PARAMETERS_EXT = ".concrete.params.json";
|
||||
|
||||
|
||||
@@ -87,8 +87,11 @@ public:
|
||||
}
|
||||
|
||||
EvaluationKeys evaluationKeys() {
|
||||
auto kskIt = this->keyswitchKeys.find("ksk_v0");
|
||||
auto bskIt = this->bootstrapKeys.find("bsk_v0");
|
||||
if (this->bootstrapKeys.empty() && this->keyswitchKeys.empty()) {
|
||||
return EvaluationKeys();
|
||||
}
|
||||
auto kskIt = this->keyswitchKeys.find(clientlib::KEYSWITCH_KEY);
|
||||
auto bskIt = this->bootstrapKeys.find(clientlib::BOOTSTRAP_KEY);
|
||||
if (kskIt != this->keyswitchKeys.end() &&
|
||||
bskIt != this->bootstrapKeys.end()) {
|
||||
auto sharedKsk = std::get<1>(kskIt->second);
|
||||
|
||||
Reference in New Issue
Block a user