Interface ISigner<T, V>

Interface of a Signer that PureFI main class relies on

PureFI.setSigner expects an instance that implements this interface as a parameter

It's used behind the scenes to sign messages within PureFI.checkRisk and PureFI.downloadReport methods

interface ISigner<T = any, V = any> {
    signMessage: (message: T) => Promise<V>;
    getAddress: () => Promise<string>;
}

Type Parameters

  • T = any
  • V = any

Properties

signMessage: (message: T) => Promise<V>

Type declaration

    • (message: T): Promise<V>
    • Parameters

      • message: T

        Message to sign

        In our scenarios it must be stringified Array<PureFIAddress>

      Returns Promise<V>

getAddress: () => Promise<string>

Type declaration

    • (): Promise<string>
    • Returns Promise<string>