-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
signrpc: add Schnorr signatures to sign and verify message #6722
signrpc: add Schnorr signatures to sign and verify message #6722
Conversation
@guggero Great. Will test the code when it's done. |
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.
LGTM 🍋
Straight forward diff, also super useful!
Only one stray question left as a comment
"signature: %v", err) | ||
} | ||
|
||
digest := chainhash.HashB(in.Msg) |
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.
Doesn't this need to conditionally double hash based on the msg expectation?
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.
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 don't think that's necessary. The double hashing is only needed by the remote signing setup (for signing a channel or node announcement) but we seem to be verifying it in a different way (not through the signer interface).
99fd293
to
c6fbf8a
Compare
c6fbf8a
to
98abaf2
Compare
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.
LGTM 👍
Replaces #6663.
Fixes #6656.
Thank you @ErikEk for starting this, needed to add an additional feature (Taproot key tweak), so I took over the PR.
All commits are still properly attributed to the original author.