mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-10 02:30:15 +02:00
parse kind in nevent.
This commit is contained in:
parent
6fc1627fcc
commit
53e0935308
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user