Skip to content

Enforces sig_rec length in message_signing #1010

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
Jul 20, 2021

Conversation

sr-gi
Copy link
Contributor

@sr-gi sr-gi commented Jul 20, 2021

Enforces signature length to be 65-bytes long in message_signing::sig_rec (64 bytes for the compact signature + 1 byte for the recovery id).

close #1005

@codecov
Copy link

codecov bot commented Jul 20, 2021

Codecov Report

Merging #1010 (8a1c538) into main (1f1d7c6) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1010      +/-   ##
==========================================
- Coverage   90.76%   90.76%   -0.01%     
==========================================
  Files          60       60              
  Lines       30909    30911       +2     
==========================================
- Hits        28056    28055       -1     
- Misses       2853     2856       +3     
Impacted Files Coverage Δ
lightning/src/util/message_signing.rs 91.66% <50.00%> (-1.44%) ⬇️
lightning/src/ln/functional_tests.rs 97.33% <0.00%> (-0.04%) ⬇️

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 1f1d7c6...8a1c538. Read the comment docs.

@sr-gi sr-gi force-pushed the enforce_signature_length branch from e060304 to 8a1c538 Compare July 20, 2021 09:41
Copy link

@ariard ariard left a comment

Choose a reason for hiding this comment

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

SGTM 8a1c538

@TheBlueMatt TheBlueMatt merged commit ef4bfdc into lightningdevkit:main Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

message_signing::sigrec_decode panics for 0-length signatures
3 participants