bitcoin-core / btcdeb

Bitcoin Script Debugger
MIT License
523 stars 129 forks source link

Script pubkey version 1 not supported when debugging taproot transaction in v0.3.20 #121

Closed supertestnet closed 1 year ago

supertestnet commented 1 year ago

I am trying to debug the following testnet taproot transaction:

btcdeb --txin=02000000000101a96370d1e0594fc69149c6bfeb45ac1bad5f3be969efeafb06219c2bd69c42660100000000feffffff024ca40f000000000016001453332c84c9185cae206648ecc04a497f8ef881d0d00700000000000022512089c36412e00beda0b931c7a044cb6e8d149ffba1ec0635b4517b00867e4b395f0247304402203fac08499ad784f208472433944c60f4d45d2b931d3f16a7dbe0304dc4cace8402204c0067b98fa3624ddd8d69369c6096dc75ae5bd7d1f4a1859cd59776d3a9193d012103abbbce21fcddacb0b0701fa41a383c893f2a950e80ff0be405fa5217767d10f373e82400 --tx=020000000001018eba56849eb20c0592a729c8fa414e8f81aae121b551a0fe811699ae868d9c6c0100000000ffffffff01dc050000000000001976a914344a0f48ca150ec2b903817660b9b68b13a6702688ac0340eecf6469196e3d2ab60e8bfba5e9a42a2bd57c76060ff6bf9d6affa3aae6bcd3fcfe768e2414a3d29f6dba54d7622cdf8ace73d3a16baabb3a223838530f31dd2220c1f474fe02a20702320864891a7c5868d150955b6bf2f0e354277e475ae99041ac21c1abababababababababababababababababababababababababababababababab00000000

The txin is actually real, it can be found here: https://blockstream.info/testnet/tx/6c9c8d86ae991681fea051b521e1aa818f4e41fac829a792050cb29e8456ba8e

But when I run the above command, btcdeb complains that the scriptpubkey of the txin is version 1 (i.e. taproot) and that's not supported:

btcdeb 0.3.20 -- type `btcdeb -h` for start up options
notice: btcdeb has gotten quieter; use --verbose if necessary (this message is temporary)
input tx index = 0; tx input vout = 1; value = 2000
script pub key declared version=1 not supported: script pub key=512089c36412e00beda0b931c7a044cb6e8d149ffba1ec0635b4517b00867e4b395f

That script pubkey is used in vout 1 of the transaction linked above. What am I doing wrong?

BowTiedDeployer commented 1 year ago

The current version of btcdeb is 0.4.22. Try reinstalling it using the README.md info from the last master commit.

kallewoof commented 1 year ago

This runs on the latest btcdeb code base (although the signature fails, but it looks like it's a placeholder so that should be fine).