mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
style: remote dup works
This commit is contained in:
parent
69351e8b0f
commit
ea8c6187d2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue