Interface NDKSigner

Interface for NDK signers.

Hierarchy

  • NDKSigner

Implemented by

Methods

  • Blocks until the signer is ready and returns the associated NDKUser.

    Returns Promise<NDKUser>

    A promise that resolves to the NDKUser instance.

  • 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>

    A promise that resolves to the signature of the signed event.

Generated using TypeDoc