style: remote dup works

This commit is contained in:
kien6034 2024-06-12 21:01:43 +07:00
parent 69351e8b0f
commit ea8c6187d2
No known key found for this signature in database
GPG key ID: 6C36B30C35146F95

View file

@ -262,7 +262,7 @@ void test_exhaustive_sign(const secp256k1_context *ctx, const secp256k1_ge *grou
secp256k1_ecdsa_signature_load(ctx, &r, &s, &sig); secp256k1_ecdsa_signature_load(ctx, &r, &s, &sig);
/* Note that we compute expected_r *after* signing -- this is important /* Note that we compute expected_r *after* signing -- this is important
* because our nonce-computing function function might change k during * because our nonce-computing function might change k during
* signing. */ * signing. */
r_from_k(&expected_r, group, k); r_from_k(&expected_r, group, k);
CHECK(r == expected_r); CHECK(r == expected_r);
@ -335,7 +335,7 @@ void test_exhaustive_recovery_sign(const secp256k1_context *ctx, const secp256k1
secp256k1_ecdsa_recoverable_signature_convert(ctx, &sig, &rsig); secp256k1_ecdsa_recoverable_signature_convert(ctx, &sig, &rsig);
secp256k1_ecdsa_signature_load(ctx, &r, &s, &sig); secp256k1_ecdsa_signature_load(ctx, &r, &s, &sig);
/* Note that we compute expected_r *after* signing -- this is important /* Note that we compute expected_r *after* signing -- this is important
* because our nonce-computing function function might change k during * because our nonce-computing function might change k during
* signing. */ * signing. */
r_from_k(&expected_r, group, k); r_from_k(&expected_r, group, k);
CHECK(r == expected_r); CHECK(r == expected_r);