I’ve a extra complicated script nonetheless i seen that it returns false. Subsequently, I attempted the only signature verify and it returns false as effectively.
That is the locking script:
my_public_key = my_private_key.pub
redeem_script = CScript([my_public_key,OP_CHECKSIG])
txout_scriptPubKey = [OP_HASH160, Hash160(redeem_script), OP_EQUAL]
That is the unlocking script:
my_sig = create_OP_CHECKSIG_signature(tx, CScript(txin_scriptPubKey), my_private_key)
txin.scriptSig = CScript([my_sig,redeem_script])
It returns: VerifyScriptError: P2SH internal scriptPubKey returned false.
I do not get what’s taking place, it really works for non signature sort customized scripts. Any assistance is appreciated.
I’ve a extra complicated script nonetheless i seen that it returns false. Subsequently, I attempted the only signature verify and it returns false as effectively.
That is the locking script:
my_public_key = my_private_key.pub
redeem_script = CScript([my_public_key,OP_CHECKSIG])
txout_scriptPubKey = [OP_HASH160, Hash160(redeem_script), OP_EQUAL]
That is the unlocking script:
my_sig = create_OP_CHECKSIG_signature(tx, CScript(txin_scriptPubKey), my_private_key)
txin.scriptSig = CScript([my_sig,redeem_script])
It returns: VerifyScriptError: P2SH internal scriptPubKey returned false.
I do not get what’s taking place, it really works for non signature sort customized scripts. Any assistance is appreciated.