Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: miner2251 on January 22, 2021, 08:13:14 AM



Title: Are these funds burned?
Post by: miner2251 on January 22, 2021, 08:13:14 AM
Instead of sending coins to "OP_DUP OP_HASH160 <hash> OP_EQUALVERIFY OP_CHECKSIG" I sent them to "OP_HASH160 <hash> OP_EQUAL". Both hashes are exactly the same. Are they burned or is it possible to get them by using some kind of non-standard transaction?


Title: Re: Are these funds burned?
Post by: pooya87 on January 22, 2021, 08:48:23 AM
Assuming <hash> is the RIPEMD160 of SHA256 of your public key, I don't think there is any way of spending these coins. Because P2SH outputs expect a "script" on top of the stack and pop that to hash, you can't just put your public key (without the PUSHDATA OP behind it) on top of the stack, that would be an invalid script.