Hot answers tagged

2

Your redeemScript contains the length byte for it. The redeemScript is really just a script without any prepended length byte. So for your script, it is 522103e07f96e5ba598431c0c994493a4ae988c9854c171d5d4bb140db0a27a4c853e421031b63f964d8c65d1d1136dcfe5033dedea88c2d411934ea48c9708410be84e5ee52ae Note how it begins with 52 and not 47. How P2SH works is that ...


1

You are computing just the P2SH address for the segwit script. However it is not just P2SH, it is a Segwit script wrapped inside of a P2SH. You actually have to first take the witnessScript (the multisig script or segwit redeemScript) and make a P2WSH output script with it. Then this script becomes the redeemScript for the P2SH script. So given ...


Only top voted, non community-wiki answers of a minimum length are eligible