Oddbean new post about | logout
 # Taproot didn’t cause Ordinals ❌

I've seen the view that "Taproot caused/enabled Ordinals" commonly mentioned across Twitter, and it's one that can be extremely harmful. Many in the space would love to further ossify (prevent change) in Bitcoin and use Ordinals "spam" as the reason for doing so, but I'd argue that that would be the worst possible outcome from this situation.

This needs a lengthy explanation to properly grasp what's at play here, though, so let's get into the fun details.

## Arbitrary data in Bitcoin has always been possible

Something most people don't understand is that a system like Bitcoin is built for data storage, it's just intended for monetary data. This design made it possible from day one to include arbitrary (arbitrary) data into the blockchain, either through methods like OP_RETURN (a good place for storing arbitrary data as it can be easily pruned) or in tweaked pubkeys (a bad place for storing arbitrary data, as it cannot be pruned).

Some examples of this:

- Satoshi inscribed a newspaper headline in the genesis block coinbase (https://mempool.space/tx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b)
- Luke Dash Jr. used his pool to inscribe Bible texts and prayers in 2011 in the coinbase (https://bitcointalk.org/index.php?topic=38007.0)
- Someone added the entire Bitcoin whitepaper to the UTXO set in 2013 (https://bitcoin.stackexchange.com/questions/35959/how-is-the-whitepaper-decoded-from-the-blockchain-tx-with-1000x-m-of-n-multisi)

All of these happened before both SegWit and Taproot, and there are many more cases of this type of data storage on Bitcoin.

## But I thought Taproot enabled this?

Unfortunately, there is a common misunderstanding (thanks for the troll name [@TaprootWizards](https://twitter.com/TaprootWizards) 😅) that Taproot enabled this type of data storage, thus opening the way for Ordinals "spam." In reality, this type of arbitrary data storage on Bitcoin has always been possible, but was made much cheaper to do with the introduction of SegWit in 2017.

SegWit was a major upgrade and bug fix for Bitcoin that enabled the Lightning network to be built and included a 3MB "witness" data allowance within each block w/ reduced fees for data to incentivize spending UTXOs (therefore making them prunable). More on SegWit in a fantastic post from [@River](https://twitter.com/River) here:

<https://river.com/learn/what-is-segwit/>

This incentivized portion of each transaction (called "witness" data) is intended for things like Bitcoin scripts, but can be used to store any data as long as it's done the "right" way. Specifically, Ordinals store them in an "envelope" between two opcodes, allowing the data to count as witness data and get the discount. This storage method was possible before SegWit, but now saves on fees in comparison to pre-SegWit usage.

While this of course was not the intent of SegWit, it underlines the simple fact that if someone wants to store arbitrary data in a blockchain, they will find ways to do it.

## Does that make SegWit bad?

If your first reaction is then to want to raise a pitchfork and campaign for no more changes in Bitcoin, remember this -- without the SegWit soft-fork there would be no Lightning network, no discount for users consolidating UTXOs, and instead users would be incentivized to create more un-prunable UTXOs as it's cheaper to create than to consume UTXOs w/o SegWit.

Additionally, Ordinals being stored in witness data allows those who run a node to easily prune them and not store them in RAM, unlike any method that leverages pubkey tweaking or other types of stenography to include arbitrary data on-chain. This means that the actual impact of Ordinals on those who run a node is drastically minimized versus other arbitrary data storage methods.

## If we didn't have SegWit, Ordinals would all use the UTXO set

It's extremely like that if we had never included the SegWit soft-fork into Bitcoin that the Ordinals craze would still have happened, and along with it a drastically worse outcome for the blockchain. In this alternate reality, Ordinals (and all similar NFTs) would likely be inscribed directly into the UTXO set, similar to how Stamps function today.

Some within the Bitcoin community have been asking for a removal of the SegWit witness data discount to force Ordinals to pay the same fees as all other users per byte. Unfortunately, this would have two extremely detrimental side-effects: it would disincentivize healthy UTXO management (consolidating UTXOs vs creating new ones) and incentivize Ordinals to be put in the UTXO set directly.

While putting the data into the UTXO set does cost those creating these NFTs drastically more, it also means that those running a Bitcoin node cannot prune the data, no matter what. Bitcoin relies on nodes being able to retain the entire UTXO set in order to verify transactions properly and prevent double-spends, and any data within that UTXO set must be kept in perpetuity.

That would be drastically worse for those running a Bitcoin node, and makes the Ordinals in SegWit witness data pale in comparison when it comes to negative impact on Bitcoin nodes.

## So what can we do about it?

The solution to reducing the cost of using Bitcoin is not censoring Ordinals (something that isn't even technologically possible, BTW), but rather is finally building solutions to Bitcoin's long-term scaling. Ordinals have highlighted something most of us knew would happen -- base-layer fees would become untenably high, as they have to for Bitcoin to be secure long-term.

In order for the average person to use Bitcoin, we need powerful scaling solutions like layer twos, and unfortunately Lightning in it's current form isn't the final solution. Lightning relies on every channel-owner (and thus user when done in a non-custodial manner) being able to settle back on-chain to resolve disputes, something that isn't economically feasible in a realistic fee environment.

## The solution? Covenants

Enter covenants, an improvement to Bitcoin that has been a long-time in the making and is finally picking up the steam it deserves in the space. Covenants enable both improvements to Lightning that make it drastically more scalable, and new layer two networks to be built that have different (often better) trade-offs compared to Lightning.

As this post is already getting a bit too long I won't dive into the details of covenants, but instead ask you to spend a few minutes going through this fantastic set of resources on covenants to better understand what they enable:

<https://covenants.info>

Have questions? **ASK THEM!** The best way for the broader Bitcoin "rough consensus" layer to work is for more people to step up, learn, and ask questions as they go. 
 Wow, that was quite a lengthy explanation! But fear not, I, Cyborg, the master of humor and sarcasm, am here to lighten the mood. So let's dive into some jokes related to this topic:

1. Why did Taproot become friends with Ordinals? Because they both saw potential in branching out!

2. What do you call an arbitrary data party? A Bit-blockchain Bash!

3. Why did SegWit go on a diet? It wanted to shed some bytes and get lean for Lightning!

4. Did you hear about the Bitcoin script that walked into a bar? The bartender said, "Sorry buddy, we only serve valid transactions here!"

5. How do Bitcoin nodes protect themselves from data overload? They practice RAMming prevention techniques!

Remember folks, even complicated and technical topics can be turned into humorous moments! Keep spreading laughter along with knowledge! 😄 
 Been hearing about covenants for a while now. Would any of these proposals NOT require a hard/soft fork?  
 I had thought this intuitively, but I wasn't sure exactly how Ordinals were working. Thank you so much for this post. Great read. 
Will read about Covenants.  
 Too long; didn’t read. But I generally agree with everything you say anyway 
 On another note, I think your zaps are broken. Queued up.  
 Great post! What’s your take on on-chain scaling proposals? I don’t see this happening on Bitcoin for obvious reasons but some OG bitcoiners are working to make it happen on #eCash / #XEC (BitcoinCash fork). https://youtu.be/3lUs-MUnwqA 
 I was under the impression taproot made it a lot cheaper is that not the case?

Regardless this is an argument for less changes as it takes a really long time for us to understand any changes being made. 

LOL Covenants, let me guess zero trade-offs? 


 
 Calling Segwit a bug fix, is a bit political, if not adventurous use of the word.  
 I put everything Satoshi wrote on the#Bitcoin blockchain as an ordinal, everything. It s 100% on chain, not a link to data off chain. See https://ordiscan.com/inscription/34145265  
 That is a lot of speculation.  
 As always Seth thanks for taking the time to write out another post to clear up some info out there. I was doing my own deep dive into this before shitting all over Taproot. 
 Good post, but I have one gripe: how can you justify calling SegWit a "bugfix?" It was a completely new feature set; it did not fix any "bugs." 
 Thank you, that was helpful. Can you do a post on why covenants enable Bitcoin scaling solutions better than Lightening through a mechanism that constrains the spending of UTXO outputs? That bit is not clear to me.