Documentation
    Preparing search index...

    Interface NdrRuntimeLike

    Minimal structural subset of nostr-double-ratchet NdrRuntime.

    interface NdrRuntimeLike {
        close?(): void;
        getState?(): {
            currentDevicePubkey?: string
            | null;
            ownerPubkey?: string | null;
        };
        initForOwner?(ownerPubkey: string): Promise<unknown>;
        onSessionEvent(
            callback: (event: NdrRumorLike, from: string, meta?: unknown) => void,
        ): () => void;
        sendMessage(
            recipientPubkey: string,
            content: string,
            options?: unknown,
            ownerPubkey?: string,
        ): Promise<NdrRumorLike>;
        setupUser?(pubkey: string, ownerPubkey?: string): Promise<void>;
    }
    Index

    Methods

    • Returns { currentDevicePubkey?: string | null; ownerPubkey?: string | null }