diff --git a/python-bindings.cpp b/python-bindings.cpp index 412ce30..5bf02e9 100644 --- a/python-bindings.cpp +++ b/python-bindings.cpp @@ -90,6 +90,9 @@ PYBIND11_MODULE(neo3crypto, m) { .def("__len__", [](ECPoint& self) { if (self.is_infinity()) return 1; return static_cast(self.value_compressed.size()); + }) + .def("__deepcopy__", [](ECPoint& self, py::object& memodict) { + return ECPoint(self.value_compressed, self.curve, false); }); m.def("sign", [](const py::bytes& private_key, const py::bytes& message, ECCCURVE curve, py::function hash_func) { diff --git a/setup.py b/setup.py index e4175af..2c92104 100644 --- a/setup.py +++ b/setup.py @@ -92,7 +92,7 @@ def build_extension(self, ext): description="Native crypto functions for the NEO 3 Blockchain", long_description=readme, long_description_content_type="text/x-rst", - version='0.1', + version='0.2', license='MIT', url='https://github.com/CityOfZion/neo3crypto', classifiers=[