Questions tagged [anyone-can-spend]

12 questions
6
votes
1 answer

Can a Non-Segwit Miner mine segwit transactions?

I understand that non-segwit nodes interpret segwit txes as Anyone-Can-Spend txes, and they cannot validate txes that spend segwit outputs. But when an old style miner receives a segwit tx to mine he consideres it invalid, right? (That's because it…
user61285
2
votes
2 answers

Why non-SegWit nodes do not reject SegWit block since there is no witness?

SegWit is meant to be backward-compatible. When a SigWit block is relayed to a non-SegWit node, the witness part is stripped. If this is the case, wouldn't it be invalid since the non-SegWit node sees no witness/signature in transaction input? So…
sinoTrinity
  • 176
  • 6
2
votes
1 answer

What prevents anyone from spending utxos from a native segwit address?

I read that transactions spending utxos from a native segwit address ( an address starting with bc1) are seen as anyone can spend transactions by legacy nodes. So what prevents someone from taking a utxo from a native segwit address and using it to…
2
votes
1 answer

Segregated witness soft fork: how is the funding Tx made "ANYONECANSPEND"

Reading the BIP: https://github.com/bitcoin/bips/blob/master/bip-0142.mediawiki I see that the scriptPubKey in a transaction that funds a segwit redemption is the same as a normal P2PKH but merely prepended with OP_0. Is this opcode what tells…
pinhead
  • 4,932
  • 2
  • 23
  • 38
2
votes
1 answer

"At first, anyone could spend anyone's coins"?

I've been watching this Bitcoin video: https://youtu.be/ZIugzFygviw?t=294 At the linked-to timestamp, he claims that: Due to bugs, at first, anyone could spend anyone's coins! I'm not saying that I think he's lying, but was Bitcoin really that…
1
vote
2 answers

How can I create an anyone-can-spend output?

How can I create an anyone-can-spend transaction using p2pkh outputs? Also how would such a transaction in hex look like?
Errol
  • 117
  • 8
1
vote
1 answer

Trying to understand SegWit

Can someone please help to confirm my understanding of SegWit ? My understanding: Originally, signatures are included in each block alongside each transaction, these signatures can be read by nodes to prove validity of each transactions. With…
kfp22
  • 15
  • 2
1
vote
1 answer

anyonecanspend final condition of a script can be spotted just by looking at the script hash, without the redeem data?

Consider the following scenario. Alice, Carol and Bob create and fund a script with the following rules: if now, alice pubkey, bob pubkey else if now+500 blocks, bob pubkey, carol pubkey else if now+1000 blocks, ANYONECANSPEND The question is if…
skydanc3r
  • 179
  • 9
1
vote
2 answers

Were anyone-can-spend transactions valid before SegWit?

Non-segwit nodes (legacy nodes) see segwit transactions as anyone-can-spend (ACS) transactions. It is clear that such a nodes can (and do) validate blocks containing ACS transactions, because the scripts they run are compatible with the original…
0
votes
2 answers

What is stopping a Taproot spend following old Taproot rules (initially treated as anyone-can-spend) pre-activation creating a re-org post activation?

This question is similar to this Signet question on Signet nodes enforcing different Taproot rules (old and new) pre mainnet activation. Instead it is regarding how a valid Taproot spend on mainnet according to old Taproot rules (that were never…
0
votes
1 answer

ANYONECANSPEND transaction vs. private key for giving bitcoin as a prize

I would like to create a game (kind of like a treasure hunt) where the winner finds a piece of hidden information that allows them to claim some bitcoin. One way to do it is to create a transaction with OP_TRUE in the script so anyone can spend, and…
yzernik
  • 213
  • 1
  • 4
0
votes
1 answer

How to spend an anyone-can-spend input

I'm trying to teach myself bitcoin script, and so far I'm failing with a seemingly trivial example. I'm using the Bitcoin Test Framework, and this is what I'm doing (simplified): # p2sh address for OP_TRUE, according to …
Horace
  • 1