signTransaction

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

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 or the Spendable has no backingDestination, the backingDestination is populated if it is from this wallet. If the backingDestination cannot be populated, the input is not signed (we do not know the secret) In this manner other algorithms can also sign their inputs within the same transaction.

Parameters

sigHashType

By default the sighashtype is ALL/ALL