Skip to content

Trivial #1910 Followups #1931

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

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

TheBlueMatt
Copy link
Collaborator

Followups from the last round of review at #1910 (review)

9d7bb73 moved some code around
unnecessarily, which we fix here.
9d7bb73 broke some capitalization
in docs for `sign_invoice`, which we fix here as well as taking
this opportunity to clean up the `sign_invoice` docs more
generally.
/// By parameterizing by the raw invoice bytes instead of the hash, we allow implementors of
/// this trait to parse the invoice and make sure they're signing what they expect, rather than
/// blindly signing the hash.
/// The hrp is ascii bytes, while the invoice data is base32.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really curious how the hell this happened, considering I copied and pasted. My guess is a commit after opening the PR that I intermittently hadn't rebased on.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there were multiple places in the code that had the same comment, the diff showed it twice, but I couldn't really figure it out. Either way clearly the capitalized (and tick'd) version is better.

@arik-so arik-so merged commit c04d1c9 into lightningdevkit:main Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants