New answers tagged

1

solved Script redeemScript = ScriptBuilder.createP2WPKHOutputScript(key); Script witnessScript = ScriptBuilder.createP2PKHOutputScript(key); TransactionSignature signature = tx.calculateWitnessSignature(inputIndex, key, witnessScript, txIn.getValue(), SigHash.ALL, false); txIn.setWitness(TransactionWitness.redeemP2WPKH(signature, key)); txIn....


Top 50 recent answers are included