mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
import { NostrEvent } from '@nostrify/nostrify';
|
|
import * as Comlink from 'comlink';
|
|
import { VerifiedEvent, verifyEvent } from 'nostr-tools';
|
|
|
|
import '@/nostr-wasm.ts';
|
|
|
|
export const VerifyWorker = {
|
|
verifyEvent(event: NostrEvent): event is VerifiedEvent {
|
|
return verifyEvent(event);
|
|
},
|
|
};
|
|
|
|
Comlink.expose(VerifyWorker);
|