Spendable output: Outputs that can be spent and used as input for new transactions.
Unspendable output: outputs that cannot be spent or used as input for new transactions. Which led me to OP RETURN which confused me even more
- I thought the Blockchain only deals with transactions alone.
You don't have to be confused, you are almost there but there is more to OP codes.
Basically, OP_RETURN is one of the Bitcoin OP codes that makes an output unspendable but there are more Bitcoin OP code operations, you can check more of them here ;
https://en.bitcoin.it/wiki/Script, some of them are now disabled but for knowledge sake they are worth checking to understand how Bitcoin scripts works with other forms of OP codes.
- what use do arbitrary data have on the Blockchain and why are they allowed to be stored there? Won't they affect transactions?
Arbitrary data doesn't affect transactions, but there are some that bloat the UTXOs set. See this as spamming of nodes where outputs are been kept for future spending, the spammers take advantage of witness field in taproots and embed arbitrary data in there. This is making the utxo set(future outputs to be spent) becoming bigger, it's affecting the nodes storage because this utxo spent on fake pubkeys can't be spent in the future as they don't have private keys.
With size increase of OP_RETURN from 80byte to 100k bytes, every blocks might get filled up, this can make nodes storage to exponential grow bigger.
However, if OP_RETURN becomes a trend, it's going to make common transactions difficult to mine quickly because miners prioritizes transactions with much fee, transaction with OP_RETURN may comes with high fees to get mine quickly especially if it's something everyone want to get immediately. During peak ordinals, it was difficult to spend Bitcoin without using half of your Bitcoin on fees.
- understanding OP RETURN is a bit challenging on my own so I'd like a more simpler explanation.
Any further explanation and corrections on this topic will be appreciated I think I got myself confused.Thank you.
Had this posted on our LB and unfortunately I have not received any answers yet so I decided to ask here.
Here is a practical thread you can use understand how OP_RETURN and it's scripts:
[EDU] Hands on OP_RETURN