Skip to content

Commit afa8167

Browse files
committed
tx: mark the old signature hash generation APIs as deprecated
1 parent 17198ee commit afa8167

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/wally_transaction.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,9 @@ WALLY_CORE_API int wally_tx_get_total_output_satoshi(
772772
/**
773773
* Get the hash of the preimage for signing a BTC transaction input.
774774
*
775+
* Deprecated, this call will be removed in a future release. Please
776+
* use ``wally_tx_get_input_signature_hash``.
777+
*
775778
* :param tx: The transaction to generate the signature hash from.
776779
* :param index: The input index of the input being signed for.
777780
* :param script: The (unprefixed) scriptCode for the input being signed.
@@ -798,6 +801,9 @@ WALLY_CORE_API int wally_tx_get_btc_signature_hash(
798801
/**
799802
* Get the hash of the preimage for signing a BTC taproot transaction input.
800803
*
804+
* Deprecated, this call will be removed in a future release. Please
805+
* use ``wally_tx_get_input_signature_hash``.
806+
*
801807
* :param tx: The transaction to generate the signature hash from.
802808
* :param index: The input index of the input being signed for.
803809
* :param scripts: Map of input index to (unprefixed) scriptCodes for each input in ``tx``.
@@ -834,6 +840,9 @@ WALLY_CORE_API int wally_tx_get_btc_taproot_signature_hash(
834840
/**
835841
* Get the hash of the preimage for signing a BTC transaction input.
836842
*
843+
* Deprecated, this call will be removed in a future release. Please
844+
* use ``wally_tx_get_input_signature_hash``.
845+
*
837846
* :param tx: The transaction to generate the signature hash from.
838847
* :param index: The input index of the input being signed for.
839848
* :param script: The (unprefixed) scriptCode for the input being signed.
@@ -1362,6 +1371,9 @@ WALLY_CORE_API int wally_tx_confidential_value_to_satoshi(
13621371
/**
13631372
* Get the hash of the preimage for signing an Elements transaction input.
13641373
*
1374+
* Deprecated, this call will be removed in a future release. Please
1375+
* use ``wally_tx_get_input_signature_hash``.
1376+
*
13651377
* :param tx: The transaction to generate the signature hash from.
13661378
* :param index: The input index of the input being signed for.
13671379
* :param script: The (unprefixed) scriptCode for the input being signed.

0 commit comments

Comments
 (0)