Post
Topic
Board Development & Technical Discussion
Re: How to redeem a "dumb script" native P2WPKH? (Nested P2SH-P2WPKH went well)
by
Kelvin555
on 06/11/2024, 13:30:32 UTC
I fooled around a bit with "dumb scripts" like so:

Script("OP_DROP", "OP_1") is dumb but valid, will accept any one value in, drop it, and leave just a True on top of the stack. It is simply 0x7151 in hex.

To take it back, I created a raw transaction the lazy way using Cointoolkit:

Code:
0100000001fb5bef51737c8f4ddd43c68c1578af44b5e1aadb6c4f825511d375754005fd85000000000451027551ffffffff0118ddf5050000000017a914628cde58e1bcd42efb72b1821ec9fdf49e0f1d498700000000

...and broadcast it successfully in Electrum, got the tBTC back within the same block, tx id 4d7eee43f95a1402128aee4577daf0fd287f8c6aab9893f6aad559ab688cc91f


Can you or anyone give me a walkthrough of how to redeem this   ?
Just use this one as an example, I know it's already spent.
I don't understand the part of merging the script hash with another hash to form a redeem script.