Merge pull request #170 from mattn/fix/key-validate-npub-panic

key: fix panic in validate with npub input
This commit is contained in:
mattn
2026-07-15 06:02:36 +00:00
committed by GitHub
+1 -1
View File
@@ -214,7 +214,7 @@ Returns error if key is invalid, otherwise exits successfully.`,
ctx = lineProcessingError(ctx, "invalid npub: %s", err)
continue
}
tmp := data.([32]byte)
tmp := data.(nostr.PubKey)
pkBytes = tmp[:]
} else {
pkBytes, err = hex.DecodeString(pk)