Skip to content

Add low_r signature grinding #1388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

devrandom
Copy link
Member

@devrandom devrandom commented Mar 25, 2022

default on, can be turned off via a feature gate

Fixes #1387

default on, can be turned off via a feature gate
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2022

Codecov Report

Merging #1388 (8d7b38f) into main (216225c) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1388      +/-   ##
==========================================
+ Coverage   90.82%   90.84%   +0.02%     
==========================================
  Files          73       73              
  Lines       41245    42497    +1252     
  Branches    41245    42497    +1252     
==========================================
+ Hits        37460    38606    +1146     
- Misses       3785     3891     +106     
Impacted Files Coverage Δ
lightning/src/ln/channel.rs 88.78% <ø> (-0.43%) ⬇️
lightning/src/chain/keysinterface.rs 93.58% <100.00%> (ø)
lightning/src/ln/chan_utils.rs 95.51% <100.00%> (ø)
lightning/src/ln/channelmanager.rs 87.27% <100.00%> (+2.41%) ⬆️
lightning/src/util/crypto.rs 100.00% <100.00%> (ø)
lightning/src/util/events.rs 30.75% <0.00%> (-2.47%) ⬇️
lightning/src/ln/functional_tests.rs 97.45% <0.00%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 216225c...8d7b38f. Read the comment docs.

Copy link
Contributor

@arik-so arik-so left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks!

@arik-so arik-so merged commit 6176e2f into lightningdevkit:main Mar 25, 2022
@valentinewallace
Copy link
Contributor

It looks like this PR introduced a buncha warnings in CI, FWIW

@devrandom
Copy link
Member Author

@valentinewallace I don't quite see how these changes would result in those warnings. I assume you mean in channel.rs?

@valentinewallace
Copy link
Contributor

@devrandom Yeah, I'm not sure how either, I just see that the warnings appear on this PR's merge. I see them in "Test on Rust stable with net-tokio" but they may be elsewhere too

@devrandom
Copy link
Member Author

Oh, I know, that's in the mod tests. One of the tests is only compiled in when grinding is off, because it hardcodes the check of a bunch of signatures.

@devrandom
Copy link
Member Author

hmm... that test is a bit of a pain. perhaps we can have it skip the signatures when comparing?

@devrandom
Copy link
Member Author

@TheBlueMatt since you wrote test_commitment! - how do you feel about skipping the comparison of the signature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grind signatures to low-r value
5 participants