diff --git a/binary/hybrid.go b/binary/hybrid.go index d7e31ac..7c3e79a 100644 --- a/binary/hybrid.go +++ b/binary/hybrid.go @@ -50,7 +50,7 @@ func Unmarshal(data []byte, evt *nostr.Event) (err error) { func Marshal(evt *nostr.Event) ([]byte, error) { content := []byte(evt.Content) - buf := make([]byte, 32+32+64+4+2+2+len(content)+65536 /* blergh */) + buf := make([]byte, 32+32+64+4+2+2+len(content)+65536+len(evt.Tags)*40 /* blergh */) hex.Decode(buf[0:32], []byte(evt.ID)) hex.Decode(buf[32:64], []byte(evt.PubKey))