Skip to content

Commit

Permalink
Adds some documentation to make sure any NIP05 changes take into acco…
Browse files Browse the repository at this point in the history
…unt that we are converting the entire json to lowercase.
  • Loading branch information
vitorpamplona committed May 28, 2023
1 parent 300a70c commit f298cc6
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -75,6 +75,9 @@ class Nip05Verifier() {
fetchNip05Json(
nip05,
onSuccess = {
// NIP05 usernames are case insensitive, but JSON properties are not
// converts the json to lowercase and then tries to access the username via a
// lowercase version of the username.
val nip05url = try {
mapper.readTree(it.lowercase())
} catch (t: Throwable) {
Expand Down

0 comments on commit f298cc6

Please sign in to comment.