A ContextSigner implementation that asks an extension for everything.

Implements

  • ContextSigner

Constructors

Properties

Methods

Constructors

  • 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

Properties

connection: ExtConnection
publicKey: Uint8Array
which: any

Methods

  • Returns Uint8Array

  • Parameters

    • context: string
    • message: Uint8Array

    Returns Promise<Uint8Array>

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

    Returns Promise<ExtContextSigner>