Class NDKNip07Signer

NDKNip07Signer implements the NDKSigner interface for signing Nostr events with a NIP-07 browser extension (e.g., getalby, nos2x).

Hierarchy

  • NDKNip07Signer

Implements

Constructors

Properties

nip04Queue: Nip04QueueItem[] = []

Methods

  • Encrypts the given Nostr event for the given recipient.

    Parameters

    • recipient: NDKUser

      The recipient of the encrypted value.

    • value: string

      The value to be encrypted.

    Returns Promise<string>

  • Signs the given Nostr event.

    Parameters

    Returns Promise<string>

    The signature of the signed event.

    Throws

    Error if the NIP-07 is not available on the window object.

Generated using TypeDoc