Skip to content
Snippets Groups Projects
Commit 84b5affd authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] Removed unnecessary debug output

parent 36411aa2
No related branches found
No related tags found
1 merge request!26Support 3689
......@@ -9,7 +9,6 @@ PyObject *dap_encode_base58_py(PyObject *self, PyObject *args){
size_t pySize = (size_t)PyBytes_GET_SIZE(obj);
char result[DAP_ENC_BASE58_ENCODE_SIZE(pySize)];
dap_enc_base58_encode(in_void, pySize, result);
dap_common_init("libdap-crypto-test", "LBS.txt");
return Py_BuildValue("s", result);
}
......@@ -18,8 +17,8 @@ PyObject *dap_decode_base58_py(PyObject *self, PyObject *args){
if (!PyArg_ParseTuple(args, "s", &in_str)){
return NULL;
}
void *res = DAP_NEW_SIZE(void*, 36);
void *res = DAP_NEW_SIZE(void*, DAP_ENC_BASE58_DECODE_SIZE(strlen(in_str)));
size_t decrypted_size = dap_enc_base58_decode(in_str, res);
PyBytesObject *return_object = (PyBytesObject*)PyBytes_FromStringAndSize(res, decrypted_size);
PyBytesObject *return_object = (PyBytesObject*)PyBytes_FromStringAndSize(res, (Py_ssize_t)decrypted_size);
return Py_BuildValue("O", return_object);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment