|
|
|
|
|
by edsouza
3407 days ago
|
|
I rather actually see a real comment if there is no time to create a unit test. Why does changing ZQ_PEDERSEN to ZQ_WILLIAMSON fix the bug? Having meaningful named constants would make much more sense. Edit: On full view of the code, the bug could be avoid if they broke out the if <demoninationX> blocks into their own function, and to prevent "typo" errors, it would be good to have a local variable named current_demoniation = demoniationX, and then reference that local variable instead of referencing the constant everytime. |
|
From this presentation[1] or the source code[2]:
But yes, those are meaningless names in themselves. Metric prefixes like "hectobitcoin" would be better.[1]: https://sar.informatik.hu-berlin.de/teaching/2013-w/2013-w%2... [2]: https://github.com/Zerocoin/libzerocoin/blob/master/Coin.h#L...