mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-10 18:50:14 +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))
|
result.Relays = append(result.Relays, string(v))
|
||||||
case TLVAuthor:
|
case TLVAuthor:
|
||||||
result.Author = hex.EncodeToString(v)
|
result.Author = hex.EncodeToString(v)
|
||||||
|
case TLVKind:
|
||||||
|
result.Kind = int(binary.BigEndian.Uint32(v))
|
||||||
default:
|
default:
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user