Skip to content

Conversation

TheBlueMatt
Copy link
Member

No description provided.

When calling `instructions.to_lowercase().rfind("lnurl")` and then
using the resulting value as a slice index in `instructions`, we
implicitly assume that any unicode lowercasing will not change the
length of any characters. That's probably fine in practice, but it
seems like a weird assumption to make, so instead we swap it for
`to_ascii_lowercase`.
If we have a bitcoin: URI like `bitcoin:thing?lnurl=LNURL...` we
really shouldn't use the LNURL override to only resolve the
instructions as LNURL. Instead, we fall back to normal URI parsing.
@benthecarman
Copy link
Contributor

Lgtm

@TheBlueMatt TheBlueMatt merged commit 0e9af05 into rust-bitcoin:main Jul 2, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants