<p>No, the BIP16 rules apply. They require that not only you provide a redeemscript whose hash matches that in the output (the address), but also that valid inputs for that script are provided (which will typically require at least valid signatures).</p>

CC BY-SA 3.0
2018-03-31T00:48:01.603Z
2018-03-31T01:38:39.437Z
2018-03-31T01:38:39.437Z
Pieter Wuille
<p>From my understanding, for a p2sh transaction to be valid the redeem script must hash to the same value as the output script being used to fund the transaction.</p>

<p>So can't you just put the redeem script of your address in the scriptsig and the transaction will be valid?</p>

<p2sh><validation>
Can you create a valid p2sh transaction with the redeem script in the scriptsig alone?
Errol
# Can you create a valid p2sh transaction with the redeem script in the scriptsig alone?

(Asked by: username_0 on 2018-03-30)

From my understanding, for a p2sh transaction to be valid the redeem script must hash to the same value as the output script being used to fund the transaction.

So can't you just put the redeem script of your address in the scriptsig and the transaction will be valid?

**Tags:** p2sh, validation


---

## 1 answers

### Answer by username_1 on 2018-03-31. Score: 1

No, the BIP16 rules apply. They require that not only you provide a redeemscript whose hash matches that in the output (the address), but also that valid inputs for that script are provided (which will typically require at least valid signatures).


---

