Questions tagged [anyone-can-spend]

"Anyone-can-spend" generally refers to transaction outputs that can be spent without the knowledge of a private key. This can happen either when the spending script has no signature checks, or when constructs without yet defined spending rules are used (e.g. future SegWit versions).

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 views

What would happen if we provide witness program different than 32 bytes for SegWit 1?

If the witness program (at the time of writing this question) is greater than 1, it is considered as anyone-can-spend output. Also, if the witness version is 1 and the witness program is 32 bytes, ...
LeaBit's user avatar
  • 478
1 vote
1 answer
121 views

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 ...
yzernik's user avatar
  • 223
0 votes
1 answer
127 views

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 ...
Horace's user avatar
  • 1
2 votes
1 answer
140 views

"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 ...
Infinity's user avatar
1 vote
2 answers
543 views

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 ...
user922921's user avatar
0 votes
2 answers
139 views

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 ...
Michael Folkson's user avatar
2 votes
2 answers
399 views

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 ...
sinoTrinity's user avatar
2 votes
1 answer
473 views

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 ...
Errol's user avatar
  • 117
1 vote
2 answers
1k views

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's user avatar
  • 117
1 vote
1 answer
212 views

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 ...
kfp22's user avatar
  • 15
1 vote
1 answer
159 views

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+...
skydanc3r's user avatar
  • 179
7 votes
1 answer
958 views

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 ...
user avatar
2 votes
1 answer
361 views

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 ...
pinhead's user avatar
  • 4,992