kernl API
    Preparing search index...

    Function permissionPrincipalFor

    • The identity kehto's firewall knows an applet by: its catalogue id, which rules follow across versions, and the hash of the exact code, which stored answers are tied to. Both come from the verified manifest, never from anything the applet sent.

      Parameters

      • summary: Pick<AppletSummary, "identity" | "manifest">

        A summary this shell verified.

      Returns PermissionPrincipal

      The principal to register with the applet's session.

      permissionPrincipalFor(summary); // { kind: 'verified', manifestKey: 'nip5d:35129:…:notes', artifactHash: '…' }