I apologize im on mobile, and have only done this in Python.
Here is documentation for a rust library with javascript bindings: https://rust-nostr.org/nostr/04_00-event.html
It is a work in progress and documentation needs work...
Oh, this looks helpful! Lemme toy around with this.
reply