Creates a Web Worker with Comlink to mine Nostr events in a separate thread, so mining does not freeze the UI.