Trading

What the heck is CatVM?

Taproot Wizards released a cartoon yesterday called CatVM. I will not refer to it as a whitepaper, those are real academic documents for adults. In the cartoon, interspersed amongst the absurd childish narratives, were a few valuable technical insights regarding different scaling proposals in the Bitcoin ecosystem. Of course, in true cartoon fashion, buried between wild exaggeration and embellishment.

The end goal of the cartoon was to propose a new mechanism for moving in and out of scaling layers built on top of Bitcoin. To disentangle that actual proposal from the cartoon, we’ll have to break down the two pieces involved.

The Building Blocks

Rijndael’s first OP_CAT experiment was constructing a vault, a scheme that allows a user to create an intermediate “staging” transaction to withdraw their funds from the vault. This kicks off a timelock, during which they can at any time send their funds back to the vault or a secure cold storage wallet, and after the timelock the user can freely withdraw the funds to the destination they chose when beginning the withdrawal process. These are the only two ways bitcoin sent to the vault script can be spent.

Explaining the full mechanics of how this is accomplished is essentially an article in itself, so I’m going to do something I usually don’t and hand waive this away as “magic.” (Explained here by Andrew Poelstra) What this “magic” allows you to do, by creating non-standard Schnorr signatures and with the help of OP_CAT, is to build the transaction the signature check is against on the script stack. This lets you enforce that certain parts of the transaction are exactly as defined ahead of time. It also allows you to put the output from a previous transaction on the stack in the process of building the transaction spending it, meaning you can compare outputs from the spending transaction against outputs from the previous transaction. This allows you to guarantee by comparing them that certain parts of the previous transaction’s outputs match certain parts of the new outputs. I.e. the script, or an amount. So you can “carry forward” parts of the old outputs into the new ones, and enforce that.

Something else you can do with OP_CAT, which did not need Rijndael tinkering and experimenting with to prove, is verify merkle tree branches. Because you can CAT stack items together, and Bitcoin already supports hashing data on the stack, you can slowly build up a merkle tree root from a leaf node with the interior nodes. Hash two pieces together to get one hash, hash that with the pair hash, and so on. Eventually you get the root hash on the stack. You can then compare it with OP_EQUAL against a predefined root hash in the locking script.

Unilateral Withdrawal

These two building blocks are enough to facilitate a unilateral withdrawal mechanism from a group shared UTXO. A merkle root can be embedded in a transaction using OP_RETURN or another mechanism that commits to a leaf node for each user. The UTXO script can be structured so that any user with a balance can attempt to withdraw it. To do so they would provide the merkle branch committing to the amount they are entitled to, the authorization proof such as a public key to check a signature against, and construct the transaction on the stack to verify the appropriate conditions are met.

Similar to Rijndael’s OP_CAT vault, this withdrawal transaction would function as a staging point. User funds would be restricted by a timelock, and they would not be capable of completing the withdrawal until it expires. At any time before the timelock expires, any other user can create a fraud proof to stop the withdrawal and shove funds back into the group UTXO script. They can do this because of OP_CAT’s ability to verify merkle trees. If someone has used a specific merkle branch to withdraw funds from the UTXO before, then that was included in a block somewhere. By constructing a transaction containing the SPV proof of that transaction inside an actual block, which can use OP_LESSTHANOREQUAL to verify the blockheader meets some minimum difficulty, they can prove on the stack that the merkle branch was used before. This allows duplicate withdrawals to be prevented.

In addition to this, because you can use the “CAT on the stack” trick to ensure specific pieces of a previous transaction must be included in the next, you can guarantee that the current merkle root is carried forward into the next transaction after a successful withdrawal. You can also guarantee that change from the withdrawal goes back into the group sharing script. This guarantees that after one user withdraws their funds, the change UTXO is locked with a script that allows any remaining user to withdraw, and so on. Any user can unilaterally withdraw their funds at any time in any order, with the guarantee that the remainder of funds are still accessible to the rest of the users.

The VM Part

Readers should be familiar with the basic idea of BitVM. You can take an arbitrary computation and break it up into each of its constituent pieces and embed them in a large taproot tree, turning that computation into a back and forth challenge/response game. This allows you to lock bitcoin with more complicated conditions than is directly supported by bitcoin script itself. The only real shortcoming is the need to craft a massive amount of pre-signed transactions to facilitate this.

The requirement to use pre-signed transactions is so that in the challenge/response dynamic, you can guarantee that coins are spent back into the large taproot tree encoding it unless an exit condition one way or the other is reached. OP_CAT and the ability to “carry forward” data from previous transactions allows you to guarantee that without needing pre-signed transactions.

