witnessHtlcSuccess

fun witnessHtlcSuccess(localSig: ByteVector64, remoteSig: ByteVector64, paymentPreimage: ByteVector32, htlcOfferedScript: ByteVector): ScriptWitness

This is the witness script of the 2nd-stage HTLC Success transaction (consumes htlcOffered script from commit tx) local signature is created with SIGHASH_ALL flag remote signature is created with SIGHASH_SINGLE || SIGHASH_ANYONECANPAY