Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/wally.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ inline int bip340_tagged_hash(const BYTES& bytes, const TAG& tag, BYTES_OUT& byt
}

template <class BYTES>
inline int bzero(const BYTES& bytes, size_t bytes_len) {
int ret = ::wally_bzero(detail::get_p(bytes), bytes_len);
inline int bzero(BYTES& bytes) {
int ret = ::wally_bzero(bytes.data(), bytes.size());
return detail::check_ret(__FUNCTION__, ret);
}

Expand Down
2 changes: 0 additions & 2 deletions include/wally_psbt.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ extern "C" {

#define WALLY_SCALAR_OFFSET_LEN 32 /* Length of a PSET scalar offset */

struct ext_key;

#ifdef SWIG
struct wally_psbt_input;
struct wally_psbt_output;
Expand Down
2 changes: 2 additions & 0 deletions include/wally_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ extern "C" {

struct wally_map;
#ifdef SWIG
struct wally_tx_witness_item;
struct wally_tx_witness_stack;
struct wally_tx_input;
struct wally_tx_output;
struct wally_tx;
Expand Down
1 change: 1 addition & 0 deletions src/swig_java/swig.i
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ static jobjectArray create_jstringArray(JNIEnv *jenv, char **p, size_t len) {
%apply(char *STRING, size_t LENGTH) { (unsigned char* s2c_opening_out, size_t s2c_opening_out_len) };
%apply(char *STRING, size_t LENGTH) { (unsigned char* scalar, size_t scalar_len) };
%apply(char *STRING, size_t LENGTH) { (unsigned char* vbf_out, size_t vbf_out_len) };
%apply(char *STRING, size_t LENGTH) { (void* bytes, size_t bytes_len) };
%ignore bip32_key_from_base58;
%ignore bip32_key_from_base58_n;
%ignore bip32_key_from_parent;
Expand Down
1 change: 1 addition & 0 deletions src/swig_python/swig.i
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ static void destroy_words(PyObject *obj) { (void)obj; }
%pybuffer_nullable_binary(const unsigned char* vbf, size_t vbf_len);
%pybuffer_nullable_binary(const unsigned char* whitelistproof, size_t whitelistproof_len);
%pybuffer_nullable_binary(const unsigned char* witness, size_t witness_len);
%pybuffer_nullable_binary(void* bytes, size_t bytes_len);
%pybuffer_output_binary(unsigned char* abf_out, size_t abf_out_len);
%pybuffer_output_binary(unsigned char* asset_out, size_t asset_out_len);
%pybuffer_output_binary(unsigned char* bytes_out, size_t len);
Expand Down
2 changes: 1 addition & 1 deletion tools/build_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def is_array(func, arg, n, num_args, types):


def is_buffer(func, arg, n, num_args):
return is_array(func, arg, n, num_args, [u'const unsigned char*', u'unsigned char*'])
return is_array(func, arg, n, num_args, [u'const unsigned char*', u'unsigned char*', u'void*'])


def is_int_buffer(func, arg, n, num_args):
Expand Down
Loading