This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { z } from 'zod' | |
import { schnorr } from '@noble/curves/secp256k1' | |
import { sha256 } from '@noble/hashes/sha256' | |
import { WebSocket, WebSocketServer } from 'ws' | |
/* ================ [ Configuration ] ================ */ | |
const SERVER_PORT = 8002 // Port to use for the server. | |
const PURGE_IVAL = 600 // Interval to purge events (in seconds). |