|
8 | 8 | #include "utils/temporary_stack.h" |
9 | 9 | #include "wallet.h" |
10 | 10 |
|
11 | | -#include <wally_address.h> |
12 | 11 | #include <wally_descriptor.h> |
13 | 12 | #include <wally_script.h> |
14 | 13 |
|
@@ -167,7 +166,7 @@ static void string_values_to_map(const string_value_t* datavalues, const size_t |
167 | 166 | } |
168 | 167 | } |
169 | 168 |
|
170 | | -static bool parse_descriptor(const char* name, const descriptor_data_t* descriptor, const uint32_t network_id, |
| 169 | +static bool parse_descriptor(const char* name, const descriptor_data_t* descriptor, const network_t network_id, |
171 | 170 | descriptor_type_t* deduced_type, struct wally_descriptor** output, uint32_t* depth, const char** errmsg) |
172 | 171 | { |
173 | 172 | JADE_ASSERT(name); |
@@ -276,7 +275,7 @@ static bool parse_descriptor(const char* name, const descriptor_data_t* descript |
276 | 275 |
|
277 | 276 | // NOTE: signers should either be sufficient to hold details for all signers, or NULL if |
278 | 277 | // the only value of interest is the number of signers in the descriptor. |
279 | | -bool descriptor_get_signers(const char* name, const descriptor_data_t* descriptor, const uint32_t network_id, |
| 278 | +bool descriptor_get_signers(const char* name, const descriptor_data_t* descriptor, const network_t network_id, |
280 | 279 | descriptor_type_t* deduced_type, signer_t* signers, const size_t signers_len, size_t* written, const char** errmsg) |
281 | 280 | { |
282 | 281 | JADE_ASSERT(name); |
@@ -389,7 +388,7 @@ bool descriptor_get_signers(const char* name, const descriptor_data_t* descripto |
389 | 388 | } |
390 | 389 |
|
391 | 390 | // On success output must be freed with wally_free_string() |
392 | | -bool descriptor_to_address(const char* name, const descriptor_data_t* descriptor, const uint32_t network_id, |
| 391 | +bool descriptor_to_address(const char* name, const descriptor_data_t* descriptor, const network_t network_id, |
393 | 392 | const uint32_t multi_index, const uint32_t child_num, descriptor_type_t* deduced_type, char** output, |
394 | 393 | const char** errmsg) |
395 | 394 | { |
@@ -430,7 +429,7 @@ bool descriptor_to_address(const char* name, const descriptor_data_t* descriptor |
430 | 429 | // On success output must be freed |
431 | 430 | // NOTE: For miniscript expressions, the script generated is untyped bitcoin script. |
432 | 431 | // For descriptors, a scriptPubKey is generated. |
433 | | -bool descriptor_to_script(const char* name, const descriptor_data_t* descriptor, const uint32_t network_id, |
| 432 | +bool descriptor_to_script(const char* name, const descriptor_data_t* descriptor, const network_t network_id, |
434 | 433 | const uint32_t multi_index, const uint32_t child_num, descriptor_type_t* deduced_type, uint8_t** output, |
435 | 434 | size_t* output_len, const char** errmsg) |
436 | 435 | { |
@@ -470,7 +469,7 @@ bool descriptor_to_script(const char* name, const descriptor_data_t* descriptor, |
470 | 469 | return true; |
471 | 470 | } |
472 | 471 |
|
473 | | -bool descriptor_search_for_script(const char* name, const descriptor_data_t* descriptor, const uint32_t network_id, |
| 472 | +bool descriptor_search_for_script(const char* name, const descriptor_data_t* descriptor, const network_t network_id, |
474 | 473 | const uint32_t multi_index, uint32_t* child_num, const size_t search_depth, const uint8_t* script, |
475 | 474 | const size_t script_len) |
476 | 475 | { |
|
0 commit comments