Skip to content

Commit 3ae56f3

Browse files
committed
docs: fix some incorrect psbt parameter documentation
1 parent e1c9df4 commit 3ae56f3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/wally_psbt.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,7 @@ WALLY_CORE_API int wally_psbt_input_get_pegin_genesis_blockhash_len(
753753
*
754754
* :param input: The input to update.
755755
* :param genesis_blockhash: The peg-in genesis blockhash.
756-
* :param genesis_blockhash_len: Size of ``genesis_blockhash`` in bytes. Must
757-
*| be `WALLY_TXHASH_LEN`.
756+
* :param genesis_blockhash_len: Size of ``genesis_blockhash`` in bytes. Must be `SHA256_LEN`.
758757
*/
759758
WALLY_CORE_API int wally_psbt_input_set_pegin_genesis_blockhash(
760759
struct wally_psbt_input *input,
@@ -2247,7 +2246,7 @@ WALLY_CORE_API int wally_psbt_get_input_signing_script_len(
22472246
* :param psbt: The PSBT containing the input to get from.
22482247
* :param index: The zero-based index of the input to get the script from.
22492248
* :param bytes_out: Destination for the scriptPubKey or redeem script.
2250-
* :param len: Length of ``bytes`` in bytes.
2249+
* :param len: Length of ``bytes_out`` in bytes.
22512250
* :param written: Destination for the number of bytes written to bytes_out.
22522251
*/
22532252
WALLY_CORE_API int wally_psbt_get_input_signing_script(
@@ -2281,7 +2280,7 @@ WALLY_CORE_API int wally_psbt_get_input_scriptcode_len(
22812280
* :param script: scriptPubKey/redeem script from `wally_psbt_get_input_signing_script`.
22822281
* :param script_len: Length of ``script`` in bytes.
22832282
* :param bytes_out: Destination for the scriptCode.
2284-
* :param len: Length of ``bytes`` in bytes.
2283+
* :param len: Length of ``bytes_out`` in bytes.
22852284
* :param written: Destination for the number of bytes written to bytes_out.
22862285
*/
22872286
WALLY_CORE_API int wally_psbt_get_input_scriptcode(
@@ -2421,7 +2420,7 @@ WALLY_CORE_API int wally_psbt_get_length(
24212420
* :param psbt: the PSBT to serialize.
24222421
* :param flags: Flags controlling serialization. Must be 0.
24232422
* :param bytes_out: Destination for the serialized PSBT.
2424-
* :param len: Length of ``bytes`` in bytes (use `wally_psbt_get_length`).
2423+
* :param len: Length of ``bytes_out`` in bytes (use `wally_psbt_get_length`).
24252424
* :param written: number of bytes written to bytes_out.
24262425
*/
24272426
WALLY_CORE_API int wally_psbt_to_bytes(

0 commit comments

Comments
 (0)