signToByteArray

Finalizes the signature computation and returns the result as a new ByteArray.