We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5a8ca commit e61abb3Copy full SHA for e61abb3
lightning/src/offers/parse.rs
@@ -58,7 +58,8 @@ mod sealed {
58
59
let parsed = CheckedHrpstring::new::<NoChecksum>(encoded.as_ref())?;
60
let hrp = parsed.hrp();
61
- if (hrp.as_str() != Self::BECH32_HRP) && hrp.lowercase_char_iter().ne(Self::BECH32_HRP.chars()) {
+ // Compare the lowercase'd iter to allow for all-uppercase HRPs
62
+ if hrp.lowercase_char_iter().ne(Self::BECH32_HRP.chars()) {
63
return Err(Bolt12ParseError::InvalidBech32Hrp);
64
}
65
0 commit comments