Function sanitizeSignature

  • Sanitizes an ECDSA signature by ensuring the 'v' value is either 27 or 28. Also ensures the signature has a '0x' prefix.

    Parameters

    • signature: `0x${string}`

      The hex signature to sanitize

    Returns Hex

    A properly formatted signature with correct 'v' value