Skip to content

Commit

Permalink
fixes last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wbendick committed Apr 7, 2021
1 parent 5ba9a24 commit 648be4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python-bindings/pythonbindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ PYBIND11_MODULE(blspy, m)
.def(
"__bytes__",
[](const G1Element &ele) {
vector<uint8_t> out;
Py_BEGIN_ALLOW_THREADS
vector<uint8_t> out = ele.Serialize();
out = ele.Serialize();
Py_END_ALLOW_THREADS
py::bytes ans = py::bytes(
reinterpret_cast<const char *>(out.data()), G1Element::SIZE);
Expand Down

0 comments on commit 648be4f

Please sign in to comment.