<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[STX.CITY | Blog]]></title><description><![CDATA[STX.CITY | Blog is an educational site that makes Stacks easy to understand and master.

We deliver insider insights from Stacks experts using simplified explanations, metaphors, diagrams and "explain to a 10-year-old" descriptions.]]></description><link>https://blog.stx.city</link><image><url>https://substackcdn.com/image/fetch/$s_!2NJY!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e70620c-be78-4e10-b646-22a142ffe18c_320x320.png</url><title>STX.CITY | Blog</title><link>https://blog.stx.city</link></image><generator>Substack</generator><lastBuildDate>Sat, 09 May 2026 10:58:16 GMT</lastBuildDate><atom:link href="https://blog.stx.city/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[WorkableCoin]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[stacksinsider@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[stacksinsider@substack.com]]></itunes:email><itunes:name><![CDATA[STXCITY]]></itunes:name></itunes:owner><itunes:author><![CDATA[STXCITY]]></itunes:author><googleplay:owner><![CDATA[stacksinsider@substack.com]]></googleplay:owner><googleplay:email><![CDATA[stacksinsider@substack.com]]></googleplay:email><googleplay:author><![CDATA[STXCITY]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[How ALEX Will Transform Bitcoin Into a Money Wizard ]]></title><description><![CDATA[Problem]]></description><link>https://blog.stx.city/p/how-alex-will-transform-bitcoin-into</link><guid isPermaLink="false">https://blog.stx.city/p/how-alex-will-transform-bitcoin-into</guid><dc:creator><![CDATA[STXCITY]]></dc:creator><pubDate>Fri, 06 Oct 2023 06:58:47 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!e0PK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!e0PK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!e0PK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 424w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 848w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 1272w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!e0PK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png" width="1456" height="804" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:804,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2720298,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!e0PK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 424w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 848w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 1272w, https://substackcdn.com/image/fetch/$s_!e0PK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51e2680e-1b7c-4314-a7d2-3080f91bc502_2522x1392.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Problem</strong> </h2><p>Bitcoin can be used for a lot more than just saving money. It can grow into a flexible system for managing finances without banks or companies in charge. </p><h2><strong>Solution</strong> </h2><p>To unlock Bitcoin's DeFi potential, it needs smart contract capabilities, seamless layer bridging, cross-layer security, and faster transaction speeds. </p><h2><a href="https://twitter.com/ALEXLabBTC">@ALEXLabBTC</a> <strong>is the Player</strong></h2><p> <br>- ALEX becomes the key finance layer on top of Bitcoin, integrating Bitcoin's base layer and Layer 2 solutions like Stacks cleanly to allow advanced money tools. </p><p>- ALEX focuses on bridging the user experience between Layer 1 and Layer 2, providing easy-to-use DeFi services on Bitcoin while keeping security. </p><p><strong>DeFi apps on Bitcoin</strong> Here are some examples of decentralized finance (DeFi) applications that could be built on ALEX as it evolves into Bitcoin's financial layer: </p><p>- Decentralized Exchanges (DEXs) Allow peer-to-peer cryptocurrency trading without centralized intermediaries. Similar to Uniswap or PancakeSwap on Ethereum and BNB Chain. (<strong>ALEX Swap</strong>) - Lending &amp; Borrowing Apps </p><p>- Enable users to lend and borrow crypto assets for interest, using collateral. Like AAVE and Compound in the Ethereum DeFi ecosystem. </p><p>- Tokenized Assets - Issue digital tokens representing real-world assets like real estate or commodities. Brings new assets into Bitcoin's financial network. </p><p>- Payments Apps - Build apps for quick micropayments using Bitcoin/Lightning network. Useful for content creators, merchants, remittances etc. </p><p>- Prediction Markets - Create prediction-based betting markets for events, similar to Polymarket. Allows speculation on outcomes. </p><p>- Stablecoins - Issue price-stable cryptocurrencies pegged to assets like USD, making Bitcoin more viable for payments. </p><p>- Decentralized Autonomous Organizations (DAOs) - Build DAOs on Bitcoin to manage DeFi protocols and assets in a decentralized manner. </p><h2><strong>Nakamoto Release</strong> </h2><p>The Nakamoto Release is an upcoming upgrade to the <a href="https://twitter.com/Stacks">@Stacks</a> blockchain that will significantly improve Bitcoin's transaction speeds and make it more compatible with decentralized finance (DeFi) applications. </p><p>Here's a quick overview: </p><p>- Stacks is a layer 2 blockchain built on top of Bitcoin that enables smart contract functionality. It is secured by Bitcoin but operates independently. </p><p>- Currently, Bitcoin block times are 10-15 minutes. This is quite slow compared to other blockchains like Ethereum. </p><p>- The Nakamoto Release will reduce the Stacks blockchain's block time from 10 minutes down to just 5 seconds. </p><p>- This means transactions on Bitcoin/Stacks will confirm much faster, making it feasible to build DeFi apps that require quick settlement times. </p><p>- With Nakamoto Release, Bitcoin will be able to scale to thousands of transactions per second. This rivals speeds of other DeFi-focused blockchains. - Faster blocks and transactions are critical for decentralized exchanges, lending apps, micropayments and other DeFi use cases on Bitcoin. </p><p><em>Things like Stack's Nakamoto Release will greatly speed up Bitcoin's transaction times to meet DeFi needs (we can build the DeFi apps above)</em> <em>Read more about Nakamoto Release: </em></p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;b573980c-84d1-4466-b4c9-1679488bffe9&quot;,&quot;caption&quot;:&quot;The Stacks blockchain is designed to unleash the full potential of Bitcoin as a productive asset for decentralized applications, while preserving its security and monetary properties.Thanks for reading WorkableCoin ! Subscribe for free to receive new posts and support my work.&quot;,&quot;cta&quot;:null,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;lg&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;How Stacks Nakamoto Will Transform Bitcoin DeFi&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:116708802,&quot;name&quot;:&quot;Alex Xela&quot;,&quot;bio&quot;:&quot;Evangelist for Stacks - Bullish on unlocking Bitcoin's potential for DeFi, NFTs &amp; beyond.\nEmpowering creativity with no-code &#128296;, AI &#129302;, and blockchain &#8383;. \n&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/688aecdd-738a-4682-bcc5-903f7ec7d069_400x400.jpeg&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2023-07-25T08:28:30.324Z&quot;,&quot;cover_image&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ee3cda56-cb84-4ccc-96d8-40b3b594a6ab_2240x1260.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://stacksinsider.com/p/how-stacks-nakamoto-will-transform-bitcoin-defi&quot;,&quot;section_name&quot;:null,&quot;video_upload_id&quot;:null,&quot;id&quot;:135426899,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:2,&quot;comment_count&quot;:0,&quot;publication_id&quot;:null,&quot;publication_name&quot;:&quot;Stacks Insider&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F67af2705-fdf2-4c1b-9b2f-6df79d0ea465_128x128.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><h2> The value of the ALEX token </h2><p><em>ALEX tokens will become more useful as Bitcoin's financial backbone, increasing their value and appeal to investors.</em></p><p>- ALEX tokens will be needed more as Bitcoin's financial backbone. They will be used like gas fees to make DeFi projects work on Bitcoin. </p><p>- When ALEX tokens are used more for DeFi, they become more important and useful in the ecosystem. With more use cases, the tokens should gain value, like how coins become more valuable when more people want them. </p><p>- Investors will find ALEX tokens more appealing when they are essential for Bitcoin's DeFi ecosystem to run. In summary, exciting innovations are coming as ALEX paves the way for Bitcoin to revolutionize DeFi with its network advantages and security.</p>]]></content:encoded></item><item><title><![CDATA[Unpacking Clarity: Stacks' Recipe for Less Hackable, More Transparent, and Ultra-Secure Smart Contracts]]></title><description><![CDATA[This post will show you how Clarity is transforming the Blockchain landscape.]]></description><link>https://blog.stx.city/p/unpacking-clarity-stacks-recipe</link><guid isPermaLink="false">https://blog.stx.city/p/unpacking-clarity-stacks-recipe</guid><dc:creator><![CDATA[STXCITY]]></dc:creator><pubDate>Mon, 31 Jul 2023 04:00:09 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/6e8d2412-382d-462a-ad48-fe2cc1ce069d_1600x900.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This post will show you how Clarity is transforming the Blockchain landscape.</p><h2><strong>Transparent Source Code</strong></h2><p>In Solidity, developers write source code that then needs to be compiled to EVM bytecode in order to deploy on Ethereum. This compilation step is where bugs could be introduced or logic obscured.</p><p>Only the bytecode actually runs on Ethereum. To understand what the contract does, developers need to share the original Solidity source. (Image: The EVM bytecode can be very difficult to follow)</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Czq6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Czq6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 424w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 848w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 1272w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Czq6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png" width="621" height="198" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:198,&quot;width&quot;:621,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:5342,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Czq6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 424w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 848w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 1272w, https://substackcdn.com/image/fetch/$s_!Czq6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bb943a8-7bdd-4ebd-8fca-b70dbc97b74c_621x198.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p></p><p>In Clarity, source code is interpreted directly on the blockchain. There is no compilation step that could hide the logic or introduce bugs.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KSB3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KSB3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KSB3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg" width="670" height="496.97802197802196" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1080,&quot;width&quot;:1456,&quot;resizeWidth&quot;:670,&quot;bytes&quot;:79559,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KSB3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KSB3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F01a7f171-05ab-4633-a855-90bd181eafcb_1636x1214.jpeg 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Guaranteed Halting</strong></h2><p>Clarity is a decidable language, meaning programs are guaranteed to halt. This avoids potential infinite loops So What is decidable language? Can you give an example? -&gt; Sure</p><p>A decidable language in computability theory is one where there exists an algorithm that can take any program in the language and decide whether it halts or runs forever. For Clarity, this means:</p><ul><li><p> There is an algorithm that can analyze any Clarity program and determine if it will halt or not. </p></li><li><p>This algorithm is used before running the code to ensure it will halt. </p></li><li><p>If the algorithm determines a Clarity program could run forever, it will reject it.</p></li><li><p>So a decidable language removes an entire class of bugs and vulnerabilities caused by unbounded loops or recursion.</p></li><li><p>In contrast, Solidity is not decidable - there is no general way to determine if arbitrary Solidity code halts. Infinite loops are possible</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L_bn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L_bn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L_bn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg" width="1456" height="1039" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1039,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:93044,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!L_bn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L_bn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffc032be4-f183-4be5-9779-75d8a356dcea_1648x1176.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><strong>Built-in Reentrancy Prevention</strong></h2><p>Clarity prevents reentrancy, where calling Contract A &#8594; B &#8594; A again confuses A's state. Solidity enables this vulnerability So what is a reentrancy attack? Can you give me an example? Sure</p><p>Let's imagine a scenario using a real-world example. Let's say there's a cookie jar in your kitchen. This cookie jar has a rule: you can only take one cookie at a time, and you must close the lid before you can take another one.</p><p>Imagine you're a clever child and you find a loophole. You realize that if you take a cookie but don't close the lid right away, Mom, who enforces the rules, might get distracted. While she's distracted, you could quickly take another cookie before you close the lid</p><p>Here's how it works: </p><ul><li><p>1. You open the lid and take a cookie (just like you're supposed to). </p></li><li><p>2. But before you close the lid, you ask Mom a tricky question ("Why is the sky blue?") to distract her. </p></li><li><p>3. While she's thinking about the answer, you quickly take another cookie.</p></li><li><p>4. Then you close the lid, following the original rule. But you've managed to take two cookies in one turn! In this example, the cookie jar is like a smart contract, and the rule about taking one cookie at a time and closing the lid is like the code in the contract.</p></li></ul><p>The tricky question is like a contract calling another contract, and taking the second cookie before closing the lid is like a reentrancy attack.</p><p>Just like Mom didn't expect you to take another cookie while she was distracted, the programmers who write smart contracts might not expect their code to be interrupted and exploited in this way.</p><p>That's why it's important to design contracts (or cookie jar rules) carefully to avoid these kinds of loopholes. In Clarity, it would be as if once you open the lid of the jar, time freezes until you close it again.</p><p>You wouldn't be able to distract Mom because everything has to wait until the lid is closed. This makes it impossible to take a second cookie before closing the lid, which is how Clarity prevents reentrancy.</p><p>Clarity prevents reentrancy very strongly at the language level. It is impossible to write Clarity code that could enable a reentrancy vulnerability. Here are the example codes in Clarity</p><p>Contract A has a withdraw function that: </p><ul><li><p>Updates the balance</p></li><li><p>Calls contract B to transfer tokens </p></li></ul><p>Contract B attempts to call back into contract A's withdraw. This mutual recursion from B-&gt;A-&gt;B is invalid in Clarity. The compiler would reject contract B.</p><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ruLn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ruLn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ruLn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg" width="1456" height="962" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:962,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:85749,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ruLn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ruLn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a1389ee-b652-45a6-a624-fdd03c30fc4b_1568x1036.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p> </p><p>So there is no way to write a Clarity contract that enables reentrancy like this. The language design fundamentally prevents it. This means developers don't have to worry about securing contracts against reentrancy in Clarity - it's handled at the language level.</p><h2><strong>Automatic Overflow/Underflow Protection</strong></h2><p>Clarity handles overflows/underflows automatically at the language level. Solidity requires manual wrapping of each variable. Example below</p><p>An overflow happens when a calculation results in a number that is too large to be stored correctly. (code below) (Similarly, an underflow is when a calculation results in a number too small to be stored)</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WuOo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WuOo!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 424w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 848w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WuOo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg" width="1260" height="578" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:578,&quot;width&quot;:1260,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:39978,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WuOo!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 424w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 848w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!WuOo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88375bc2-9ca4-4697-8cdf-9b4fc8ec8ead_1260x578.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><ul><li><p>While Solidity has some overflow protection via libraries like SafeMath, it is opt-in per variable. Clarity is always on</p></li><li><p>Even with SafeMath, Solidity math can still overflow. In Clarity it is impossible no matter what operations you try to do.</p></li></ul><h2><strong>Mandatory Error Handling</strong></h2><p>Clarity requires checking the success or failure of external calls, preventing ignored errors.</p><p>In Solidity, contract calls can be made using low-level functions like call or send which don't bubble up failures by default. Developers have to manually check for call success like:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!TJ6h!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!TJ6h!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 424w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 848w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!TJ6h!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg" width="1310" height="468" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:468,&quot;width&quot;:1310,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:32705,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!TJ6h!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 424w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 848w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!TJ6h!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f5f2407-68b8-4a2a-86d0-10002c671aa2_1310x468.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>This allows calls to fail silently if the developer doesn't check properly. In Clarity, contract calls must be made using functions like contract-call? which return a response type:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!d_xB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!d_xB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 424w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 848w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!d_xB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg" width="1314" height="226" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:226,&quot;width&quot;:1314,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:18886,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!d_xB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 424w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 848w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!d_xB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddb643a1-0f49-4ef7-bc49-67ecc6374ea4_1314x226.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p></p><p>This response must be unwrapped or propagated using control flow functions (image) Failing to handle the response will make the Clarity program invalid.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!t2nG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!t2nG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 424w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 848w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!t2nG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg" width="1306" height="316" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:316,&quot;width&quot;:1306,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:27229,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!t2nG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 424w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 848w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!t2nG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42a80ff3-6770-4c5c-973f-07d0f539f44d_1306x316.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>So while Solidity enables low-level calls that can fail silently, Clarity forces developers to properly handle call failures. This prevents entire classes of errors caused by ignoring failed external calls in Clarity smart contracts.</p><h2><strong>Conclusion</strong></h2><p>In summary, Clarity improves smart contract security through:</p><ul><li><p>Transparent source code</p></li><li><p>Guaranteed halting </p></li><li><p>Built-in reentrancy prevention </p></li><li><p>Automatic overflow/underflow protection </p></li><li><p>Mandatory error handling (try!, unwrap keywords)</p></li></ul><p>These language-level capabilities eliminate entire classes of bugs, errors, and vulnerabilities. Clarity optimizes for correctness. While languages like Solidity enable complex behavior, Clarity chooses to restrict some flexibility in exchange for better security.</p><p>Through its design, Clarity prevents problems at the root rather than requiring developers to implement protections manually. Clarity aims to make smart contract programming simpler and safer. Give it a try and let me know what you think!</p><p>It's important to understand that while the language and its design choices can mitigate certain risks, it doesn't automatically make every contract written in the language secure. Security also depends on how the contract is coded.</p><p>For example, a poorly designed contract might still have other vulnerabilities, like allowing unauthorized users to perform certain actions, or not properly validating inputs.</p><p>Therefore, even with Clarity's properties, it's crucial to follow best practices for smart contract development, which include thorough testing, code audits, and careful design to minimize the potential for bugs and vulnerabilities.</p><p>That's a wrap on our deep dive into Clarity, Stacks' secret weapon for building transparent, secure, and predictable smart contracts. But the journey doesn't stop here! Follow me for more insights into the innovative world of the Stacks ecosystem</p>]]></content:encoded></item><item><title><![CDATA[How Stacks Achieves Maximum Security as a Bitcoin Layer with Bitcoin Finality (100+ Confirmations)]]></title><description><![CDATA[Introduction]]></description><link>https://blog.stx.city/p/how-stacks-achieves-maximum-security-on-bitcoin</link><guid isPermaLink="false">https://blog.stx.city/p/how-stacks-achieves-maximum-security-on-bitcoin</guid><dc:creator><![CDATA[STXCITY]]></dc:creator><pubDate>Thu, 27 Jul 2023 09:19:46 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!pdVo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pdVo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pdVo!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 424w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 848w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 1272w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pdVo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png" width="960" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bf774260-aead-474a-8860-ada976771b41_960x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:960,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:773624,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pdVo!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 424w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 848w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 1272w, https://substackcdn.com/image/fetch/$s_!pdVo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbf774260-aead-474a-8860-ada976771b41_960x480.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>Introduction</h2><p>Have you heard that the Stacks blockchain leverages something called "<strong>Bitcoin finality</strong>" to inherit the security of the Bitcoin network? This concept is key to understanding Stacks' unique settlement process and security model.</p><p>In this beginner's guide, I'll explain Bitcoin finality on Stacks in simple terms even a dummy can understand!</p><h2>What is Bitcoin Finality?</h2><p>On Bitcoin, transactions become irreversible once buried under enough "confirmations" (new blocks). More confirmations = more immutable.</p><p>The exact number of blocks required for finality depends on each user's security preferences. But a common assumption is that 6 blocks is safe for small payments and larger payments may wait for more confirmations.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!d-nW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!d-nW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 424w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 848w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!d-nW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg" width="1456" height="771" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:771,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:186400,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!d-nW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 424w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 848w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!d-nW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a85924-f11e-433a-b0b2-4da0e7d4855b_1812x960.jpeg 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>For example, exchanges may require 6 confirmations for small BTC withdrawals but a larger number like 12 confirmations for very large withdrawals. <a href="https://originstamp.com/blog/what-are-blockchain-confirmations-and-why-do-we-need-them/">Read more here</a></p><h2><strong>Stacks Targets 100 Bitcoin Blocks for Finality</strong></h2><p>For Stacks, they are targeting a Bitcoin finality depth of 100 blocks for Stacks settlement blocks. This means that once a Stacks settlement block is buried under 100 newer Bitcoin blocks, the transactions contained in that settlement block are considered irreversible</p><p>Reversing transactions that have Bitcoin finality would require an attacker to reorganize the Bitcoin blockchain by mining a longer fork that overturns 100 blocks worth of proof-of-work. This is extremely difficult and expensive to do with Bitcoin's current hashrate.</p><p>So after ~100 Bitcoin blocks, Stacks settlement blocks achieve probabilistic finality. This is how Stacks is able to leverage the security properties of Bitcoin</p><p>Reversing these 100+ confirm settled Stacks txs would require reversing those Bitcoin blocks - an extremely difficult task that grows harder over time. This gives Stacks txs a probabilistic guarantee of immutability based on the massive amount of energy securing Bitcoin.</p><h2><strong>Stacks Gets Speed + Bitcoin Security</strong></h2><p>Stacks gets fast 5-second blocks for responsiveness by confirming txs rapidly at layer 2. But ultimately those txs settle on Bitcoin periodically. <a href="https://stacksinsider.com/p/how-stacks-nakamoto-will-transform-bitcoin-defi">Read more about fast block here</a></p><p>But ultimately, these rapid Stacks transactions will settle on the slower Bitcoin chain periodically in batches.</p><p>This gives users the best of both worlds - responsiveness combined with ultra secure settlement in Bitcoin.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vhBj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vhBj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 424w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 848w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 1272w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vhBj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp" width="1456" height="1426" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1426,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:42340,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!vhBj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 424w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 848w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 1272w, https://substackcdn.com/image/fetch/$s_!vhBj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b5543d2-a680-4483-bca1-8786838cc4e0_1456x1426.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The result: speed for apps, security of settlement. Rapid processing with immutable Bitcoin backups. DApps can operate at lightning speed with the security of a mountain.</p><p>Stacks "Nakamoto" release brings this Bitcoin settlement to bulk confirm many Stacks txs, enabling breakthrough speed and scalability while respecting Bitcoin's ethos.</p><p>Stacks enables Bitcoin to become the base trust layer for a new era of lightning-fast but self-sovereign applications.</p><h3><strong>Unleashing Bitcoin's Potential as a Secure Foundation</strong></h3><p>By leveraging Bitcoin's resilience with techniques like finality, Stacks unlocks new potential for Bitcoin to serve as the base trust layer for lightning fast decentralized apps.</p><p>The next generation of finance, social, gaming and creative applications can operate at Web 2.0 speeds while backed by the security of the world's most robust blockchain.</p><p>So that's Bitcoin finality on Stacks explained for dummies! Let me know if you have any other questions.</p>]]></content:encoded></item><item><title><![CDATA[How Stacks Nakamoto Will Transform Bitcoin DeFi]]></title><description><![CDATA[The Stacks blockchain is designed to unleash the full potential of Bitcoin as a productive asset for decentralized applications, while preserving its security and monetary properties.Thanks for reading WorkableCoin !]]></description><link>https://blog.stx.city/p/how-stacks-nakamoto-will-transform-bitcoin-defi</link><guid isPermaLink="false">https://blog.stx.city/p/how-stacks-nakamoto-will-transform-bitcoin-defi</guid><dc:creator><![CDATA[STXCITY]]></dc:creator><pubDate>Tue, 25 Jul 2023 08:28:30 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/ee3cda56-cb84-4ccc-96d8-40b3b594a6ab_2240x1260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jwzb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jwzb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 424w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 848w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 1272w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jwzb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png" width="1456" height="412" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:412,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:202606,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!jwzb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 424w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 848w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 1272w, https://substackcdn.com/image/fetch/$s_!jwzb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56ccbd5e-dae8-4ea3-a8a7-72ea7511d4e9_4382x1241.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>The Stacks blockchain is designed to unleash the full potential of Bitcoin as a productive asset for decentralized applications, while preserving its security and monetary properties.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading WorkableCoin ! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>The upcoming Nakamoto release brings groundbreaking innovations like sBTC and Bitcoin finality that will greatly expand Bitcoin's flexibility and utility.</p><p>In this 2000+ word guide, we'll cover everything you need to know about the Stacks blockchain, how it extends Bitcoin's capabilities, and what the major features coming in the Nakamoto release are.</p><h2><strong>Introduction to Stacks</strong></h2><p>Stacks is a layer-1 blockchain that enables developers to build decentralized applications (dApps) powered by Bitcoin.</p><p>It expands Bitcoin's scripting language to allow fully-expressive smart contracts. dApps on Stacks gain the benefits of using Bitcoin for payments, transactions, and overall programmability.</p><p>Some key properties of Stacks include:</p><ul><li><p><strong>Trustless bridges to Bitcoin</strong> - Smart contracts can hold BTC, react to Bitcoin transactions, and settle transactions on the Bitcoin blockchain.</p></li><li><p><strong>A Turing-incomplete programming language</strong> called Clarity that allows safer smart contracts compared to alternatives like Solidity.</p></li><li><p>Consensus model called <strong>Proof of Transfer (PoX)</strong> that reuses Bitcoin's expended energy to achieve blockchain consensus. Miners bid by burning BTC.</p></li><li><p>Tightly integrated Bitcoin node RPC to read Bitcoin blockchain state from smart contracts.</p></li><li><p>Upcoming support for ZK Rollups to achieve high scalability while preserving Bitcoin settlement.</p></li></ul><p>The goal of Stacks is to expand what developers can do with Bitcoin - enabling use cases like decentralized finance (DeFi), NFTs, tokenized assets, autonomous digital organizations, and much more.</p><p>All of this is achieved while using Bitcoin's UTXO model, leveraging Bitcoin's security for settlement, and strictly respecting Bitcoin's monetary policy.</p><p>Next, we'll examine the core components of Stacks in more detail before diving into the upcoming Nakamoto release.</p><h2><strong>Key Components of the Stacks Blockchain</strong></h2><p>There are several key technical components that enable Stacks to extend Bitcoin's functionality in a decentralized way. These include:</p><h3><strong>Proof of Transfer (PoX) Consensus</strong></h3><p>Stacks uses a novel consensus mechanism called Proof of Transfer (PoX) to achieve a blockchain consensus algorithm that is symbiotic with Bitcoin.</p><p>PoX allows Stacks to reuse energy already expended in Bitcoin mining to elect block producers. Here is how it works at a high level:</p><ul><li><p>Bitcoin miners can participate in PoX by burning small amounts of BTC in "leader election" transactions.</p></li><li><p>The more BTC burned, the higher probability a miner has of being elected leader to generate the next block.</p></li><li><p>This PoX leader election happens on the Bitcoin chain, where bids are immutable and censorship resistant.</p></li><li><p>Elected PoX leaders gain the right to produce new blocks on Stacks and earn STX tokens as rewards.</p></li><li><p>STX holders called "Stackers" can also earn BTC rewards by locking up STX tokens to help secure the chain.</p></li><li><p>Consensus security is ultimately derived from proof-of-work via the verifiable burn of expended BTC.</p></li></ul><p>PoX enables a symbiotic relationship between Bitcoin and Stacks. Bitcoin provides initial energy expenditure and immutable leader elections, while Stacks allows recycled energy to provide additional utility.</p><p>Both BTC and STX tokens end up serving unique roles in the dual consensus systems.</p><h3><strong>Block Settlement on Bitcoin</strong></h3><p>Unlike sidechains that operate independently, activity on the Stacks blockchain ultimately settles on the Bitcoin blockchain.</p><p>Stacks block headers and other state is hashed and recorded on Bitcoin's chain through the PoX process.</p><p>This enables Stacks transactions to benefit from the full security of Bitcoin's proof-of-work, while retaining faster performance for layer-2 activity.</p><p>Settlement on Bitcoin provides some key advantages:</p><ul><li><p>Stacks transactions can leverage probabilistic finality of Bitcoin, which increases over time.</p></li><li><p>Validity of Stacks transactions can be independently verified by inspecting the Bitcoin blockchain.</p></li><li><p>Forking or reorganizing settled Stacks blocks requires reorganizing Bitcoin, making Stacks more secure.</p></li><li><p>Recording data on Bitcoin acts as a time stamping service, enabling proof of publication for things like intellectual property.</p></li></ul><p>Overall, block settlement strengthens the security ties between Stacks and Bitcoin. Stacks gets security, and Bitcoin gets more utility.</p><h3><strong>Tight Bitcoin Integration</strong></h3><p>Stacks nodes run a full Bitcoin node daemon and index the Bitcoin blockchain. This allows smart contracts on Stacks to read data from the Bitcoin chain.</p><p>Having tight integration and built-in RPC calls enables advanced Bitcoin-Stacks interactions. For example:</p><ul><li><p>Smart contracts can be notified when a specific BTC payment happens, enabling atomic swaps.</p></li><li><p>NFTs minted on Stacks can be transferred directly from a Bitcoin address by including transfer in a BTC transaction.</p></li><li><p>Stacks dApps can react to Bitcoin transactions, enabling things like a decentralized BTC-triggered crowdfunding app.</p></li></ul><p>This tight coupling where Stacks contracts can react to Bitcoin transactions is a unique capability not found in competing smart contracting platforms.</p><h3><strong>Clarity: A New Smart Contract Language</strong></h3><p>Clarity is a new smart contract language designed specifically for Stacks that aims to simplify auditing and improve security.</p><p>Some key properties of Clarity include:</p><ul><li><p><strong>Decidable</strong> - Clarity is intentionally not Turing-complete, meaning contract outcomes can be mathematically verified without execution. This makes auditing simpler.</p></li><li><p><strong>Functional</strong> - Clarity uses a functional programming model, avoiding complexities with global state in languages like Solidity. Data flows one direction.</p></li><li><p><strong>Typed</strong> - Strong static typing allows more compile time checking and safety. Bugs from implicit conversions are reduced.</p></li><li><p><strong>Readable</strong> - The code is meant to be read and understood by humans. Security critical code can be audited more easily.</p></li><li><p><strong>No Reentrancy</strong> - Clarity does not have callbacks or looping constructs that lead to reentrancy issues that have caused problems in Solidity.</p></li></ul><p>While less powerful than Turing-complete languages, Clarity offers increased security and safety guarantees. This is a worthwhile tradeoff for a system handling digital money.</p><p>The Learn Clarity programming course offers a great introduction to writing smart contracts in Clarity.</p><h3><strong>Microblock Architecture</strong></h3><p>To achieve faster blockchain performance, Stacks employs a microblock architecture inspired by Bitcoin's original design:</p><ul><li><p><strong>Macroblocks</strong> are produced on average every 10 minutes just like Bitcoin blocks. They settle transactions to the Bitcoin chain similar to settlement blocks described earlier.</p></li><li><p><strong>Microblocks</strong> are produced in between macroblocks and can be created every second. They allow faster processing of transactions.</p></li><li><p>Microblocks are chained together and provide quick confirmations. Periodically the chained microblocks are committed into a macroblock that settles on Bitcoin.</p></li></ul><p>This architecture retains the security of Bitcoin for final settlement while enabling higher scalability and confirmation times required for dApps.</p><p>Now that we've covered the core technical components of Stacks, let's examine the major improvements coming in the Nakamoto release.</p><h2><strong>What's Coming in the Stacks Nakamoto Release</strong></h2><p>The next major version of Stacks dubbed Nakamoto introduces several groundbreaking features that will greatly expand Bitcoin's utility when integrated with Stacks.</p><p>Nakamoto will introduce capabilities like:</p><ul><li><p><strong>sBTC</strong> - A trustless 2-way peg for Bitcoin to enable usage of BTC in smart contracts.</p></li><li><p><strong>Bitcoin finality</strong> - Settlement of Stacks transactions under Bitcoin security, only reversible by Bitcoin reorg.</p></li><li><p><strong>Faster blocks</strong> - New mechanisms for block production and propagation enabling 5 second blocks.</p></li></ul><p>Let's look at each of these major features in more depth:</p><h3><strong>sBTC - A Decentralized Peg for Bitcoin</strong></h3><p>sBTC is a new Bitcoin-pegged asset standard being introduced on Stacks that will enable bringing BTC liquidity into smart contracts in a trustless manner.</p><p>It allows users to lock up BTC and mint sBTC 1:1 on Stacks while retaining high decentralization and security guarantees.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!3gQM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!3gQM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 424w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 848w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 1272w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!3gQM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png" width="1456" height="541" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/aab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:541,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:120946,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!3gQM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 424w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 848w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 1272w, https://substackcdn.com/image/fetch/$s_!3gQM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faab7620a-83c2-41c8-b8fa-364447bc5f56_3840x1426.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">sBTC allows minting an asset on Stacks that's redeemable 1:1 for actual BTC, in a decentralized way.</figcaption></figure></div><p></p><p>Some key properties of sBTC include:</p><ul><li><p><strong>Trustless 2-way peg</strong> - sBTC is pegged 1:1 with real BTC but used in Stacks contracts. It can be redeemed trustlessly via the peg.</p></li><li><p><strong>Decentralized signing</strong> - Peg-ins and peg-outs use decentralized threshold signatures by Stacks Stackers, not a centralized party or federation.</p></li><li><p><strong>Open membership</strong> - Anyone can participate in signing peg transactions by running a Stacker node, similar to Bitcoin mining.</p></li><li><p><strong>Incentivized</strong> - Stackers are incentivized to manage the peg properly through STX locked as collateral and BTC block rewards from Stacks consensus.</p></li><li><p><strong>No wrapping fees</strong> - Users just pay standard BTC transaction fees for pegging in and out, unlike wrapped token models on other chains.</p></li><li><p><strong>BTC settled</strong> - All peg operations are settled ultimately as Bitcoin transactions, enabling Bitcoin-level security.</p></li></ul><p>sBTC brings major advantages over existing BTC token standards on other chains:</p><ul><li><p>Higher decentralization by avoiding wrapping services through a corporation or small federation.</p></li><li><p>Stronger security by settling all peg operations on Bitcoin.</p></li><li><p>Significantly reduced costs by avoiding wrapping fees.</p></li></ul><p>By combining the sBTC peg with Clarity smart contracts, many new Bitcoin use cases are unlocked:</p><ul><li><p>Trustless BTC trading on decentralized exchanges</p></li><li><p>Using BTC as collateral for borrowing or margin trading</p></li><li><p>Issuing stablecoins and algorithmic tokens backed by BTC</p></li><li><p>Bitcoin payment channels and state channels</p></li><li><p>Trust minimized cross-chain atomic swaps</p></li><li><p>Smart contract wallets with BTC inherited security</p></li></ul><p>sBTC is poised to be an essential component to unlock the multi-trillion dollar world of DeFi for Bitcoin.</p><h3><strong>Bitcoin Finality for Stacks Transactions</strong></h3><p>While the initial version of Stacks settled block headers on Bitcoin, transactions could still be reversed in theory by Stacks chain reorganizations.</p><p>Nakamoto will introduce Bitcoin finality where Stacks transactions, once confirmed under sufficient PoX blocks, will inherit Bitcoin's security model.</p><p>This means settled Stacks transactions can only be reversed by reversing the Bitcoin blockchain itself, which is exceedingly difficult and expensive.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0rZH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0rZH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 424w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 848w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0rZH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg" width="156" height="686.9724770642201" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:3840,&quot;width&quot;:872,&quot;resizeWidth&quot;:156,&quot;bytes&quot;:101799,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0rZH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 424w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 848w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!0rZH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffccd4e37-1375-4202-9e8b-b59cc603472c_872x3840.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Bitcoin Finality gives Stacks txs irreversibility once confirmed under ~100 PoX blocks, requiring a deep reorg on Bitcoin to reverse</figcaption></figure></div><p></p><p>Here's how Bitcoin finality works in more detail:</p><ul><li><p>Stacks blocks that settle on Bitcoin become immutable once buried under approximately 100 PoX confirmations.</p></li><li><p>Reversing these settled transactions requires reversing the associated Bitcoin block, which means reorging Bitcoin over 100 blocks deep.</p></li><li><p>This is economically infeasible today given Bitcoin's massive collective hashrate securing the network.</p></li><li><p>Stacks transactions with Bitcoin finality therefore gain a probabilistic guarantee of immutability based on Bitcoin's security, not just Stacks.</p></li></ul><p>Bitcoin finality makes attacking or manipulating settled parts of Stacks history prohibitively expensive. Stacks transactions gain true blockchain immutability.</p><p>The more confirmations, the stronger the finality guarantee. But even with just 1 day of PoX confirmations, Stacks transactions will be practically immutable due to Bitcoin's security.</p><p>This brings Stacks much closer to the ideal of Bitcoin smart contracts, offering speed while inheriting Bitcoin's unparalleled security.</p><h3><strong>Faster Block Production</strong></h3><p>In the initial version of Stacks, block production follows Bitcoin - a new block is produced every 10 minutes on average.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Vj9P!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Vj9P!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 424w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 848w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 1272w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Vj9P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png" width="130" height="398.0861244019139" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:3840,&quot;width&quot;:1254,&quot;resizeWidth&quot;:130,&quot;bytes&quot;:128741,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Vj9P!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 424w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 848w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 1272w, https://substackcdn.com/image/fetch/$s_!Vj9P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21a375c5-dc71-44b5-a06e-2a6ee847c436_1254x3840.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Faster ~5 second blocks dramatically increases tx throughput and improves dApp responsiveness, while retaining security of Bitcoin settlement</figcaption></figure></div><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/p/how-stacks-nakamoto-will-transform-bitcoin-defi?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Thank you for reading Stacks Insider. This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/p/how-stacks-nakamoto-will-transform-bitcoin-defi?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://blog.stx.city/p/how-stacks-nakamoto-will-transform-bitcoin-defi?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Stacks Insider! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>While microblocks improved confirmation times, Nakamoto will introduce mechanism to safely achieve block production measured in seconds rather than minutes or hours:</p><ul><li><p><strong>5 second blocks</strong> - Stacks is targeting production of new blocks every 5 seconds on average, over 100x faster than Bitcoin.</p></li><li><p><strong>Bitcoin-backed security</strong> - These fast Stacks blocks still eventually settle on Bitcoin, inheriting Bitcoin's security model.</p></li><li><p><strong>Probabilistic finality</strong> - Even before Bitcoin settlement, rapid PoX confirmations provide strong probabilistic finality at 5 second intervals.</p></li><li><p><strong>Open membership</strong> - Anyone will be able to spin up a miner and participate in block production by burning BTC, preserving Bitcoin's permissionless model.</p></li></ul><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AyFj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AyFj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 424w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 848w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 1272w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!AyFj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png" width="1456" height="1426" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1426,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:340085,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AyFj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 424w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 848w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 1272w, https://substackcdn.com/image/fetch/$s_!AyFj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4e143b4c-6c81-4dbc-998a-4522b6b17677_3840x3760.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">A diagram showing how Stacks settles transactions on Bitcoin</figcaption></figure></div><p>The faster block times are achieved through an intelligent combination of two types of blocks:</p><ul><li><p><strong>Settlement blocks</strong> - Still produced at ~10 minute Bitcoin block intervals, these blocks settle transactions to Bitcoin and determine forks.</p></li><li><p><strong>Microblocks</strong> - Produced in ~5 second intervals in between settlement blocks. Provide rapid confirmations while inheriting the deterministic consensus of the settlement blocks.</p></li></ul><p>This hybrid model balances Bitcoin's security with the speed needed for consumer facing dApps.</p><p>Faster blocks and quick finality unlocks use cases like real-time decentralized exchanges, gaming applications, and any dApp needing millisecond confirmation times.</p><p>Yet it retains the core benefits of Bitcoin - its monetary policy, resistance to censorship, trust minimization, and longevity as a store of value.</p><p>The end result is blockchain scaling done right - with speed but not at the cost of security or decentralization.</p><h2><strong>Real World Impact</strong></h2><p>The open source Stacks project has gained significant momentum with a vibrant community forming around building decentralized apps and businesses using Bitcoin and Stacks.</p><p>Some statistics about current adoption:</p><ul><li><p>Over 33,000+ community members across social platforms</p></li><li><p>$500M+ in assets locked up in the Stacks blockchain</p></li><li><p>Over 5,000 smart contracts deployed</p></li><li><p>Major businesses building include Anchorage, Blockchain.com, Strike, and more</p></li><li><p>Stacks connected with hardware wallets like Ledger</p></li><li><p>Listed on most major exchanges including Binance, Coinbase, FTX, and OkCoin</p></li><li><p>Stacking and mining rewards distributed across thousands globally</p></li></ul><p>As Nakamoto brings sBTC, Bitcoin finality, and faster blocks in 2023, Stacks is poised to transform blockchain in several ways:</p><ul><li><p>Unlocking the trillion dollar DeFi potential for Bitcoin</p></li><li><p>Allowing Bitcoin to be the native payment token for Metaverse and Web 3.0 experiences</p></li><li><p>Introducing exponential improvements in smart contract security and safety</p></li><li><p>Proving that radical decentralization and performance can co-exist</p></li><li><p>Showing a pathway for more sustainable and energy-efficient public blockchains</p></li><li><p>Offering real, deployed answers to the blockchain trilemma of decentralization, security, and scalability</p></li></ul><p>By strengthening the symbiotic relationship between Stacks and Bitcoin, major foundational bottlenecks around Bitcoin utilization and scalability are addressed.</p><p>This enables Bitcoin to stay laser focused on its core value proposition as the most secure store of value and settlement layer for this next era of the open Internet.</p><h2><strong>Conclusion</strong></h2><p>Stacks 2.0 Nakamoto introduces groundbreaking innovations that will greatly expand Bitcoin's flexibility, utility, and ability to service the coming needs of decentralized networks.</p><p>By combining ground-up solutions tailored specifically for Bitcoin, like the sBTC peg and PoX consensus, with secure high performance scaling, Stacks overcomes several limitations while retaining Bitcoin's ethos of decentralization, security, and censorship resistance.</p><p>The result will be the Internet of Value's first productive and programmable base trust layer in Bitcoin, secured by its unmatched network effects and longevity.</p><p>On top of this base layer, Stacks enables an open, inclusive ecosystem where both businesses and consumers can participate in a newly decentralized digital economy built on Bitcoin.</p><p><em>Disclosure: The author is involved with the Stacks project.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://blog.stx.city/subscribe?"><span>Subscribe now</span></a></p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading WorkableCoin ! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.stx.city/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading WorkableCoin ! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>