Skip to content

Commit 0e2fadb

Browse files
authored
fix: typos in secp256k1.c
1 parent 69b2192 commit 0e2fadb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/secp256k1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const secp256k1_context *secp256k1_context_no_precomp = &secp256k1_context_stati
7676

7777
/* Helper function that determines if a context is proper, i.e., is not the static context or a copy thereof.
7878
*
79-
* This is intended for "context" functions such as secp256k1_context_clone. Function which need specific
79+
* This is intended for "context" functions such as secp256k1_context_clone. Functions that need specific
8080
* features of a context should still check for these features directly. For example, a function that needs
8181
* ecmult_gen should directly check for the existence of the ecmult_gen context. */
8282
static int secp256k1_context_is_proper(const secp256k1_context* ctx) {
@@ -544,7 +544,7 @@ static int secp256k1_ecdsa_sign_inner(const secp256k1_context* ctx, secp256k1_sc
544544
break;
545545
}
546546
is_nonce_valid = secp256k1_scalar_set_b32_seckey(&non, nonce32);
547-
/* The nonce is still secret here, but it being invalid is is less likely than 1:2^255. */
547+
/* The nonce is still secret here, but it being invalid is less likely than 1:2^255. */
548548
secp256k1_declassify(ctx, &is_nonce_valid, sizeof(is_nonce_valid));
549549
if (is_nonce_valid) {
550550
ret = secp256k1_ecdsa_sig_sign(&ctx->ecmult_gen_ctx, r, s, &sec, &msg, &non, recid);

0 commit comments

Comments
 (0)