Skip to content

Conversation

@TheBlueMatt
Copy link
Contributor

@TheBlueMatt TheBlueMatt commented Jan 20, 2026

test_sig fails if the signature already contained a zero byte, at
the overwritten position, due to a hex <-> bytes conversion issue.

Fixes #83

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 20, 2026

I've assigned @tankyleo as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Mind adding a test fixture for such a case that would fail before and now passes?

@TheBlueMatt
Copy link
Contributor Author

Not quite sure what you're asking for? You want me to refactor the test to take a private key so that we can add a test of the test?

@tnull
Copy link
Contributor

tnull commented Jan 20, 2026

Not quite sure what you're asking for? You want me to refactor the test to take a private key so that we can add a test of the test?

Lol, nevermind, I misunderstood what was happening here.

Copy link
Contributor

@tankyleo tankyleo left a comment

Choose a reason for hiding this comment

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

test_sig fails if the signature already contained two zero bytes, which is apparently less rare than we thought.

We were previously overwriting just a single byte, but good to go thank you

`test_sig` fails if the signature already contained a zero byte, at
the overwritten position, due to a hex <-> bytes conversion issue.

Fixes lightningdevkit#83
Copy link
Contributor

@tankyleo tankyleo left a comment

Choose a reason for hiding this comment

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

TY

@tankyleo tankyleo merged commit 803d8c5 into lightningdevkit:main Jan 20, 2026
2 checks passed
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.

signature::tests::test_sig is unstable

4 participants