AppleSauce
    Preparing search index...

    Class AmberClipboardAccount<Metadata>

    An account for the amber clipboard api

    Type Parameters

    • Metadata extends unknown

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    abort: null | AbortController = null
    disableQueue?: boolean

    Disable request queueing

    id: string = ...
    lock: null | Promise<any> = null
    metadata$: BehaviorSubject<undefined | Metadata> = ...
    pubkey: string
    queueLength: number = 0

    internal queue

    type: "amber-clipboard"

    Accessors

    • get nip04(): | undefined
      | {
          decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
          encrypt: (pubkey: string, plaintext: string) => Promise<string>;
      }

      Returns
          | undefined
          | {
              decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
              encrypt: (pubkey: string, plaintext: string) => Promise<string>;
          }

    • get nip44(): | undefined
      | {
          decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
          encrypt: (pubkey: string, plaintext: string) => Promise<string>;
      }

      Returns
          | undefined
          | {
              decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
              encrypt: (pubkey: string, plaintext: string) => Promise<string>;
          }

    Methods

    • A method that wraps any signer interaction, this allows the account to wait for unlock or queue requests

      Type Parameters

      • T extends unknown

      Parameters

      • operation: () => Promise<T>

      Returns Promise<T>