kernl API
    Preparing search index...

    Function createSigningConsent

    • The consent gate kernl puts in front of every signature it makes for an applet.

      Routine kinds pass without a prompt. A destructive kind (see isDestructiveKind) is described against the account's current version, from the event store or the network (see lookupReplaceable), and put to the user through host.presentConsent; the gate waits for the answer and nothing is signed unless it is yes. The summary's event is the unsigned draft: its id and sig are empty because signing has not happened yet.

      Parameters

      Returns SigningConsent

      The gate for createAuthHooks and the outbox service.

      const consent = createSigningConsent({ host, lookupBefore: lookupReplaceable(store), resolveApplet, pubkey: () => accounts.active?.pubkey });
      await consent('applet-1', { kind: 0, content: '{"name":"bob"}', tags: [] }); // asks the user first