New answers tagged

2 votes
Accepted

Why do some P2SH spending transactions have data both in the ScriptSig and Witness field?

SegWit introduced a compatibility mode usually called wrapped SegWit or nested SegWit. It allows you to create a P2SH output spendable using SegWit rules, which include the witness discount and ...
Vojtěch Strnad's user avatar
2 votes

Why do some P2SH spending transactions have data both in the ScriptSig and Witness field?

You are looking at a transaction that spends wrapped-segwit (2-of-3 P2SH-P2WSH ) inputs. Wrapped segwit was introduced as a bridging technology with the introduction of segwit, because other than ...
Murch's user avatar
  • 74.5k
0 votes

What if someone locks some bitcoin with a script which only requires a user to know a preimage, but it matches the p2sh template?

I think this question is effectively asking what happens if you try to pre-empt future soft fork rules and broadcast a transaction which can only be spent after a future soft fork lays out the rules ...
Michael Folkson's user avatar
1 vote

What if someone locks some bitcoin with a script which only requires a user to know a preimage, but it matches the p2sh template?

Yes, that could happen. However it is also possible to inspect the blockchain for such outputs, and none exist that weren't known to be for testing.
Ava Chow's user avatar
  • 70k

Top 50 recent answers are included