Private
Signs a message using the appropriate method based on the type of signer.
A promise resolving to the signature or error message.
If the signer type is invalid or unsupported.
Static
Signs a message using the appropriate method based on the type of signer.