mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-26 09:44:25 +01:00
14 lines
330 B
TypeScript
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);
|