signTransaction

fun signTransaction(tx: iTransaction, sigHashType: ByteArray = byteArrayOf()): Int

Signs inputs of a transaction, modifying the passed transaction. If an input's script is not empty (implying it is already signed), the input is skipped. If an input does not have a Spendable a backingDestination it is skipped (we do not know the secret anyway). In this manner other algorithms can also sign their inputs within the same transaction.

Parameters

sigHashType

By default the sighashtype is ALL/ALL