kernl API
    Preparing search index...

    Interface SignerMessagingOptions

    What a signer-backed messaging backend needs from the shell. signer and selfPubkey are read on every call, so one backend follows the active account.

    const options: SignerMessagingOptions = {
    store: kernl.eventStore,
    pool: kernl.pool,
    tiers: kernl.relays,
    signer: () => kernl.accounts.active,
    selfPubkey: () => kernl.accounts.active?.pubkey,
    };
    interface SignerMessagingOptions {
        accountChanges?: Observable<unknown>;
        now?: () => number;
        pool: ApplesaucePool;
        selfPubkey: () => string | undefined;
        signer: () => ISigner | undefined;
        store: EventStore;
        tiers: RelayTiers;
    }

    Hierarchy (View Summary)

    Index
    accountChanges?: Observable<unknown>

    Emits when the active account changes, so the inbox follows it without waiting for the next call.

    now?: () => number

    Clock in Unix seconds. Defaults to the wall clock.

    selfPubkey: () => string | undefined

    The active account's public key, read on every call.

    signer: () => ISigner | undefined

    The active account's signer, read on every call. The only key holder the backend uses.

    store: EventStore

    The shell's event store; inbox relay lists are read from it.

    tiers: RelayTiers