Skip to content

Commit c838c14

Browse files
Exposed GetKeySwitchTechnique().
1 parent 16b8ef6 commit c838c14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/bindings.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ void bind_crypto_context(py::module &m) {
327327
.def("GetCompositeDegree", [](CryptoContext<DCRTPoly>& self) {
328328
return GetParamsRNSChecked(self, "GetCompositeDegree")->GetCompositeDegree();
329329
})
330+
.def("GetKeySwitchTechnique", [](CryptoContext<DCRTPoly>& self) {
331+
return GetParamsRNSChecked(self, "GetKeySwitchTechnique")->GetKeySwitchTechnique();
332+
})
330333
.def("Enable", py::overload_cast<PKESchemeFeature>(&CryptoContextImpl<DCRTPoly>::Enable),
331334
py::arg("feature"),
332335
py::doc(cc_Enable_docs))

0 commit comments

Comments
 (0)