Skip to content

Commit b2cde0e

Browse files
author
Lawrence Nahum
committed
Revert "don't expose a implementation specific symbol"
This reverts commit 2e1f99d. Fixes issue !95
1 parent f7dba55 commit b2cde0e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/wally.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ WALLY_FN_P_P(bip32_key_from_base58, bip32_key_from_base58)
444444
WALLY_FN_P_P(tx_get_total_output_satoshi, wally_tx_get_total_output_satoshi)
445445
WALLY_FN_S_S(tx_vsize_from_weight, wally_tx_vsize_from_weight)
446446

447-
inline struct secp256k1_context *get_secp_context() {
447+
inline struct secp256k1_context_struct *get_secp_context() {
448448
return ::wally_get_secp_context();
449449
}
450450

include/wally_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ WALLY_CORE_API int wally_cleanup(uint32_t flags);
5151
*
5252
* The context is created on demand.
5353
*/
54-
struct secp256k1_context *wally_get_secp_context(void);
54+
struct secp256k1_context_struct *wally_get_secp_context(void);
5555
#endif
5656

5757
/**

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const secp256k1_context *secp_ctx(void)
2424
}
2525

2626
#ifndef SWIG
27-
struct secp256k1_context *wally_get_secp_context(void)
27+
struct secp256k1_context_struct *wally_get_secp_context(void)
2828
{
29-
return (struct secp256k1_context *)secp_ctx();
29+
return (struct secp256k1_context_struct *)secp_ctx();
3030
}
3131
#endif
3232

0 commit comments

Comments
 (0)