-
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
lnrpc: add tagged hash option to signer.SignMessage/VerifyMessage rpcs #8106
lnrpc: add tagged hash option to signer.SignMessage/VerifyMessage rpcs #8106
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.
Thanks so much for this! This will be super useful for signing future gossip messages too 💪
b50b879
to
1ee0a8b
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.
Really nice! Just a few nits from my side. Other than those, LGTM!
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.
Looks good, pending @ellemouton's and my nits.
Since this is security related, I'm going to pull in @Crypt-iQ as well. Just to make sure we don't allow the user to shoot themselves in the foot with this.
a1d189c
to
c28e329
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 once release notes fixed 🏎️
c28e329
to
7ca96a6
Compare
Thanks for the reviews :) Fixed those nits and the release notes problem |
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.
Very nice! 🔥
Adds an option to the signrpc.SignMessage rpc to sign a tagged hash of a message. Adds the same option to VerifyMessage so the signature can be properly verified. Replaces #8098.