CCC Docs
    Preparing search index...

    Function signerFromSignature

    • Creates a signer from a signature.

      Parameters

      • client: Client

        The client instance.

      • signature: Signature

        The signature to create the signer from.

      • Optionalmessage: null | BytesLike

        The message that was signed.

      • ...addresses: (string | string[])[]

        The addresses to check against the signer.

      Returns Promise<undefined | Signer>

      The signer if the signature is valid and the addresses match, otherwise undefined.

      Error if the signature sign type is unknown.