Function verifySignature

  • Verifies a (message, signature) pair using any native chain's supported signature verification method.

    For certain chains (Cosmos), we also additionally need th epublicKey or else the function will fail.

    Parameters

    • chain: SupportedChain
    • address: string
    • message: string
    • signature: string
    • Optional publicKey: string

    Returns Promise<void>