0
I have created a P2SH address, funded it, and am attempting to move the funds with a TX.
The redeemScript for the TX requires the TX signature (OP_CHECKSIGVERIFY), but in order to create this signature, the TX preImage must be created and hashed. However, the preImage for a P2SH contains the TX redeemScript itself...this seems to create a loop wherein this functionality is not possible.
Am I doing something incorrectly, or am I overthinking things?
After more reading, it looks like the redeemScript is the serialized script of the spending TX...and after dumping some variables, looks like my underlying issue is an incomplete preImage. – circusdei – 2019-07-22T19:28:01.617