Removing comments from NIP19 Parser

This commit is contained in:
Vitor Pamplona
2023-03-17 09:42:54 -04:00
parent 07cd1738f1
commit b12413cbff

View File

@@ -18,8 +18,6 @@ object Nip19 {
if (uri == null) return null
try {
println("Issue trying to Decode NIP19 $uri")
val matcher = nip19regex.matcher(uri)
matcher.find()
val uriScheme = matcher.group(1) // nostr:
@@ -27,8 +25,6 @@ object Nip19 {
val key = matcher.group(3) // bech32
val additionalChars = matcher.group(4) ?: "" // additional chars
println("Issue trying to Decode NIP19 Additional Chars $additionalChars")
val bytes = (type + key).bechToBytes()
val parsed = when (type.lowercase()) {
"npub1" -> npub(bytes)