abstract fun sign(message: Bytes): Bytes
Hashes data using the secret key of the identity.
message - the message to sign
message
UnsupportedOperationException - if the identity doesn't contain a secret key
UnsupportedOperationException
Return the signature