-
Notifications
You must be signed in to change notification settings - Fork 20
Make test_sig more robust
#84
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
Conversation
|
I've assigned @tankyleo as a reviewer! |
tnull
left a comment
There was a problem hiding this 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?
|
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. |
tankyleo
left a comment
There was a problem hiding this 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
tankyleo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY
test_sigfails if the signature already contained a zero byte, atthe overwritten position, due to a hex <-> bytes conversion issue.
Fixes #83