Author

Topic: Anyone can spend transaction (Read 269 times)

sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
March 15, 2018, 12:21:56 PM
#3


With reference to the question I've answered yesterday[1],
[1] https://bitcointalksearch.org/topic/m.32299509
It's actually the same person asking all the questions.
He creates new accounts and asks the same question (s) over and over.
The first post was laughably why his unsigned transaction spending bitcoin from an exchange address with almost a billion dollars in bitcoin wasn't being broadcast.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
March 15, 2018, 12:03:00 PM
#2
I read about the anyone can spend transaction on the wiki but how is it verified if the scriptsig only has OP_true and how do you create it since i am not aware of any client that allows you to.
For P2SH, one of the component of scriptsig structure is the redeem script and the redeem script contains the criteria or the conditions for which the UTXO associated with the inputs can be spent. For a transaction like that to be valid, the script must consist of various data script to be evaluated to true.

With reference to the question I've answered yesterday[1], the redeem script of the address is actually just 51. The redeem script translates to the address itself and when its put to the script, its evaluated to OP_TRUE which thus makes the transaction valid.

However, without the signature, it is considered non-standard. There is no point trying to broadcast a transaction from such an address, unless you are a miner. It's also pointless for any client to create addresses like that, unless their users wants to lose money intentionally.

[1] https://bitcointalksearch.org/topic/m.32299509

It's actually the same person asking all the questions.
He creates new accounts and asks the same question (s) over and over.
The first post was laughably why his unsigned transaction spending bitcoin from an exchange address with almost a billion dollars in bitcoin wasn't being broadcast.
Yeah, kinda weird with the surge in the questions about this topic.

Anyhow, I won't be answering any of these again. Seems like theres more than enough resources on this.
newbie
Activity: 6
Merit: 0
March 15, 2018, 11:16:56 AM
#1
I read about the anyone can spend transaction on the wiki but how is it verified if the scriptsig only has OP_true and how do you create it since i am not aware of any client that allows you to.
Jump to: