From 53e093530839b5df9573a406a38f37e427ab1f5f Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 4 May 2023 08:24:39 -0300 Subject: [PATCH] parse kind in nevent. --- nip19/nip19.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nip19/nip19.go b/nip19/nip19.go index 52e193e..b66b012 100644 --- a/nip19/nip19.go +++ b/nip19/nip19.go @@ -74,6 +74,8 @@ func Decode(bech32string string) (prefix string, value any, err error) { result.Relays = append(result.Relays, string(v)) case TLVAuthor: result.Author = hex.EncodeToString(v) + case TLVKind: + result.Kind = int(binary.BigEndian.Uint32(v)) default: // ignore }