Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Signer

General signing interface, can be used for in memory signing, RPC singing, external wallet, HSM, etc.

Hierarchy

Constructors

Methods

Constructors

constructor

Methods

Abstract publicKey

  • Returns public key for given account / network.

    Parameters

    • accountId: string

      accountId to retrieve from.

    • chainId: ChainId

      The targeted network. (ex. mainnet, testnet, etc…)

    Returns Promise<PublicKey>

Abstract sign

  • sign(message: Buffer, accountId: string, chainId: ChainId): Promise<Signature>
  • Signs given message, by first hashing with sha256.

    Parameters

    • message: Buffer

      message to sign.

    • accountId: string

      accountId to use for signing.

    • chainId: ChainId

      The targeted network. (ex. mainnet, testnet, etc…)

    Returns Promise<Signature>

Abstract signTransaction

Generated using TypeDoc