1

I wonder if the wallet screwed up or if I am missing something in my bitcoin understanding.

Here is the tx output being spent:

    "value": 0.00180675,
                "n": 154,
                "scriptPubKey": {
                    "asm": "OP_HASH160 771962306e72e479245d48e879dd2a1862225b4c OP_EQUAL",
                    "hex": "a914771962306e72e479245d48e879dd2a1862225b4c87",
                    "address": "3CYkk3x1XUvdXCdHtRFdjMjp17PuJ8eR8z",
                    "type": "scripthash"

Here is the spending Input:

    "txid": "d80ff02d0d9eb2da8c8a1c47ab099901f447dd197e34220ea13eca72d7d6d21d",
                    "vout": 154,
                    "scriptSig": {
                        "asm": "002044c55c1da36a576217259c3bc21b0c3943f7eb3ff4e3c381d9fd3502434b9e87",
                        "hex": "22002044c55c1da36a576217259c3bc21b0c3943f7eb3ff4e3c381d9fd3502434b9e87"
                    },
                    "txinwitness": [
                        "",
                        "304402202c3f94e5daf4057377d9f16d45b57e962de42fb42cb7e95a0382b7c66624980a02204098f6acd43b0391ea1b4a8102797e78895848fb7e883f98d207d14d45945a6901",
                        "30440220448460edd5291a548c571ccf3a72caf47b02364035dc84f420d311e3a0c5494802205bb1cc89f20dc1e2c1f6eadb74898f8eecc46fbf488b676636b45fafaeb96e0f01",
                        "5221021e6617e06bb90f621c3800e8c37ab081a445ae5527f6c5f68a022e7133f9b5fe2103bea1a8ce6369435bb74ff1584a136a7efeebfe4bc320b4d59113c92acd869f38210280631b27700baf7d472483fadfe1c4a7340a458f28bf6bae5d3234312d684c6553ae"
                    ],
                    "sequence": 4294967295

2 Answers 2

2

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 malleability fix. It's slightly more expensive than native SegWit (which uses a new output type whose addresses start with bc1) because of the extra data included in the scriptSig, but it has the advantage of being supported in older software (which was especially useful after SegWit activation as some exchanges and wallets took years to implement sending to native SegWit).

2

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 segwit, because other than native segwit addresses, any sender that could already send to P2SH addresses was able to pay to them without an update and it allowed the receiver to immediately benefit from segwit improvements such as a reduced blockspace weight and the transaction malleability fix. In wrapped segwit inputs, the redeem script just checks the pre-image of the P2SH hash in the output, and then forwards to the witness stack for further validation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.