Add verifySignatureWorker

This commit is contained in:
Alex Gleason
2023-12-03 16:55:34 -06:00
parent e5d6c44437
commit bc3f4bc534
4 changed files with 25 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import { getActiveRelays } from '@/db/relays.ts';
import { type Event, RelayPool } from '@/deps.ts';
const allRelays = await getActiveRelays();
const pool = new RelayPool(allRelays);
const pool = new RelayPool(allRelays, { skipVerification: true });
/** Publish an event to the given relays, or the entire pool. */
function publish(event: Event, relays: string[] = allRelays) {