Repository navigation
Replies: 1 comment
|
已经解决 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Redeem P2WSH and generate PSBT. I don't know where the configuration is wrong. Every time it returns: # wallet.core.jni.proto.Bitcoin$SigningOutput@9b66cb9
error: Error_script_redeem
error_value: 11
private fun signBitcoinTransaction_p2wsh(wallet: HDWallet?, path: String, txData: Map<String, Any>,coinType: CoinType,pk: PrivateKey?): String? {
val privateKey: PrivateKey
if(pk==null){
privateKey = wallet!!.getKey(coinType, path)
}else{
privateKey=pk
}
val utxos: List<Map<String, Any>> = txData["utxo"] as List<Map<String, Any>>
val amount:Long = (txData["amount"] as Number).toLong()
val useMaxAmount: Boolean = txData["max"] as Boolean
}
All reactions