kernl API
    Preparing search index...

    Function createRatchetMessagesProvider

    • The ratchet provider: double-ratchet sessions whose keys change with every message. Experimental; both sides need an app that speaks it. Specified by the nostr-double-ratchet draft.

      Parameters

      • deps: ProviderDeps

        Backend constructor and availability check supplied by the shell.

      Returns MessagingProvider

      A MessagingProvider with id ratchet.

      registry.register(createRatchetMessagesProvider({
      createBackend: () => ratchetAdapter,
      available: () => (runtime ? { available: true } : { available: false, reason: 'no-ratchet-runtime' }),
      }));