Adds some documentation to make sure any NIP05 changes take into account that we are converting the entire json to lowercase.

This commit is contained in:
Vitor Pamplona 2023-05-28 16:24:37 -04:00
parent 300a70ce18
commit f298cc6f13

View File

@ -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) {