Skip to content

Commit 26438eb

Browse files
committed
docs: clarify signature type values
1 parent 12ab3fa commit 26438eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/wally_transaction.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ extern "C" {
5151
#define WALLY_SIGHASH_MASK 0x1f /* Mask for determining ALL/NONE/SINGLE */
5252
#define WALLY_SIGHASH_TR_IN_MASK 0xc0 /* Taproot mask for determining input hash type */
5353

54-
/*** tx-sighash-type Transaction signature hash flags */
54+
/*** tx-sig-type Transaction signature type flags */
5555
#define WALLY_SIGTYPE_PRE_SW 0x1 /* Pre-segwit signature hash */
5656
#define WALLY_SIGTYPE_SW_V0 0x2 /* Segwit v0 signature hash */
5757
#define WALLY_SIGTYPE_SW_V1 0x3 /* Segwit v1 (taproot) signature hash */
58-
#define WALLY_SIGTYPE_MASK 0xf /* Mask for signature hash in signature hash flags */
58+
#define WALLY_SIGTYPE_MASK 0xf /* Mask for signature type in flags */
5959

6060
#define WALLY_TX_ASSET_CT_EMPTY_PREFIX 0x00
6161
#define WALLY_TX_ASSET_CT_EXPLICIT_PREFIX 0x01
@@ -910,7 +910,7 @@ WALLY_CORE_API int wally_tx_get_signature_hash(
910910
*| be `SHA256_LEN` or 0.
911911
* :param sighash: ``WALLY_SIGHASH_`` flags specifying the sighash flags
912912
*| to sign with.
913-
* :param flags: :ref:`tx-sighash-type` controlling signature hash generation.
913+
* :param flags: :ref:`tx-sig-type` controlling signature hash generation.
914914
* :param cache: An opaque cache for faster generation, or NULL to disable
915915
*| caching. Must be empty on the first call to this function for a given
916916
*| transaction, and only used for signing the inputs of the same ``tx``.

0 commit comments

Comments
 (0)