diff --git a/nip19/nip19.go b/nip19/nip19.go index 84e7d81..4d92b2c 100644 --- a/nip19/nip19.go +++ b/nip19/nip19.go @@ -30,7 +30,7 @@ func Decode(bech32string string) (prefix string, value any, err error) { if len(data) != 32 { return prefix, nil, fmt.Errorf("note should be 32 bytes (%d)", len(data)) } - return prefix, [32]byte(data[0:32]), nil + return prefix, nostr.ID(data[0:32]), nil case "npub": if len(data) != 32 { return prefix, nil, fmt.Errorf("npub should be 32 bytes (%d)", len(data))