Make test_sig more robust#84
Conversation
|
I've assigned @tankyleo as a reviewer! |
tnull
left a comment
There was a problem hiding this comment.
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.
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
test_sigfails if the signature already contained a zero byte, atthe overwritten position, due to a hex <-> bytes conversion issue.
Fixes #83