Skip to content

Add VerifyLowS helper function to ECDSA signature#2463

Open
MPins wants to merge 2 commits intobtcsuite:masterfrom
MPins:master
Open

Add VerifyLowS helper function to ECDSA signature#2463
MPins wants to merge 2 commits intobtcsuite:masterfrom
MPins:master

Conversation

@MPins
Copy link
Copy Markdown

@MPins MPins commented Nov 18, 2025

Fix #2462

Add VerifyLowS helper function to ECDSA signature. It will be used on lightningnetwork/lnd#10372.

Copy link
Copy Markdown

@GustavoStingelin GustavoStingelin left a comment

Choose a reason for hiding this comment

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

It would be good to add unit tests covering the VerifyLowS function.

@MPins
Copy link
Copy Markdown
Author

MPins commented Dec 23, 2025

Thanks @GustavoStingelin for the review — tests have been added.

Copy link
Copy Markdown

@GustavoStingelin GustavoStingelin left a comment

Choose a reason for hiding this comment

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

Could rename the table test fields to be more readable

@MPins
Copy link
Copy Markdown
Author

MPins commented Dec 29, 2025

@GustavoStingelin thanks for the review. Comments addressed.

Copy link
Copy Markdown

@GustavoStingelin GustavoStingelin left a comment

Choose a reason for hiding this comment

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

Cool, LGTM! 🚀

@Roasbeef Roasbeef added this to the v0.25.1 milestone Mar 10, 2026
@gijswijs
Copy link
Copy Markdown
Collaborator

Only needs a rebase.

MPins added 2 commits March 25, 2026 16:11
Introduce a VerifyLowS helper to detect non-canonical
high-S ECDSA signatures, along with unit tests.
@MPins
Copy link
Copy Markdown
Author

MPins commented Mar 25, 2026

@gijswijs rebase done.

@saubyk saubyk requested a review from gijswijs March 25, 2026 19:23
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.

[feature]: add VerifyLowS helper function in btcec for ECDSA signatures

4 participants