Skip to content

Commit 00af4de

Browse files
longhutianjiejgriffiths
authored andcommitted
chore: fix some typos in comment
Signed-off-by: longhutianjie <[email protected]>
1 parent 2eb1742 commit 00af4de

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/psbt_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
/* Input PSBT/PSET fields that must *not* be present in v2 */
196196
#define PSBT_IN_DISALLOWED_V2 ((uint64_t)0)
197197

198-
/* Input PSET fields that are trivially mergable, i.e. can be
198+
/* Input PSET fields that are trivially mergeable, i.e. can be
199199
* copied when merging if missing the the destination input. */
200200
#define PSET_IN_MERGEABLE (PSET_FT(PSET_IN_ISSUANCE_VALUE_RANGEPROOF) | \
201201
PSET_FT(PSET_IN_ISSUANCE_INFLATION_KEYS_RANGEPROOF) | \

src/sign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ int wally_ec_sig_from_bytes_aux(const unsigned char *priv_key, size_t priv_key_l
388388

389389
return WALLY_OK;
390390
}
391-
/* Incremement nonce to grind for low-R */
391+
/* Increment nonce to grind for low-R */
392392
entropy_p = extra_entropy;
393393
++counter;
394394
uint32_to_le_bytes(counter, entropy_p);

src/test/test_anti_exfil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_anti_exfil(self):
7373
for args in [
7474
(None, 32, msg, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Missing pubkey
7575
(pub_key, 31, msg, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Incorrect pubkey length
76-
(inv_pub, 32, msg, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Invalud pubkey
76+
(inv_pub, 32, msg, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Invalid pubkey
7777
(pub_key, 32, None, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Missing message
7878
(pub_key, 32, msg, 31, entropy, 32, signer_commitment, 33, flags, sig, 64), # Incorrect message length
7979
(pub_key, 32, inv_msg, 32, entropy, 32, signer_commitment, 33, flags, sig, 64), # Invalid message

src/test/test_sign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_recoverable_sig(self):
279279

280280
for args in [
281281
(None, 32, out1, 65, pub_key, 33), # Missing message
282-
(msg, 31, out1, 65, pub_key, 33), # Incorrect messsage length
282+
(msg, 31, out1, 65, pub_key, 33), # Incorrect message length
283283
(msg, 32, None, 65, pub_key, 33), # Missing signature
284284
(msg, 32, out1, 64, pub_key, 33), # Incorrect signature length
285285
(msg, 32, out1, 65, None, 33), # Missing pubkey

src/tx_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ static void txio_bip341_init(cursor_io *io,
775775
const struct wally_map_item *item = NULL;
776776
item = wally_map_get_integer(io->cache, TXIO_SHA_TAPSIGHASH_CTX);
777777
if (item) {
778-
/* Note we cached the intial sha256_ctx itself here and so memcpy it */
778+
/* Note we cached the initial sha256_ctx itself here and so memcpy it */
779779
memcpy(&io->ctx, item->value, item->value_len);
780780
return;
781781
}

0 commit comments

Comments
 (0)