Template Function lbcrypto::Serial::DeserializeFromFile(const std::string&, CryptoContext<T>&, const SerType::SERJSON&)
Defined in File cryptocontext-ser.h
Function Documentation
-
template<typename T>
bool lbcrypto::Serial::DeserializeFromFile(const std::string &filename, CryptoContext<T> &obj, const SerType::SERJSON &sertype) Deserialize a CryptoContext from a JSON file (see Deserialize).
- Parameters
filename – - the file to read the serialization from
obj – - the target for the deserialization
sertype – - selects JSON serialization
- Returns
true if the file could be opened