So not only does this scheme allow any user to unilaterally exit on their own, it also allows locking conditions supported by a second layer that are not supported by Bitcoin script to actually be enforced in the withdrawal process. I.e. if some coins were encumbered by a smart contract the base layer doesn’t understand, and then withdrawn from the second layer, those more complicated conditions could still be settled correctly on the base layer as the coins are withdrawn.

The Missing Piece

One thing that OP_CAT does not enable is updating a merkle tree root representing user balances off-chain verifiably. It can enable an already committed state to facilitate unilateral withdrawals, but that is because a whole section of the tree is actually put on-chain and verified. To update that root off-chain by definition means you are not putting the data on-chain. This represents a problem. There is no way with just CAT to efficiently verify that all changes to the merkle tree were authorized properly by the relevant users.

Someone(s) has to be trusted, and by the nature of things capable of spending the UTXO however and wherever they want, to efficiently replace an old state root with a new one to represent all off-chain balance changes. A new opcode in addition to OP_CAT, such as OP_ZKVERIFY, would be needed to do this in a trustless manner.

This wouldn’t be the end of the world without OP_ZKVERIFY though. The entity updating the merkle root for off-chain transfers could be an n-of-n multisig, with 100% of the participants required to sign off on any root changes. This boils down to the same trust model as BitVM based pegs, where as long as a single honest participant exists, no one’s funds can be stolen. It is a stark improvement over existing BitVM designs however when it comes to the withdrawal process.

In BitVM pegs, users do not have a unilateral withdrawal mechanism. Peg operators must be trusted to fulfill user withdrawals, knowing that they can claim back funds they have spent doing so relatively trustlessly from the BitVM peg. While the incentives of this are very solid, it still does require users essentially getting permission from someone else to exit the system, they cannot do it on their own. With CatVM, users can claim back their funds unilaterally, and an operator is not required to front their own liquidity to process withdrawals.

Wrapping Up

Overall, the design is incomplete in terms of construction. This is not something I would call a Layer 2 in and of itself. It is the core of one, the mechanism and structure for how funds are locked into a Layer 2, and the process for how users can withdraw their funds. It definitely has a lot of flexibility and usefulness to it.

In the worst case scenario, users do not need anyone’s permission to safely claim their funds back on-chain. It also allows more flexible programmability of funds, while still carrying the enforcement of those conditions to the base layer in the event of worst case unilateral exits. If one day we do eventually get something like OP_ZKVERIFY, the off-chain state progression can become an actually trustless process.

I don’t expect any concrete demos in the near future, but it definitely is a sound idea in my opinion, and something worth considering. It also shows that the wizards are doing a little more than just pumping stupid jpegs. 

BlackRock Releases Bitcoin Education Series

BlackRock, the world’s largest asset management firm with over $10.5 trillion in assets under management, has unveiled a series of educational content aimed at explaining Bitcoin, the Bitcoin halving, and its implications, along with insights into its approved spot Bitcoin ETF.

“April is packed with rare events this year, with eyes set on the upcoming bitcoin halving – a unique process that only happens every 4 years,” said U.S. Head of Thematic and Active ETFs at BlackRock, Jay Jacobs. “Tune in below to learn how this impacts bitcoin’s value, and for more about investing in bitcoin ETFs.”

JUST IN: BlackRock releases educational #Bitcoin video.

pic.twitter.com/CLaMtQtzDS

— Bitcoin Magazine (@BitcoinMagazine) April 17, 2024

In a series of four videos, available on BlackRock’s official website, the asset manager discusses the fundamental aspects of Bitcoin as an investment, addressing common questions and concerns for investors looking to understand and navigate the Bitcoin landscape. Topics covered include the underlying technology of Bitcoin, its role in investment portfolios, keeping Bitcoin secure, and the significance of events like the Bitcoin halving.

BlackRock’s official Bitcoin 101 webpage.

“Bitcoin is the world’s most recognized and widely adopted cryptocurrency – and the first form of internet-native money to gain widespread global adoption,” BlackRock stated on its webpage.” “Bitcoin allows for peer-to-peer transactions outside of central intermediaries like banks.”

With the recent approval of its spot Bitcoin ETF, $IBIT, BlackRock’s educational initiative aims to take advantage the increasing mainstream acceptance and interest in Bitcoin, emphasizing the importance of education and informed decision-making for the new classes of investors entering this market. The ETF offers exposure to Bitcoin’s price movements without requiring direct ownership of the digital asset, catering to more traditional investors seeking diversified investment opportunities.

Rights, Reason, Revolution: In DC at the Bitcoin Policy Summit

In the whirlwind of April 2024, with Bitcoin ETFs dominating headlines and halving celebration planning in full swing, the Bitcoin Policy Summit emerged as a pivotal moment for policymakers, industry leaders, and human rights champions. Against the backdrop of global discussions on Bitcoin regulation—and coinciding with a solar eclipse—the summit aimed to be a beacon of reason and a catalyst for action in the rapidly evolving world of digital assets.

