diff --git a/src/lib/bindings.cpp b/src/lib/bindings.cpp index 1ac197f..5fbd9cd 100644 --- a/src/lib/bindings.cpp +++ b/src/lib/bindings.cpp @@ -1024,7 +1024,7 @@ void bind_keys(py::module &m) .def_readwrite("secretKey", &KeyPair::secretKey) .def("good", &KeyPair::good,kp_good_docs); py::class_, std::shared_ptr>>(m, "EvalKey") - .def(py::init<>()) + .def(py::init<>()) .def("GetKeyTag", &EvalKeyImpl::GetKeyTag) .def("SetKeyTag", &EvalKeyImpl::SetKeyTag); py::class_>, std::shared_ptr>>>(m, "EvalKeyMap") @@ -1043,8 +1043,6 @@ void bind_encodings(py::module &m) ptx_GetSchemeID_docs) .def("GetLength", &PlaintextImpl::GetLength, ptx_GetLength_docs) - .def("GetSchemeID", &PlaintextImpl::GetSchemeID, - ptx_GetSchemeID_docs) .def("SetLength", &PlaintextImpl::SetLength, ptx_SetLength_docs, py::arg("newSize")) @@ -1054,7 +1052,9 @@ void bind_encodings(py::module &m) ptx_GetLogPrecision_docs) .def("Encode", &PlaintextImpl::Encode, ptx_Encode_docs) - .def("Decode", &PlaintextImpl::Decode, + .def("Decode", py::overload_cast<>(&PlaintextImpl::Decode), + ptx_Decode_docs) + .def("Decode", py::overload_cast(&PlaintextImpl::Decode), ptx_Decode_docs) .def("LowBound", &PlaintextImpl::LowBound, ptx_LowBound_docs)