Implement the function verify_relayable_signature to verify the authenticity of signed XML documents. The function is intended to confirm that the claimed author indeed generated a given message by validating its signature against the provided public key.
Expected input behavior:
public_key: A string representation of a public RSA key.
doc: The XML document that was signed, expected to be in a format compatible with the hashing process to create the signature hash.
signature: A base64-encoded string of the digital signature to verify against the hash of doc.
Expected output behavior:
The function should return True if the signature is valid (i.e., the signature corresponds to the provided document and public key), and False if the signature is invalid.
Edge cases to handle:
The function should be able to handle scenarios where the public_key is malformed or of incorrect type (e.g., not a string).
It should also handle cases where the signature provided is not correctly base64 encoded.
Ensure that the function raises appropriate exceptions for invalid input types (like None or unexpected data types).
Note: The solution should be placed in /app/solution.py and the function must be importable as: from solution import verify_relayable_signature.