Documentation
    Preparing search index...

    Interface ReplayDetector

    Replay detection engine. Tracks seen event IDs and validates timestamps.

    const detector = createReplayDetector();
    const reason = detector.check(event);
    if (reason !== null) { // reject event }
    interface ReplayDetector {
        check(event: NostrEvent): string | null;
        clear(): void;
    }
    Index

    Methods

    Methods