I am trying to publish an event on #nostr but receiving an error "unable to serialize event". It's something to do with my 'sig'...
Any nostrs out there that can help?

I am trying to publish an event on #nostr but receiving an error "unable to serialize event". It's something to do with my 'sig'...
Any nostrs out there that can help?

Make sure your pub key is hex and I think hashtags go into tags like so:
tags: [“t”,”nostr”]
Thanks, Mabbus!
Tweaked the keys but still having trouble with the sig, which states the property is undefined. The getPublicKey() should return a hex which I’m using in the signEvent() function.