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