mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat(KeySetCache): use a artifacts to store the cache
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <utime.h>
|
||||
|
||||
extern "C" {
|
||||
#include "concrete-ffi.h"
|
||||
@@ -78,6 +79,10 @@ KeySetCache::loadKeys(ClientParameters ¶ms, uint64_t seed_msb,
|
||||
// TODO: text dump of all parameter in /hash
|
||||
auto key_set = std::make_unique<KeySet>();
|
||||
|
||||
// Mark the folder as recently use.
|
||||
// e.g. so the CI can do some cleanup of unused keys.
|
||||
utime(folderPath.c_str(), nullptr);
|
||||
|
||||
std::map<LweSecretKeyID, std::pair<LweSecretKeyParam, LweSecretKey_u64 *>>
|
||||
secretKeys;
|
||||
std::map<LweSecretKeyID, std::pair<BootstrapKeyParam, LweBootstrapKey_u64 *>>
|
||||
|
||||
Reference in New Issue
Block a user