Documentation
    Preparing search index...

    Function createIdentityService

    • Create an identity service that handles NIP-5D identity.* envelope messages.

      Supports the 9 read-only identity.* request types from @napplet/nap/identity. The two nostr-info queries (getPublicKey, getRelays) resolve through the caller-supplied signer; the remaining read-only queries resolve through optional host providers or return default/empty payloads with spec-correct envelope shapes so napplets always receive a result envelope.

      Parameters

      Returns ServiceHandler

      A ServiceHandler ready for runtime.registerService('identity', handler)

      import { createIdentityService } from '@kehto/services';

      const identity = createIdentityService({
      getSigner: () => mySignerAdapter,
      });
      runtime.registerService('identity', identity);