Files
ditto/src/workers/verify.worker.ts
Alex Gleason 58ed1b111f Comlink alias
2024-05-01 15:55:56 -05:00

14 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);