Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InMemorySigner

Signs using key store.

Hierarchy

Constructors

constructor

Properties

Readonly keyStore

keyStore: KeyStore

Methods

publicKey

  • Gets the existing public key for a given account

    Parameters

    • accountId: string

      The Minter account to assign a public key to

    • chainId: ChainId

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

    Returns Promise<PublicKey>

    Returns the public key or null if not found

sign

  • sign(message: Buffer, accountId: string, chainId: ChainId): Promise<Signature>
  • Parameters

    • message: Buffer

      A message to be signed, typically a serialized transaction

    • accountId: string

      the Minter account signing the message

    • chainId: ChainId

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

    Returns Promise<Signature>

signTransaction

toString

  • toString(): string
  • Returns string

Static fromKeyPair

  • Creates a single account Signer instance with account, network and keyPair provided.

    Parameters

    • accountId: string

      The Minter account to assign the key pair to

    • chainId: ChainId

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

    • keyPair: KeyPair

      The keyPair to use for signing

    Returns Promise<Signer>

Generated using TypeDoc