@oasisprotocol/client-ext-utils
    Preparing search index...

    Class ExtContextSigner

    A ContextSigner implementation that asks an extension for everything.

    Implements

    • ContextSigner
    Index
    • We need the public key to construct this synchronously. Use request to ask the extension for the public key automatically.

      Parameters

      • connection: ExtConnection
      • which: any

        An extra parameter, suggested to be used to help select which key to use. This library passes it through verbatim; it's up to the extension to define how it's interpreted.

      • publicKey: Uint8Array

      Returns ExtContextSigner

    connection: ExtConnection
    publicKey: Uint8Array
    which: any
    • Returns Uint8Array

    • Parameters

      • context: string
      • message: Uint8Array

      Returns Promise<Uint8Array>