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.

Hierarchy

  • NDKNip46Backend

Constructors

Properties

debug: Debugger
handlers: {
    [method: string]: IEventHandlingStrategy;
} = ...

Type declaration

localUser?: NDKUser
ndk: default
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>

Generated using TypeDoc