Serializer is an interface which wraps the Serialize function.
Serialize converts an identity to bytes. It returns an error on failure.
Signer is an interface which wraps the Sign method.
Sign signs message bytes and returns the signature or an error on failure.
SignerSerializer groups the Sign and Serialize methods.