-
Notifications
You must be signed in to change notification settings - Fork 207
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
Strengthen MuSig nonce gen by feeding addresses of args #152
Comments
I like it. The address will maybe only have five or ten bits of entropy ... but to prevent lattice attacks in practice you pretty-much only need one (assuming your nonce, aside from being reused, is pretty high-entropy :)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The musig nonce function looks as follows:
There's a chance that if this nonce function is accidentally called twice with the same argument values, the argument pointers store different addresses. Thus, we could hash these locations like this:
However, it should be possible to test the nonce function without this, to make sure that different values are sufficient to produce a different hash.
This idea was originally brought up by @elichai.
The text was updated successfully, but these errors were encountered: