improve explanation of NUMS derivation of H and J#42
Conversation
|
@tromp @ignopeverell @yeastplume Any idea what's going on with this reversed byte order in J? |
|
I didn't review this code. Forwarding to Jasper, who should know more...
… Did we mess something up with endianness? Or is this expected?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@antiochp @tromp This is the internal representation of a public key in |
|
@johnzweng Thank you for verifying and checking these points. The expanded documentation on the derivation is also very helpful! 👍 |
|
@jaspervdm My pleasure. Glad I could help. :-) |
|
And the PR got the number 42.. 😄 🎉 |
|
Another small thought regarding the different notation of Why is the declaration of I am not that familiar with C code or the secp256k1-zkp library but naively I would have assumed that all 3 generator points are used in a similiar fashion (namely EC point multiplication).
and What is the difference between Please bear with me if I got something wrong, or I miss some important points here as I am not a C programmer. 🙂 Also it seems to work correctly like it is. This was just curiosity. 🙂 |
|
Merged the improvement as it was good in itself. Don't let that stop the discussion though. |
Improve documentation on how the generator points have been dervied
This PR only changes comments in the
constants.rsfile.When I tried to understand if and how the generation points for Pedersen and Switch Commitments have been derived in a secure, nothing-up-my-sleeve (NUMS) way, I realized it would be helpful to have a better explanation in the comments.
As important properties of the commitment schemes only hold if these points are chosen transparently, I thought this should be better documented.
Let me know what you think about it, or if I should change something. 🙂