From f1de27c88cb4549df7b995019154589889b66f81 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 15 Jul 2026 09:25:23 +0900 Subject: [PATCH] key: fix panic in validate with npub input, nip19.Decode returns a nostr.PubKey not a bare [32]byte. --- key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key.go b/key.go index fd33b5e..02cb7aa 100644 --- a/key.go +++ b/key.go @@ -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)