Function checkPrivateKeyFormat

  • Checks that the input matches the proper format for a private key, as given by PRIVATE_KEY_REGEX.

    Parameters

    • privateKey: string

      the string to check

    Returns string

    the unmodified input, for easy chaining

    Throws

    TypeError if the format doesn't match

Generated using TypeDoc