signBchTxOneInputUsingSchnorr

abstract fun signBchTxOneInputUsingSchnorr(txData: ByteArray, sigHashType: Int, inputIdx: Long, inputAmount: Long, prevoutScript: ByteArray, secret: ByteArray): ByteArray

Create a Schnorr signature for the passed transaction

Return

signature in binary format

Parameters

txData

transaction serialized for signing

sigHashType

signature hash algorithm selection

inputIdx

what input to sign

inputAmount

how many satoshis this input contains

prevoutScript

the input's constraint script