Class NDKNip46Backend

This class implements a NIP-46 backend, meaning that it will hold a private key of the npub that wants to be published as.

This backend is meant to be used by an NDKNip46Signer, which is the class that should run client-side, where the user wants to sign events from.

Constructors

Properties

debug: Debugger
handlers: {
    [method: string]: IEventHandlingStrategy;
} = ...
localUser?: NDKUser
ndk: default
relayUrls: string[]
signer: NDKSigner

Methods

  • Overload this method to apply tokens, which can wrap permission sets to be applied to a pubkey.

    Parameters

    • pubkey: string

      public key to apply token to

    • token: string

      token to apply

    Returns Promise<void>