The Bitcoin Policy Summit boasted a remarkable turnout, with more than 45,000 individuals tuning into the livestream. Among the 500+ in-person attendees were representatives from 26 universities, 75 government officials, and 250 public policy professionals. The summit also garnered attention from over a dozen media outlets. Notably, elected leaders from both major political parties were present, alongside representatives from prominent organizations such as the World Bank, World Economic Forum, International Monetary Fund (IMF), State Department, Department of Commerce, Treasury Department, Environmental Protection Agency (EPA), Department of Energy (DOE), Department of Defense (DoD), and the Commodity Futures Trading Commission (CFTC).

The summit, with its diverse mix of voices and perspectives, shed light on the pressing need for smart and informed decision-making in the realm of digital asset policy. While Bitcoin symbolizes financial freedom and empowerment, it also brings its fair share of challenges, from concerns about money laundering to energy usage. The summit tackled these complex issues head-on, offering insights into the multifaceted world of Bitcoin as it relates to mining, geopolitics, the future of money, and human rights.

The Bitcoin Policy Summit witnessed a significant turnout of policymakers committed to safeguarding the opportunities presented by Bitcoin and addressing its associated challenges. Figures such as Senators Marsha Blackburn, Kirsten Gillibrand, and Cynthia Lummis, alongside House members Wiley Nickel, Tom Emmer, and Patrick McHenry, lent their expertise and bipartisan support to the discussions. Their active involvement not only enriched the conversation but also signaled a united effort to ensure that digital asset policies foster innovation, protect consumers, and uphold transparency and accountability.

One of the most striking features of the summit was its focus on the intersection of Bitcoin and human rights, with speakers like Felix Maradiaga, 2024 Nobel Prize Nominee and prominent human rights advocate from Nicaragua; Anna Chekhovich, financial director of the Anti-Corruption Foundation (ACF) founded by Alexei Navalny; Roya Mahboob, Afghan entrepreneur and women’s rights advocate; and Lyudmyla Kozlovska, Ukrainian human rights activist. Their combined emphasis on Bitcoin’s critical role in defending human rights and freedom of expression in the face of dictators and oppressive regimes shed light on broader roles for digital assets that many in the United States may not have previously considered.

Furthermore, the summit stressed the importance of taking a global perspective on digital asset regulation to protect human rights. In a world where digital assets know no borders, fragmented

regulatory approaches risk creating loopholes and undermining financial integrity. Human rights activists stressed the need to protect privacy, free speech, and equal access to financial services for all, regardless of where they are.

The conference hall buzzed with anticipation as attendees dispersed into three specialized rooms for afternoon deep dive tracks: Mining & Energy, Geopolitics, and Future of Money. Concurrent programming featured keynotes such as “A Climate Scientist’s Perspective on Bitcoin” by Margot Paez, BPI fellow and PhD candidate at Georgia Institute of Technology. Fireside chats and panels included “Bitcoin & Financial Inclusion” with Chastity Murphy from the U.S. Treasury, and “Countering Digital Authoritarianism” featuring renowned writer Roger Huang, author of ‘Bitcoin and China’, and Jorge Jrsaissati, President of the Organization for Economic Inclusion.

One of my personal highlights from the Bitcoin Policy Summit was engaging in a fireside chat with Senator Marsha Blackburn from my home state of Tennessee. We explored the connection between Bitcoin and her advocacy for consumer rights and privacy. Additionally, we discussed Tennessee’s growing prominence as a Bitcoin hub and her stance on CBDCs (spoiler: she’s not a fan). It’s truly inspiring to witness elected leaders championing both monetary and digital freedoms, reinforcing their commitment to safeguarding these fundamental rights.

Another standout moment occurred during a post-summit dinner with Felix Maradiaga and his wife, Berta Valle. Felix, who endured four years of imprisonment under a Nicaraguan dictator, shared firsthand accounts of political dissent and activism. These experiences underscore the importance of Bitcoin as a decentralized monetary network, providing resilience against oppression.

The 2024 Bitcoin Policy Summit in Washington D.C. served as a crucial platform for educating policymakers and advocating for Bitcoin’s role in shaping a freer and more sustainable financial future. Through candid dialogue, diverse perspectives, and collaborative efforts across sectors, participants witnessed the transformative potential of Bitcoin to advance global human rights, bolster national security, and accelerate renewable energy adoption. As we reflect on the insights garnered from the summit, let’s seize this pivotal moment to shape a regulatory landscape that not only fosters innovation and economic growth but also champions human dignity, justice, and liberty.

This is a guest post by Stephen Pollock. Opinions expressed are entirely their own and do not necessarily reflect those of BTC Inc or Bitcoin Magazine.