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

Hierarchy

Constructors

Methods

  • Creates new key and returns public key.

    Parameters

    • accountId: string

      accountId to retrieve from.

    • Optional networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<PublicKey>

  • Returns public key for given account / network.

    Parameters

    • Optional accountId: string

      accountId to retrieve from.

    • Optional networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<PublicKey>

  • Signs given message, by first hashing with sha256.

    Parameters

    • message: Uint8Array

      message to sign.

    • Optional accountId: string

      accountId to use for signing.

    • Optional networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<Signature>

Generated using TypeDoc