Просмотр исходного кода

Add ciphertext.GetKeyTag to the python bindings

Ian Goldberg 4 месяцев назад
Родитель
Сommit
978cbef8d8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/lib/bindings.cpp

+ 1 - 0
src/lib/bindings.cpp

@@ -1509,6 +1509,7 @@ void bind_ciphertext(py::module &m) {
         .def("SetNoiseScaleDeg", &CiphertextImpl<DCRTPoly>::SetNoiseScaleDeg)
         .def("GetCryptoContext", &CiphertextImpl<DCRTPoly>::GetCryptoContext)
         .def("GetEncodingType", &CiphertextImpl<DCRTPoly>::GetEncodingType)
+        .def("GetKeyTag", &CiphertextImpl<DCRTPoly>::GetKeyTag)
         .def("GetElements", [](const CiphertextImpl<DCRTPoly>& self) -> const std::vector<DCRTPoly>& {
                 return self.GetElements();
             },