-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add debug print for intermediate values #200
Conversation
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.
I like the idea of adding debug prints, but readability is arguably worse. How about instead of # print("bla")
we define a function debug_print(...)
that takes an array, and prints every element if global variable DEBUG is set to true? This should reduce the number of lines and avoids having to uncomment line-by-line to have debug output.
That sounds reasonable. |
and make reference code and pseudocode more consistent with each other
This is better for playing around with the code. Now these these exceptions can really be raised when the verification during signing fails.
fixed, and added another commit that improves checking of the test vectors |
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.
ACK
ACK |
solves #188
Tell me if I overdid it. But I think it's still readable, in particular if you have syntax highlighting and the comments are displayed differently.
This also adjusts the variables to match the BIP text.
I should have based this on top of #196, sorry. Let's first get #196 merged and I can rebase.