<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Nayrouz on Medium]]></title>
        <description><![CDATA[Stories by Daniel Nayrouz on Medium]]></description>
        <link>https://medium.com/@danielnayrouz?source=rss-cbb677665bfe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jJNi-UdBM6se0YOFm1905Q.jpeg</url>
            <title>Stories by Daniel Nayrouz on Medium</title>
            <link>https://medium.com/@danielnayrouz?source=rss-cbb677665bfe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:09:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danielnayrouz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quantum Computing On-Chain? Why Blockchain’s Kryptonite May Also Be Its Greatest Opportunity]]></title>
            <link>https://danielnayrouz.medium.com/quantum-computing-on-chain-why-blockchains-kryptonite-may-also-be-its-greatest-opportunity-bc4eff3db616?source=rss-cbb677665bfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc4eff3db616</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[quantum-attack]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-resistant-ledger]]></category>
            <category><![CDATA[account-abstraction]]></category>
            <dc:creator><![CDATA[Daniel Nayrouz]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 20:56:40 GMT</pubDate>
            <atom:updated>2024-09-13T22:08:33.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dYp2-yS4IkYidL-_7CxgbA.jpeg" /></figure><p>In my <a href="https://medium.com/trireme-trading/homomorphic-encryption-a-scalable-solution-for-privacy-security-and-compliance-on-chain-bc173b716d0a">previous technical deep-dive</a>, I introduced the technology of homomorphic encryption and outlined its clear potential to kill, not two, but three birds with one stone by allowing for blockchains to simultaneously boast greater privacy, security and regulatory compliance — in other words, be the very implementation that finally removes the present-day conundrum of having to strike compromises between these three elements when building on-chain.</p><p>If, in light of the above, homomorphic encryption is blockchain’s magic bullet, today’s topic of focus, <a href="https://www.google.com/search?q=what+is+quantum+computing&amp;oq=what+is+quantu&amp;gs_lcrp=EgZjaHJvbWUqBwgBEAAYgAQyBwgAEAAYgAQyBwgBEAAYgAQyBwgCEAAYgAQyBggDEEUYOTIHCAQQABiABDIHCAUQABiABDIHCAYQABiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCDIyMDZqMGo0qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8">quantum computing</a>, is more akin to a mighty double-edged sword. If harnessed with expertise and responsibility, it will be equally, if not even more instrumental to blockchain’s growth and adoption trajectory. If left to its own devices, however, it presents a number of challenges that blockchain developers will need to confront in order to secure blockchain from a number of existential attack vectors.</p><p>We’ve all heard it in passing that quantum computing is the ‘next big thing’ in the history of ever-growing computational power in the world, but few of us are intricately familiar with precisely how it sets to achieve its breakthroughs. Let’s begin with a quick recap on what exactly quantum computing is.</p><p>Quantum computing is a groundbreaking field that harnesses the principles of quantum mechanics to solve enormously complex problems in a small fraction of the time that regular computers can solve smaller problems. Their core features include:</p><p><strong>Superposition</strong>: Unlike traditional computers, quantum machines use qubits, not bits. Whereas bits can only be 0 or 1, qubits can be both 0 and 1 at the same time, thanks to a concept called superposition. In other words, this means that qubits can be in any position between off and on, less like a light switch and more like a dimmer switch.</p><p>This parallelism leads to an exponential increase in processing power, as each additional qubit effectively doubles the theoretical processing power of a quantum computer. This is because each qubit added to the system doubles the total number of possible states that can be represented and processed simultaneously.</p><p><strong>Entanglement</strong>: When two qubits become linked, changing one instantly affects the other, no matter how far apart they are. This “spooky action at a distance,” as Einstein playfully called it, allows for much faster information processing. This means that once qubits are entangled, they form a system where they can no longer be described independently of each other.</p><p>This interconnectedness allows quantum computers to process complex, multi-part problems more efficiently because the qubits can share information instantly.</p><p><strong>Quantum Gates, Circuits</strong>: Just like regular computers have circuits and logic gates, quantum machines rely on quantum gates and circuits. These perform operations on qubits, guiding them through their dance of superposition and entanglement.</p><p>Thanks to these features, quantum computers hold the potential to crack problems that would take conventional computers centuries, like designing life-saving drugs or optimising complex systems. However, it’s still early days. Building and harnessing these machines has its challenges, like keeping those delicate qubits stable. Think of quantum computing as a powerful, uncharted territory waiting to be explored. It’s not just about replacing your laptop; it’s about pushing the boundaries of what’s possible with information processing, with immense potential to revolutionise various fields.</p><p>Quantum computing is still in its early stages of development, but it has the potential to revolutionise many fields, including:</p><p><strong>Drug discovery</strong>: Simulating the behaviour of molecules and designing new drugs more efficiently.</p><p><strong>Materials science</strong>: Designing new materials with enhanced properties, such as superconductors and semiconductors.</p><p><strong>Financial modelling</strong>: Optimising financial portfolios and risk management strategies.</p><p><strong>Artificial intelligence</strong>: Developing new AI algorithms that are more powerful and efficient.</p><h3>But what does it mean for blockchain?</h3><p>The rapidly evolving realm of blockchain technology has revolutionised the way we interact with value, empowering individuals and institutions to conduct secure, transparent, and decentralised transactions across the globe. However, despite its transformative potential, blockchains running on traditionally encrypted private keys — including Bitcoin — are existentially vulnerable on account of this reliance on simple cryptographic algorithms. They are vulnerable to attacks by quantum computers. As quantum computing capabilities continue to advance, the need to address this vulnerability becomes increasingly urgent.</p><p>This vulnerability, in a nutshell, is that quantum computers will almost certainly become powerful enough to break the cryptographic algorithms — namely Rivest-Shamir-Adleman (RSA) and Elliptic Curve Cryptography (ECC) — that currently secure transactions and protect sensitive data from unauthorised access. This would enable attackers to decrypt private keys, forge transactions, or even manipulate the blockchain itself. As it stands, this poses a significant threat to the integrity and security of blockchain-based systems, threatening their primary value proposition of trustless security.</p><p>The most notable example of a vulnerable blockchain is none other than the King of Crypto, Bitcoin. Bitcoin uses elliptic curve digital signature algorithm (ECDSA) for its public key cryptography, meaning that when a Bitcoin transaction is made, the public key associated with the sender’s address is exposed to the network. While the network currently relies on the computational infeasibility of deriving a private key from a public key, a sufficiently powerful quantum computer could theoretically perform this computation efficiently using Shor’s algorithm. So, if an attacker had access to a quantum computer, they could potentially derive the private key from the public key exposed in a transaction, allowing them to access and spend bitcoin tokens without authorisation.</p><p>We’re all familiar with the term ‘frontrunning’ in crypto — i.e. the act of pre-empting market movements to execute advantageous trades. Now, it’s time for the crypto industry as a whole to adopt a form of strategic ‘frontrunning’ — not in the markets, but against the looming threat posed by quantum computing. By proactively embedding quantum-resistant technologies and methodologies within blockchain infrastructure, the industry can effectively immunise itself against quantum computing’s potential to compromise its cryptographic security.</p><p>Ultimately, by leveraging quantum cryptography, blockchain technology can achieve a level of security that is unprecedented, ensuring that transactions and data remain protected even as quantum computing capabilities continue to grow. This will foster trust and confidence in blockchain-based systems, paving the way for their wider adoption and integration into various industries.</p><p>But incorporating this technology isn’t just about protecting blockchain from its menaces; it’s also a case of leveraging the very advances in quantum computing to reinforce and rejuvenate blockchain’s own capacities, propelling them to new heights once more. Here are some of the leading solutions currently in development with the aim of:</p><ol><li>Immunising blockchain’s cryptography against quantum attacks</li><li>Leveraging quantum computing’s potential to bolster blockchain’s core offering</li></ol><p>Let’s start by looking at two existing technologies that have bestowed elements of quantum resistance on Ethereum: account abstraction and zero-knowledge proofs, ZK-Stark + SNark.</p><h3>Account Abstraction (AA)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dY0tamP30cRv22ch9FrLyQ.jpeg" /></figure><p>Account abstraction in crypto refers to the ability to manage and use blockchain accounts with smart contracts instead of relying solely on private keys. AA essentially separates the control of funds from the execution of transactions. Instead of directly signing each transaction with a private key, users leverage smart contracts to define spending rules and permissions. This grants them greater control over their assets while simultaneously mitigating the security risk associated with private key exposure.</p><p>Ethereum currently uses Externally Owned Accounts (EOAs) as the main account model, relying on private keys for signing transactions. Although EOAs offer a simpler design, their behaviour is strictly defined by the underlying protocol, limiting their adaptability to meet various user needs. This rigidity often results in a subpar user experience (UX) and poses an obstacle to widespread acceptance. The core issue lies in the protocol’s reliance on a private and public key pair to control EOAs. The main challenges associated with using a key pair for transactions include, but are not limited to:</p><ul><li><strong>Poor UX</strong> on account of needing to securely and discreetly store the private key as opposed to relying on six-digit passwords or facial recognition, prior to initiating transactions.</li><li><strong>The sole authentication method</strong>, which means that the protocol solely relies on the knowledge of the private key for transaction initiation and account ownership verification, creates a significant security risk as anyone with access to the key is indistinguishable from the rightful owner in the event of a compromise.</li><li><strong>Protocol dominance</strong> meaning that within the EOAs system, it is the Ethereum protocol, rather than the developers, that dictates the validity of transactions.</li></ul><p>Now, the new <strong>ERC-4337 token standard</strong> enables “smart contract wallets” that offer the key benefits associated with AA. These wallets hold funds and execute transactions based on programmed logic, enabling features like:</p><ul><li>Gasless transactions: Protocols can sponsor transaction fees, offering users a seamless experience without requiring them to hold ETH.</li><li>ERC-20 token payments: Users can pay transaction fees directly in ERC-20 tokens, increasing flexibility and potentially reducing costs.</li><li>Enhanced security: Smart contract wallets can implement advanced security measures like multi-signature approvals and social recovery, mitigating the risks of single private keys.</li></ul><p>However, it’s important to note that the security of these wallets heavily relies on the entry point contract, which acts as a central trust point for EIP-4337 compliant accounts. Smart contract developers also have a responsibility to implement proper verification functions, access control mechanisms, and minimise the attack surface by restricting sensitive operations to the entry point contract.</p><p>Beyond its immediate benefits, EIP-4337 holds significant potential for Ethereum’s future. It is considered a crucial step towards large-scale adoption by improving user experience through features like:</p><ul><li>Granular account permissions: Users can define more precise spending rules and access controls for their accounts, enabling more complex and secure financial management.</li><li>Multi-signature support: EIP-4337 facilitates the creation and use of multi-signature accounts, where multiple parties need to approve transactions, enhancing security and trust for shared accounts.</li></ul><p>Most importantly, though, EIP-4337 lays the groundwork for quantum-resistant transactions on Ethereum. By supporting alternative verification mechanisms beyond the traditional ECDSA, which could be vulnerable to future quantum computing advancements, it helps future-proof the network and its users’ assets.</p><p>So, while EIP-4337 represents a significant leap forward for rendering blockchain quantum-resistant, it’s a work in progress. The full integration of AA into the core Ethereum protocol is planned for future upgrades, with ongoing discussions and refinements regarding its implementation. Nevertheless, EIP-4337 marks a major step towards a more secure, user-friendly, and future-proof Ethereum ecosystem.</p><p>Even more revolutionary, secure and quantum-resistant than EIP-4337, however, is what Starknet have introduced — native account abstraction.</p><p>Starknet places AA at the forefront: every account is a smart account, eliminating the existence of EOAs entirely. This marks a transition to an environment where intelligence is embedded in every account. Starknet’s entire infrastructure, including wallets and block explorers, is specifically crafted for AA, setting it apart from other Layer 1 and Layer 2 networks. This positions Starknet as a pioneering smart ecosystem, where developers can create applications and tools with the assurance that AA is universally applicable, bypassing the need to accommodate non-AA accounts. Developers have the liberty to harness the full potential of AA in their applications, with the understanding that smart accounts are the sole medium for user interaction.</p><p>Starknet’s inherent AA architecture removes the complex requirements associated with ERC-4337. There’s no need to modify infrastructure and tools for compatibility. This streamlining is made possible by assigning the role of the Bundler to the Sequencer, simplifying the overall system by design. Here are two live applications of this quantum-resistant and user-friendly technology:</p><p><strong>Braavos<br></strong>Leveraging the native smart account feature of Starknet, the Braavos team developed a smart wallet that offers a user experience similar to Web 2.0, enabling access to your wallet through the biometric features of your mobile phone. This is interesting because the cryptographic technologies employed by most blockchains differ significantly from those used in mobile devices, often leading to expensive signature verification processes. However, this innovation may soon allow for transaction signatures via mobile phones, while still ensuring robust security.</p><p><strong>Argent<br></strong>Argent introduces a novel feature through signature abstraction, known as ArgentX’s guardian service, or Argent-Shield. This service provides users with an additional security layer for their accounts by appointing Argent as a guardian. Argent will approve transactions only after receiving email confirmation. This adds a two-factor authentication layer, a security measure widely recognised and used in numerous non-blockchain applications.</p><p>In addition to this, Visa has joined the list of legacy institutions queuing up to incorporate AA, having conducted significant research into ‘auto payments for self-custodial wallets’ on Starknet, further demonstrating the rapidly growing faith in AA as a solution to security and quantum resistance on-chain, that maintains a healthy user experience.</p><h3>Zero-knowledge proofs (ZK-STARKs and ZK-SNARKs)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwIW9Ma3ILkjkDrlTeIXbw.jpeg" /></figure><p><a href="https://chain.link/education/zero-knowledge-proof-zkp">Zero-knowledge proofs</a>, specifically ZK-STARKs and ZK-SNARKs, represent another pivotal advancement in enhancing blockchain technology’s security and privacy, while simultaneously providing a foundation for quantum resistance. These cryptographic techniques allow for the verification of information without revealing the information itself, a feature that not only bolsters privacy and security but also aligns with the push towards quantum-resistant blockchain solutions.</p><p>ZK-SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) enable the proof of possession of certain information without revealing that information or any interaction between the prover and verifier. This technology has been instrumental in enabling privacy-oriented cryptocurrencies and applications by allowing transactions to be verified as valid without disclosing their contents.</p><p>On the other hand, ZK-STARKs (Zero-Knowledge Scalable Transparent Arguments of Knowledge) offer a similar capability but with a few key differences that address some of the limitations of ZK-SNARKs. Notably, ZK-STARKs do not require a trusted setup, which removes a potential vulnerability point and makes them more secure against certain types of attacks. Additionally, they are potentially more resistant to quantum computing attacks due to their reliance on different cryptographic assumptions.</p><p>However, while ZK-STARKs and ZK-SNARKs present promising solutions to enhancing blockchain security and privacy — including by way of quantum resistance — their implementation and optimisation remain complex. The computational intensity of generating and verifying zero-knowledge proofs poses challenges, particularly in terms of efficiency and user experience. Ongoing research and development efforts are focused on making these technologies more accessible and practical for widespread use within the blockchain ecosystem.</p><p>As blockchain technology evolves in response to the advent of quantum computing, the integration of quantum-resistant mechanisms like account abstraction and zero-knowledge proofs (ZK-STARKs and ZK-SNARKs) represents a forward-thinking approach to securing the blockchain against quantum threats. By addressing the dual challenges of privacy and security, these technologies not only mitigate the risks posed by quantum computing but also unlock new possibilities for blockchain applications, paving the way for a more secure, private, and scalable blockchain infrastructure.</p><h3>Quantum Key Distribution (QKD)</h3><p>Quantum Key Distribution (QKD) is a method that utilises quantum mechanics principles to securely distribute encryption keys between parties. The uniqueness of QKD lies in its security, based on the fundamental laws of physics, making it theoretically immune to any computational attack, including those from quantum computers. If an attempt is made to intercept the key, the quantum state of the particles would be altered, thus revealing the presence of an eavesdropper and ensuring the integrity of the key exchange process.</p><p>This secure key distribution is what enables QKD to enhance blockchain security. Whereas currently on blockchain, consensus and transaction validation rely solely on cryptographic protocols, QKD can provide an additional layer of security against quantum attacks by securely distributing keys that are theoretically immune to interception. In this way, QKD can protect the data integrity and communication channels within the blockchain network, making it more resistant to an attack powered by quantum computational power.</p><p>In Q1 of 2022, <a href="https://www.jpmorganchase.com/content/dam/jpm/cib/complex/content/technology/publications/qkd-research-prototype-project-5-1.pdf">an experimental research project conducted by Toshiba, JPMorgan and Ciena</a> demonstrated how a unique optical channel, protected by QKD, can instantly detect and thwart eavesdropping. This innovation was successfully trialled on Liink, the world’s first production-grade, peer-to-peer blockchain network led by a bank, representing the first-ever instance of QKD safeguarding a mission-critical blockchain application.</p><p>Yasushi Kawakura, VP and General Manager of Digital Solutions Division at Toshiba America heralded the success of the experiment by announcing that “we now have a proven and tested method for defending against quantum attacks on blockchain”, and at the time of writing, QKD remains the only solution currently offering mathematically proven guarantees to defend against potential quantum computing-based attacks, its security guarantees rooted firmly in the laws of quantum physics.</p><p>Whilst early iterations of QKD protocols such as BB84 and E91 have been successfully implemented since the turn of the century, it was previously thought that QKD is unscalable on account of the fact that ground-based key exchanges using optical fibres are limited to a few kilometres. The findings of this research study, however, have dwarfed those of past efforts by achieving an unprecedented 800-Gbps quantum-secured optical channel, integrating multiple DWDM channels with a QKD quantum channel over distances up to 100 km. It demonstrated a substantial secure key rate, suitable for real-world, high-capacity applications, a significant leap from prior experiments which were limited in scale and operational conditions. This marked a notable progression in practical, high-performance QKD application in real-world, mission-critical environments including and extending beyond blockchain.</p><h3>Post-quantum cryptography (PQC)</h3><p>Post-Quantum Cryptography (PQC) refers to cryptographic algorithms that, like QKD, are designed to be secure against the potential capabilities of quantum computers, namely quantum attacks.</p><p>PQC encompasses a range of cryptographic primitives, including post-quantum key exchange, digital signatures, and encryption algorithms. These primitives are typically based on mathematical problems that are believed to be resistant to quantum attacks, such as lattice-based cryptography, multivariate polynomial cryptography, hash-based cryptography, and code-based cryptography. The development of PQC is crucial, given that widely used cryptographic algorithms like RSA and ECC are vulnerable to quantum attacks, which could compromise the security of current communication systems and data.</p><p>Unlike QKD, which relies on the strange rules of quantum mechanics to securely share keys, PQC sticks to the realm of pure mathematics. It tackles much harder mathematical problems than traditional methods, making it incredibly difficult for even quantum computers to crack.</p><p>Think of it like building an intricate puzzle with many more pieces and complex rules. It becomes practically impossible for anyone, even a quantum computer, to break the code and unlock the information.</p><p>The focus of PQC research lies in crafting these ultra-secure asymmetric key pairs. These keys come in pairs: a public key for everyone to see and a private key kept secret. The magic lies in the fact that information encrypted with the public key can only be decrypted with the private key, and vice versa.</p><h3>Conclusion</h3><p>As the old saying goes, necessity is the mother of invention. With that in mind, studying the intricate dance between quantum computing and blockchain technology has elucidated the fact that the former presents both a formidable, potentially existential challenge and a pivotal opportunity for blockchain’s evolution. Blockchain will simply need to evolve in order to protect itself from quantum computing’s capacity to undermine traditional cryptographic defences, but with that evolution comes a more robust, usable and scalable iteration of blockchain.</p><p>The vulnerability of blockchain technology, exemplified by the potential for quantum computers to decrypt private keys and forge transactions, casts a shadow over its foundational promise of trustless security. Yet, in this vulnerability lies an opportunity for transformation. By strategically integrating quantum-resistant technologies such as account abstraction, zero-knowledge proofs (ZK-STARKs and ZK-SNARKs), and exploring the frontiers of Quantum Key Distribution (QKD) and Post-Quantum Cryptography (PQC), the blockchain industry can not only shield itself against the quantum threat but also leap forward in its capability to offer even more robust and sophisticated solutions.</p><p>The narrative of blockchain’s response to quantum computing is not one of mere survival but of proactive adaptation and growth. The adoption of account abstraction offers a glimpse into a future where blockchain transactions are not only quantum-resistant but also more user-friendly and versatile, enhancing the overall user experience. Similarly, the integration of zero-knowledge proofs and the exploration of quantum encryption methods like QKD illustrate the industry’s commitment to elevating the security and privacy of blockchain technology to unprecedented levels.</p><p>In conclusion, the journey towards a quantum-secured blockchain is a testament to the industry’s resilience and ingenuity. It reflects a broader commitment to not just addressing imminent threats but also to harnessing the full potential of these advanced technologies to enhance blockchain’s foundational strengths. As we venture into this uncharted territory, the focus on quantum protection and the exploration of new cryptographic frontiers are paramount. They not only ensure blockchain’s viability in the face of quantum advancements but also reinforce its role as a transformative force in the digital era. By embracing the challenges and opportunities presented by quantum computing, the blockchain industry is poised to redefine the boundaries of security, privacy, and trust in the digital world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4eff3db616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Homomorphic Encryption: A Scalable Solution for Privacy, Security and Compliance On-Chain]]></title>
            <link>https://danielnayrouz.medium.com/homomorphic-encryption-a-scalable-solution-for-privacy-security-and-compliance-on-chain-bc173b716d0a?source=rss-cbb677665bfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc173b716d0a</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <category><![CDATA[homomorphic-encryption]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[zkp]]></category>
            <dc:creator><![CDATA[Daniel Nayrouz]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 16:59:29 GMT</pubDate>
            <atom:updated>2024-11-19T03:06:58.918Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MaQNKmjuJ0PtlMGj" /></figure><p>One of the most common misconceptions about blockchain technology among newcomers is that its features of decentralisation, peer-to-peer transactions that eliminate the need for a trusted intermediary, and the use of anonymous wallet addresses, render blockchains ‘private’ by design.</p><p>But as the veterans will know, blockchain is in fact far more transparent than the institutions that facilitate transactions in traditional finance. Since all participants in a blockchain need to reach consensus on the current state of the system’s data and transactions, these computations need to be published, making them a matter of public record.</p><p>In other words, every transaction that has ever been enacted on the Ethereum and Bitcoin blockchain networks, is viewable by anybody at any time on block explorers such as Etherscan and BTCScan.</p><p>And the smooth functioning of blockchain is not the only reason for this unadulterated visibility of on-chain transactions; it is also due to the criticality of regulatory compliance. Regardless of the sector, region or scale of operation, regulations require organisations to maintain detailed records of their financial transactions and activities. A comprehensive and immutable ledger of transactions naturally enables regulatory compliance at minimal operational cost, as auditors can scour through it to verify transactions, track funds and ensure full compliance with anti-money laundering (AML) and know your customer (KYC) requirements, as well as tax reporting requirements and market integrity.</p><p>But this does not mean that privacy is not desirable or desired for developers and users of blockchain alike — far from it! Lack of privacy on blockchain as its stands is leading to an array of concerns including the prospect of theft of user funds, extraction of value from users to miners and validators on the network, as well as mass surveillance. And it has indeed led to the development of numerous technologies implemented within blockchain in an attempt to bolster privacy, most notably zero-knowledge proofs (ZKPs).</p><p>ZKPs are a type of blockchain scalability solution that bundle hundreds of transactions into one single transaction with the aim of reducing the data that needs storing and verifying on the blockchain while also hiding specific details about those transactions. Whilst the technology has made significant inroads in the space, becoming a core feature of privacy-enhancing cryptocurrencies such as Zcash, it is costly and does not allow for the transfer of encrypted data specifically for the purposes of data analysis and computation. Moreover, many apps using ZKPs require third parties with much stronger computational power to actually generate proofs, which ultimately exposes user data to such entities that users need to just ‘trust’. This might include transaction metadata, user identifiers, or other information that forms the basis of the proof. Once the data is with the third party for the purposes of proof generation or analysis and computation, the way they store and handle this data might entail inadequate security measures, potential vulnerabilities, or internal malpractices that could lead to unintended data exposure.</p><p>A more robust solution to this quandary is potentially on the horizon in the form of homomorphic encryption (HE). HE allows for computations to be performed on encrypted data, without ever needing to decrypt it. If integrated into blockchain technology, this would allow for the verification of transactions and processing of sensitive data without revealing details about it to any third parties or publicly accessible block explorers. This in turn means that blockchain users, whether retail or institutional, can achieve the regulatory compliance they need while enjoying a new level of privacy previously unseen in blockchain, as their transactions would be auditable in their encrypted form without the details of such transactions actually being exposed.</p><p>In short, HE represents a beacon of hope for the seemingly improbable reconciliation of arguably the three most hotly requested pillarstones of a blockchain: privacy, security and regulatory compliance.</p><h3>A brief history of homomorphic encryption</h3><p>HE is the process of transforming data into a secure, encrypted format (ciphertext) while still allowing it to be manipulated and analysed as if it were in its original, unencrypted form (plaintext). Unlike traditional encryption, where data is stored in its original form and protected behind an encrypted barrier, HE allows for complex mathematical computations to be directly performed on the encrypted data.</p><p>This approach maintains data security without hindering its usability for analysis and processing. In such a system, the data structure is maintained, ensuring that identical mathematical operations yield the same results even if they are performed on permanently encrypted data.</p><p>At present, the scope of HE operations is categorised into three types:</p><ol><li>Partially Homomorphic Encryption (PHE): This allows for an infinite number of a specific type of operation to be performed on encrypted data. This type is typically limited to either addition or multiplication, but not both. It is useful in scenarios where only one type of operation is needed, which limits its applicability to more complex computations that require multiple types of operations.</li><li>Somewhat Homomorphic Encryption (SHE): SHE extends the capabilities of PHE by supporting a limited number of both addition and multiplication operations. However, it does not support an unlimited number of operations.</li><li>Fully Homomorphic Encryption (FHE): FHE is the most advanced form of HE, allowing for an unlimited number of both additions and multiplications. This means it can theoretically support any computable function. FHE has wide-ranging applications, from secure cloud computing and secure data analysis to private information retrieval and secure voting systems. It can be used in any scenario where data privacy is paramount, and complex computations are required.</li></ol><p>Although practical implementations of HE only started succeeding in recent years, the concept actually dates all the way back to 1978, <a href="https://luca-giuzzi.unibs.it/corsi/Support/papers-cryptography/RAD78.pdf">when a team of cryptographers at MIT proposed “privacy homomorphisms”</a> as a means of allowing computations to be performing on sensitive data without decrypting it. Unfortunately, the early iterations of the technology they developed often required decryption and re-encryption as part of the process, which compromises data privacy and limits the practical use cases of this embryonic form of HE.</p><p>Finally in 2009, however, <a href="https://crypto.stanford.edu/craig/craig-thesis.pdf">a PhD researcher interning at IBM proposed the first “fully homomorphic encryption”</a> (FHE) scheme to perform similar computations on encrypted data without revealing the plaintext, which entailed several crucial breakthroughs for the usability of the technology, including:</p><ul><li><strong>Secure data sharing and analysis</strong>: In many industries including healthcare, finance and government, sensitive information must be shared between institutions and made sense of without being revealed, as is enabled by FHE.</li><li><strong>Private machine learning</strong>: FHE facilitates the training and evaluation of machine learning models on encrypted data, which for organisations translates to harnessing the potential of machine learning without compromising data privacy, even when sharing data with third-party providers or collaborators.</li><li><strong>Privacy-preserving research</strong>: Thanks to FHE, the aforementioned data sharing between different parties opens up opportunities to perform research and analysis on data that remains encrypted at all times.</li></ul><p>Let’s think a little more about what this means in practice: imagine you’re a biomedical researcher in need of more patient data to analyse so you can measure the efficacy of a new type of cancer treatment. The current obstacle you face is that patients and their carers can (with good reason) be reluctant to share their data, as useful as it may be, for fear of privacy breaches.</p><p>But, if their data is homomorphically encrypted, patients would be afforded the peace of mind that their personal details cannot be exposed whilst their medical records are put to good use by scientists. This would in turn allow researchers to analyse information regarding their treatment and responses for the purposes of clinical research, without ever having access to the patient’s identity or any other irrelevant parts of their medical record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*zE8eM4iWKYLBziE_" /><figcaption>Figure 1, Source: <a href="https://link.springer.com/article/10.1007/s40747-022-00756-z">https://link.springer.com/article/10.1007/s40747-022-00756-z</a></figcaption></figure><p>This could lead to a surge in the availability of volunteered data as <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9713155/">patients and their carers become more secure in the knowledge that patient confidentiality is not being compromised</a> should they choose to make this data available to researchers.</p><p>And we’re not the only ones who see the merits of the technology: In March 2021, Microsoft, Intel, and DARPA initiated the Data Protection in Virtual Environments (DPRIVE) program to advance the development of FHE. This collaboration aimed to create computing solutions capable of handling the intensive computational demands of FHE and to establish guidelines for its proper implementation.</p><p>Furthermore, there has been an explosion in availability of Software Development Kits (SDKs) and open-source libraries, enabling developers to more easily work with and build upon FHE technologies. These include:</p><p><strong>Microsoft Seal</strong>: Microsoft has released an open-source library called Microsoft Seal, which provides tools for developers to implement HE on data sets. This library democratises access to end-to-end encryption and computation services, allowing a wider range of developers to engage with FHE. It includes examples of homomorphically encrypted programs and detailed commentary to assist developers in correct and secure implementation.</p><p><strong>Intel’s</strong> <strong>Homomorphic Encryption Toolkit</strong>: Intel has introduced its Homomorphic Encryption Toolkit, designed to speed up HE processes in cloud environments. This toolkit is versatile and compatible with the latest data processing and computing advancements. It features functions specific to lattice cryptography, integration capabilities with Microsoft Seal, and provides examples and technical guides for users.</p><p><strong>Google’s Private Join and Compute</strong>: Google has developed an open-source library named Private Join and Compute, which offers tools for multi-party computation (MPC). This method allows multiple parties to analyse combined data sets without compromising the privacy of the raw data. The library combines FHE techniques with Private Set Intersection (PSI), another cryptographic method, to enhance data confidentiality. Google’s focus extends beyond FHE, aiming to advance the broader field of MPC by integrating FHE with other significant data privacy practices.</p><p>Now to shift our attention back to the intersection between blockchain and HE, we know how important it is for blockchain data to be available for the purposes of computation, analysis and regulatory compliance. And we also know how important it is for that data to remain private even while it’s made use of by the relevant entities. So, here are three pressing issues that we believe HE is about to solve in the blockchain space.</p><h3>Eliminating Maximal Extractable Value (MEV) attacks</h3><p>Maximal Extractable Value (MEV) has for several years been a significant pain point for decentralised finance (DeFi). For those of you who are unfamiliar with it, MEV refers to the additional profit that can potentially be gained by miners or validators on a blockchain network by using their discredition to manipulate the order of transactions within a block.</p><p>It typically occurs via a process of front-running, which is when miners and validators identify pending transactions that are likely to be profitable for the trader (e.g., because they will result in a price change) and then executing those transactions before other miners or validators can see them.</p><p>Another way that MEV can be enacted is via reorging, which involves reordering transactions within a block after that block has been published, ultimately manipulating the outcome of trades or arbitrage opportunities. Finally, it may also occur via fee sniping, which is a process of strategically submitting transactions with higher gas bids than necessary, in order to incentivize miners or validators to include them in a block at the expense of other people’s transactions.</p><p>Imagine a scenario where a miner or validator sees two pending transactions on Ethereum’s largest exchange, Uniswap:</p><p>Transaction A: A user wants to swap 100 ETH for USDT.</p><p>Transaction B: A user wants to swap 1,000 USDT for ETH.</p><p>If the validator includes Transaction A in the block before Transaction B rather than treating them as transactions in separate blocks, they can profit from the price difference between the two pending transactions. So, they proceed to execute Transaction A themselves, which causes the price of ETH to increase. Then, they move Transaction B into that same block, which would allow them to sell this newly acquired ETH for a much higher price than the user intended to buy it for.</p><p>MEV attacks are causing significant detriment to the adoption and reputation of DeFi, earning it in its early years a reputation as a ‘Wild West’ wherein privileged actors can induce higher transaction fees and unfair price movements at the expense of smaller fish. It is estimated that around 60% of Ethereum blocks currently contain MEV, which translates to losses of hundreds of millions of dollars on the part of traders on the network. Early adopters of DeFi rightly have an unwavering belief in the merits of decentralised, peer-to-peer transactions on blockchain-based exchanges that do not rely on physical market makers to determine prices, and are not at liberty to arbitrarily halt users’ trades in the same way that, say, <a href="https://www.cato.org/cato-journal/fall-2021/gamestop-episode-what-happened-what-does-it-mean">brokerages like Robinhood were during the GameStop scandal</a>. The current tragedy therefore is that they often cite MEV attacks as the reason for reluctantly moving their trading back onto centralised exchanges.</p><p>Thankfully, HE on blockchain has the potential to effectively eliminate MEV attacks by allowing for encrypted smart contracts wherein on-chain transactions can be processed and validated without being broadcast publically to the ledger. This means that miners or validators would not know key details about the transaction, such as its value or the assets being exchanged. They would only know that the transaction exists and offers the opportunity for them to earn the standard fee for validating it. This way, it would be impossible for them to extract MEV at the expense of the blockchain’s users as they would not know how to manipulate the order in which transactions are processed.</p><h3>Keeping hackers and thieves in the dark</h3><p>As we know, block explorers such as Etherscan contain information on the value of every single wallet on the Ethereum network and everything that has ever been done in that wallet to accrue the value it has. This includes where your funds initially came from, what you traded on decentralised exchanges, where you parked your assets for passive yield, or which permissions you’ve granted for activity on your wallet while you’re ‘AFK’. It’s rather like walking around downtown and seeing everybody’s bank balances and transaction history tattooed onto their foreheads — the only difference being that you might not necessarily know whose transactions belong to who on-chain.</p><p>In some rare but non-negligible cases, owners of certain wallets have been identified and pursued by criminal gangsters in real life by way of threats and violence, to hand over their private keys. But even being unable to figure out who owns a big wallet doesn’t stop increasingly sophisticated hackers from wanting to exploit that wallet for all that it has. What’s more is that the transaction history, as well as just the value of the wallet, can serve to facilitate their efforts to trick the user into losing their funds to the attacker.</p><p>One such example of how that’s achieved is via the ‘wallet poisoning’ method, a direct byproduct of blockchain’s sheer transparency in its current form. Since 2022, address poisoning, also known as address spoofing, has been performed by attackers to trick victims into transferring their assets to a custom-made address that looks very similar to another trusted wallet on your Etherscan transaction history:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*ZJiGV81Fv8ullysD" /></figure><p>This method relies on bots monitoring big wallets they wish to target, waiting for its owner to deposit any token to it (let’s say LINK), and then depositing a fake, valueless token masquerading as the same token with the same ticker, from a ‘spoofed’ address they’ve created to resemble the real address, as soon as that occurs. The problem this creates is that next time the user checks their Etherscan history in search of the wallet address that they sent themselves the LINK from, they might accidentally select the spoofed address that sent them the same amount of fake LINK just moments after they had made the real transaction, and then send new funds there instead.</p><p>Of course, as you’ve guessed it: this would no longer be an attack vector in the event that on-chain transactions are homomorphically encrypted, as transaction sources, destinations and values would not be visible to others; the transactions would simply ‘exist’ for the purposes of node consensus and validation, thus upholding the security and reliability of the technology underlying the network without telling the user’s entire on-chain life story to the prying eye of hackers and thieves.</p><h3>Eliminating Unwarranted Mass Surveillance of Users</h3><p>The transparency of blockchain has also catalysed concern that it is susceptible to mass surveillance by governments and corporate entities. Governments, in particular, are increasingly interested in leveraging blockchain data for surveillance purposes, including tracking individuals’ financial movements, identifying patterns in their spending habits, and even assessing their political affiliations. This is best exemplified by the proposals of several countries to introduce Central Bank Digital Currencies (CBDCs), which could be distributed to citizens on-chain to facilitate the monitoring of transactions.</p><p>Corporations, too, have expressed willingness to tap into blockchain data for targeted advertising and marketing campaigns. By analysing user transactions and identifying their purchasing patterns, companies can gain a deeper understanding of their preferences and tailor their marketing strategies accordingly. Once again, this practice raises concerns about data privacy and the potential for manipulation.</p><p>HE would once again provide the solution to these privacy concerns. By enabling the encryption of blockchain transactions while maintaining their integrity and auditability, HE renders the sensitive details of transactions opaque to unauthorised parties.</p><p>In addition to addressing these concerns, HE would also pave the way for a multitude of novel applications on blockchain, including:</p><ol><li><strong>Blind NFT auctions</strong>, fostering greater fairness by eliminating bidding wars and artificially inflated prices by malevolent actors, all the while preserving the user’s privacy as nobody knows how much they bid</li><li><strong>Truly competitive GameFi</strong>: NFT-based strategy games would become fairer competition as nobody can see which ‘cards’ you own prior to entering into a duel with you.</li><li><strong>KYC-compliant DeFi</strong>: DeFi protocols will no longer need to rely on centralised intermediaries to determine the eligibility and compliance of the user, who would now be able to share their relevant details without them actually being revealed to anybody. This will naturally enable DeFi to continue its meteoric growth as it overcomes the bottleneck of challenges in ensuring regulatory compliance on-chain.</li><li><strong>Private DAO voting</strong>: Users can vote on proposals in the governance of DeFi protocols without exposing their voting power or the decision they actually took, thus reducing the scope for bribing and sabotage of the currently maligned governance process.</li><li><strong>Private Machine Learning</strong>: Cryptocurrency projects typically incorporate machine learning into their operations in order to analyse vast amounts of data and make informed decisions. DCommerce, for instance, Without a solution such as HE, users exhibit privacy concerns and are often hesitant to share their sensitive information on a public network. This lack of privacy is hindering the adoption of blockchain-based applications that require access to sensitive data, such as financial transactions.</li></ol><p>Let’s finally take a look at some of the first projects in the space to embrace HE.</p><h3>Fhenix: The first FHE-enabled Layer 1 blockchain</h3><p>Fhenix defines itself as “the first blockchain powered by Fully Homomorphic Encryption (FHE) to bring computation over encrypted data to EVM smart contracts”. As a fully EVM-compatible chain, it will provide a set of EVM extensions called fhEVM to enable developers to seamlessly integrate FHE into their workflows and create encrypted smart contracts using Solidity. fvEVM, meanwhile, was initially developed by Zama, a leading crypto firm building open-source FHE solutions for blockchain and AI. Fhenix’s planned use cases include:</p><ul><li>Confidential transactions</li><li>Confidential voting</li><li>Confidential auctions</li><li>Confidential gaming</li><li>Decentralised Identities (DID)</li><li>MEV Protection</li><li>Privacy-Preserving AI</li></ul><p>In September 2023, Fhenix raised $7m in a seed round led by Multicoin Capital and Collider Ventures, alongside contributions from Node Capital, Bankless, HackVC, TaneLabs, Metaplanet, and Robot Ventures. The capital raised in this round is earmarked for launching the Fhenix Network’s public testnet in the early part of next year and will also aid in the development of applications within its ecosystem. Its full roadmap is as follows:</p><ul><li>Q1 2024: Testnet launch</li><li>Q3 2024: Cross-Chain Compatibility</li><li>Q1 2025: Testnet Optimisation</li><li>Q2 2025: Mainnet launch</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*DStZlZeeEVAKsco0.jpg" /></figure><h3>Privasea</h3><p>The <a href="https://www.privasea.ai/">Privasea AI Network</a> will be a cutting-edge new tool that aims to proritise data privacy and security throughout the AI computation process. Specifically, it leverages FHE to perform computations on encrypted data, generating results indistinguishable from those obtained on unencrypted data without ever exposing it in its original form, facilitating seamless AI collaboration among multiple parties</p><p>Necessity being the mother of invention that it is, the project was in part conceived out of a need to strictly adhere to increasingly encompassing data protection regulations, including the EU’s General Data Protection Regulation (GDPR), which impose stringent requirements on the collection, processing, and storage of personal data.</p><p>But Privasea’s aims go even further than that: they are aiming to overcome the age-old challenge of protecting sensitive data from unauthorised access and intrusions. By implementing privacy-preserving techniques to safeguard personal data during machine learning, they hope to encourage individuals to willingly share vital data upon which computations can greatly enable breakthroughs in machine learning, without fear of privacy violations.</p><p>You can try out a demo of their Secure Face ID verification here: <a href="https://securekyc.privasea.ai/">https://securekyc.privasea.ai/</a></p><h3>Penumbra</h3><p><a href="https://penumbra.zone/">Penumbra</a> is a secure, cross-chain network in development designed for anonymous transactions, staking, swapping, or market making. It integrates with Inter Blockchain Communication (IBC) to protect the privacy of cryptoassets from any IBC-compatible chain. This makes Penumbra a confidential hub for the entire Cosmos ecosystem and potentially more. Additionally, Penumbra addresses are equipped with a viewing feature, allowing users to selectively share their transaction details with approved third parties for compliance or other purposes.</p><p>The fundamental mechanism of the flow encryption system is based on a partially homomorphic encryption scheme. This setup enables users to execute transactions with encrypted values. Subsequently, these encrypted values are collectively processed, or ‘aggregated’, by validators utilizing the principles of homomorphism. Following this aggregation, the combined total, referred to as the “batched flow,” is decrypted through a threshold decryption scheme.</p><p>Moreover, Penumbra offers a private trading feature through ZSwap, its shielded automated market maker model based on frequent batch auctions. This system ensures that individual swap requests remain confidential upon submission. They are then aggregated in an encrypted format and processed collectively at a uniform clearing price. This approach safeguards against front-running and improves the quality of trade executions. The privacy of individual traders is maintained as only the aggregate totals of each batch are disclosed, preserving the long-term confidentiality of each trader’s history.</p><h3>zkHoldem</h3><p><a href="https://zkholdem.xyz/">zkHoldem</a> is the world’s first decentralised online Texas Hold’em game that uses HE to ensure that your cards are revealed only to you, without even the project team being able to see them. It allows users to play against each other using cryptocurrency-based payment settlement in real-time.</p><p>Across the burgeoning GameFi sector, HE can help foster a fairer and more competitive gaming landscape by preventing users from gaining an unfair advantage by tracking the in-game asset ownership of other players as represented by their on-chain NFT holdings.</p><p>This actually helps to overcome a crucial pain point for GameFi: whilst moving games on-chain has afforded gamers the undeniable benefit of knowing that their rewards are distributed fairly and in perfect accordance with the game’s achievements without the need for a trustworthy third party to ensure it, competition on any blockchain-based strategy game, for instance, is currently greatly undermined by the fact that you can see all of your competitors’ in-game assets in the form of NFTs on their wallet, and adjust your strategy accordingly.</p><h3>To recap</h3><p>Blockchain’s meteoric growth in recent years has up until now brought us to a crossroads where the available exits cannot take us to a destination where blockchain is private, compliant, secure and scalable all at once. The prospect of integrating HE offers not just enhanced privacy and security in a similar way to ZKPs, but also significant financial implications and areas of growth by virtue of its scalability. The application of HE in blockchain is particularly crucial in sectors where data security and privacy are paramount, yet the need for computation on encrypted data is inevitable. This includes finance, healthcare, and government sectors, where blockchain can transform data handling and processing while ensuring compliance with stringent regulations.</p><p>The financial value proposition of HE lies not in its ability to offer privacy and security per se, but to do this in a way that’s highly scalable and versatile in its applications. Unlike ZKPs, which effectively address issues like MEV and offer a degree of privacy, HE takes things a step further by enabling the actual computation of encrypted data, offering a robust solution for blockchain applications that need to handle sensitive consumer information for the purposes of analysis and knowledge creation, rather than just transaction. This capability will be critical to the widespread adoption of blockchain in consumer-facing applications, where data protection is of paramount importance.</p><p>The scalability of HE is a game-changer for blockchain. It enables blockchain networks to handle larger volumes of transactions and complex computations without compromising privacy. This is of immense benefit to blockchain applications that require intensive data processing, such as complex financial models, large-scale supply chain management, and comprehensive health data analysis. Never before have sectors handling large volumes of sensitive data had access to such a scalable and affordable solution to their needs within the realm of blockchain.</p><p>But the financial benefits of adopting HE in blockchain extend beyond just operational efficiency. HE can also increase user trust and adoption, thereby opening new revenue streams and market opportunities for blockchain-based solutions. As more industries recognize the potential of blockchain technology enhanced by HE, we can expect an influx of investment and innovation in this space.</p><p>This analysis is not intended as a ‘hit piece’ on ZKP technology in any way — ZKPs continue to offer a valuable solution to many blockchain privacy and security issues, and merits to its implementation in certain blockchain subdomains remain clear to see. HE simply presents a more comprehensive and scalable approach; its ability to perform computations on encrypted data while maintaining privacy and security positions it as a key technology for the future growth of blockchain.</p><p>As we move forward with the implementation of HE on-chain, we may just no longer have to choose between securing our blockchains and keeping them private, and being able to scale up complex analysis of encrypted data ina cost-effective, computationally efficient way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc173b716d0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shared Sequencing]]></title>
            <link>https://danielnayrouz.medium.com/shared-sequencing-659ec899713b?source=rss-cbb677665bfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/659ec899713b</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[l2]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[market-making-services]]></category>
            <dc:creator><![CDATA[Daniel Nayrouz]]></dc:creator>
            <pubDate>Tue, 29 Aug 2023 16:42:34 GMT</pubDate>
            <atom:updated>2024-09-13T22:10:37.261Z</atom:updated>
            <content:encoded><![CDATA[<p>TLDR: Traditional sequencer models are largely vulnerable to censorship and MEV-type attacks. Shared sequencing aims to start tackling these and wider L2 scaling concerns such as rollup interoperability, however it is constrained by some key technical considerations. Startups such as Espresso and Astria are currently implementing this technology for use on Ethereum L2s.</p><h4>Shared Sequencers vs Normal Sequencers</h4><p>Sequencers are responsible for receiving, organising, and grouping transactions to be sent from Layer 2 (L2) rollups to Layer 1 (L1) base chains. Their importance in L1 &lt;-&gt; L2 communication garners them great influence in how transactions originating from L2s are ordered, raising concerns over centralised attack vectors. Shared sequencers aim to use a common, decentralised sequencer amongst multiple rollups to alleviate these concerns, as well as tackle some wider issues surrounding rollup fragmentation and interoperability.</p><p>In the centralised sequencing model (Figure 1), transactions submitted via an L2 rollup are submitted to a sequencer node, where they are ordered and pre-confirmed to the L2’s block space. Upon completion, the sequencer bundles these transactions into a single one to be committed to the L1 base chain. Once this bundled transaction is confirmed, verifier L2 nodes similarly record the transaction on their copies of the L2 chain. Finally, verifier nodes compare their new version of the state to that of the sequencer by checking that their state roots (essentially, a hash of the block) match. In doing so, they confirm the new state of the L2 chain and finalise the transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nNOvka1KnYOjtXsY" /><figcaption>Figure 1, Source: <a href="https://medium.com/privacy-scaling-explorations/an-introduction-to-optimisms-optimistic-rollup-8450f22629e8">https://medium.com/privacy-scaling-explorations/an-introduction-to-optimisms-optimistic-rollup-8450f22629e8</a></figcaption></figure><p>Because sequencers choose the order of transactions as they get sent from the L2, a malicious sequencer could send in its own transactions alongside legitimate transactions to extract value from any price movements, similar to L1 <a href="https://timroughgarden.github.io/fob21/reports/r11.pdf">frontrunning and sandwich attacks</a>. This could generate profit at the expense of these legitimate users, reducing yields on their transactions. Also, certain centralised sequencers are potentially vulnerable to downtime/technological failures and performance issues as a result of localised hosting. Additionally, a malicious sequencer may choose not to process transactions from a certain wallet address, which opens up the possibility of entities abusing that leverage.</p><p>While the architecture of shared sequencing solutions vary, the core tenet pertains to the decentralisation and comingling of the sequencing process across separate L2 rollups. All of the aforementioned issues can be mitigated through the decentralisation that shared sequencers offer, limiting the leverage available for any single actor to perform such attacks.</p><p>It is important to note that many large L2s with centralised sequencing have balances in place to prevent censorship abuse from taking place. For example, the Arbitrum sequencer code has a <a href="https://docs.arbitrum.io/sequencer">`forceInclusion` method</a> that forces a transaction to be accepted by the sequencer and relayed, although here the sequencer can still perform the previously discussed sandwich attacks through determining how the forced transaction is sequenced. Shared sequencing still offers an improvement here, by removing the possibility of censorship in conjunction with preventing the strategic sequencing of transactions for profit.</p><p>L2s face many scalability issues that stem from the siloed nature of each L2’s operations. Specifically, the fragmentation of liquidity amongst disjointed L2s and the inability to perform atomic cross-L2 transactions. Liquidity fragmentation causes poorer trading conditions on these L2s as traders are faced with higher price volatility and <a href="https://mirror.xyz/anyaogu.eth/IKhk4L9G0egR5-88gIGXmU9pnZijsJmBf7RAPuu4i1A">price variation between L2s</a>. Utilising a shared sequencer would help mitigate this by allowing for seamless asset bridging across these disjoint platforms through the implementation of atomic cross-rollup transactions, reducing the friction associated with moving tokens across rollups.</p><p>In the case of a cross-rollup token swap without a shared sequencer, the initiator would put themself at a disadvantage as the other party would be able to decide whether or not they want to commit to the transaction depending on how market conditions evolve after the initiator has finalised their transaction. A shared sequencer would mitigate this asymmetry by coupling the inclusion of both rollups’ individual transactions such that if either were to not be included into the rollup the other <a href="https://prestwich.substack.com/p/the-definitive-guide-to-sequencing">would also be omitted</a>. As a result of the ability to decrease friction in cross-rollup transactions, this would also facilitate much greater interoperability between different L2s, allowing users to easily and reliably perform transactions leveraging the state of another L2. Although solutions involving escrow contracts currently exist, no solutions manage to achieve this functionality seamlessly and without considerable time delays. As such, the proposed shared sequencing solution is significantly more effective and user friendly.</p><h4>Landscape</h4><p>Shared sequencing is a relatively new technological phenomena that has garnered significant interest in line with the recent explosion of roll-up Layer-2 solution development, like optimistic and zero-knowledge rollups. Currently, there are 5 noteworthy shared sequencer networks under development/on the market; Espresso Systems, Radius, AltLayer, Astria, and NodeKit. Below is a fundraising comparison between the four:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*plCcNFsxNzNhDvRRAqrNmg.png" /><figcaption>Figure 2, Shared Sequencing Fundraising Landscape</figcaption></figure><p>Having opened their public Doppio Testnet, Espresso Systems is perhaps the most well-known and well-funded shared sequencing company in the cryptosphere. Their product, the Espresso Sequencer, operates within the HotShot consensus protocol. The current GTM of the Espresso Sequencer focuses on integrating with rollups using Ethereum as their layer 1, and it is already integrated with the likes of Injective. However, there’s no fundamental restriction to Ethereum alone; theoretically, HotShot consensus could checkpoint on any smart contract platform and integrate with rollups targeting that platform. This could include non-EVM layer 1s like Solana or even layer 2s like Arbitrum.</p><p>Radius is quite unique when it comes to trustless sequencing solutions; they are introducing a zero-knowledge solution known as the Practical Verifiable Delay Encryption (PVDE) for implementation in an encrypted mempool. PVDE is an inherent feature of Radius’ sequencing layer, which is designed as a scaling layer for rollups, the architecture of which is shown below. In this approach, data surrounding submitted rollup transactions in the mempool that are waiting to be sequenced is encrypted, preventing the discovery of harmful maximum extractable value (MEV) opportunities and eliminating the need for trust in sequencers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VFLoQRx6UVdHqRSs" /><figcaption>Figure 3, Source: Radius</figcaption></figure><p>AltLayer has gained significant traction in the investor space as a decentralised and modular Rollup-as-a-Service (RaaS) protocol. Their stack offers developers the opportunity to launch rollups with highly customisable stacks, and even offers a no-code option as well as an SDK. Rollups built using AltLayer are incredibly versatile in stack design as shown below, and can currently choose from using AltLayer’s own shared sequencer network, run by sequencer nodes on an interlayer named the Beacon Layer, or from the Espresso or Radius shared sequencing solutions. Any AltLayer community member can apply to operate a sequencer node on the Beacon Layer; it is important to consider that they can abuse their leverage over transaction ordering, but are disincentivised to do so as they would incur significant losses in posted collateral in the event of any misbehaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qua9VqjAGGxRBLVN" /><figcaption>Figure 4, Source: AltLayer</figcaption></figure><p>Astria is a ‘middleware’ shared sequencer network being developed by Settler Labs on Celestia (an L1). Astria is used by the Astria EVM; their flagship rollup and the first EVM layer on Celestia. As a ‘lazy’ sequencer, Astria guarantees atomic inclusion of transactions ordered in a block, but does not execute the state transition function for a given rollup. Astria thus only provides soft commitments for transaction sequencing on Celestia. For finalisation, Astria-sequenced soft-committed blocks are cross-referenced by a rollup-sovereign ‘Conductor’ against Celestia blocks for rollup-specific transactions; if the Conductor receives a Celestia block previously seen from Astria, the rollup is informed that the blocks are finalised. Rollups built using Astria’s ‘one-click’ developer kit can choose whether to finalise transactions using firm Celestia-level confirmations at a block time of 11s, or whether to benefit from fast pre-confirmations using Astria-level ‘soft’ commitments at a block time of 1s.</p><p>NodeKit is a newer player in the shared sequencing space, having come out of stealth development in mid-July to raise their ongoing seed round. NodeKit’s SEQ is a custom L1 blockchain with a built-in decentralised shared sequencer. It allows rollups layering on top of the EVM-compatible SEQ L1 to benefit from a decentralised sequencer and increased cross-rollup interoperability, with NodeKit’s SDK making it simple for anyone to launch a rollup on SEQ.</p><p>As is evident, there are a variety of different technical architectures employed by startups focused on shared sequencing. While the end experience of all products will be almost indistinguishable, it is likely that integration speed and flexibility in rollup stack architecture will become key catalysts for developer adoption, where AltLayer, Radius, and Astria especially show strength.</p><h4>Drawbacks</h4><p>Shared sequencing allows for the simultaneous ordering of transactions across multiple rollups for commitment to a base chain’s block space. This may sound exciting as a new frontier for cross-rollup DeFi composability, however the reality is that the atomic inclusion of transactions across rollups does not guarantee atomic execution [4]. While bundled infallible transactions such as withdrawals or transfers can be atomically executed between rollups, complex fallible transactions common in applications such as DeFi can still fail in execution.</p><p>This makes true inter-rollup DeFi composability infeasible, as shared sequencing cannot guarantee transaction execution between multiple rollups if 1 or more fallible transactions are included. In fact, most user-facing transactions like swaps or smart contract interactions contain at least one fallible transaction, removing any hope of cross-rollup DeFi composability and rendering atomic inclusion championed by shared sequencers almost useless (aside from for shared sequencing of infallible interactions like transfers).</p><h4>Conclusion</h4><p>Sequencers occupy a role of systemic importance in rollup architecture, but suffer from key composability, MEV, and security concerns. Although shared sequencing brings atomic inclusion of transactions across different rollups, full atomic composability across rollups requires atomic execution.</p><p>In light of this, the development of shared sequencers, although a necessary development in blockchain architecture, represents more of an incremental development in the direction of L2 interoperability through enabling data synchronisation and helping in achieving ‘consistent state’ across rollups, as opposed to the transformative advancement it is often portrayed as. Nonetheless, there are some promising startups developing shared sequencers with the aim of bridging liquidity across rollups and reducing the reliance on centralised points of failure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=659ec899713b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Bitcoin]]></title>
            <link>https://danielnayrouz.medium.com/exploring-bitcoin-616a21bd11bb?source=rss-cbb677665bfe------2</link>
            <guid isPermaLink="false">https://medium.com/p/616a21bd11bb</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Daniel Nayrouz]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 10:39:24 GMT</pubDate>
            <atom:updated>2024-09-13T22:10:24.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3pbvfwIjfRygkf2O" /></figure><p>In this report we dive deep into the Bitcoin ecosystem and the associated demands for BTC utility. We explore the catalysts for and potential of growth within the ecosystem, and evaluate whether Bitcoin can eventually compete with established dApp ecosystems such as Ethereum’s.</p><h4>Key Takeaways</h4><ul><li>There are growing development efforts and initiatives centred towards scaling Bitcoin and supporting Bitcoin-based decentralized apps (dApps).</li><li>Bitcoin wrapping showcases a clear demand for Bitcoin utility but comes with risks that may deter potential users.</li><li>Ordinals hype highlights a demand for Bitcoin-native tokens, and a necessity for scaling through Layer-2s to match capacity with said demand.</li><li>The Bitcoin ecosystem UX and product diversity is currently lacklustre, but EVM-compatible Layer-2s, growing capital interest, and a dedicated developer base all indicate a positive future for the ecosystem.</li></ul><h3>Bitcoin Ecosystem Background</h3><p>Bitcoin was <a href="https://www.ussc.gov/sites/default/files/pdf/training/annual-national-training-seminar/2018/Emerging_Tech_Bitcoin_Crypto.pdf">envisioned in 2009</a> as a peer-to-peer payment network. With the introduction of smart contract technology to compatible blockchains like that of <a href="https://en.wikipedia.org/wiki/Ethereum">Ethereum</a> in 2015, the scope of applicability of digital ledger technology (DLT) widened massively. This paved the way for the wide range of financial, social, and technological applications of blockchain-derived technology that we enjoy today. Bitcoin as a base layer was not suited for hosting smart contract-derived applications and thus lagged in attracting developer interest; to date the dollar inflows into these applications have largely focused on purpose-built chains while Bitcoin has taken the shape of an index largely governing the wider price movements and valuations of other cryptocurrencies.</p><p>One of the first signs of change to this paradigm arrived in 2015 with the <a href="https://www.the-blockchain.com/docs/Rootstock-WhitePaper-Overview.pdf">introduction of Rootstock</a>, a Bitcoin scaling solution that aimed to increase transaction throughput while introducing smart contract functionality compatible with BTC pegged from the base chain. Several years of development followed, with the <a href="https://golden.com/wiki/RSK_(cryptocurrency)-JNZDJD3">mainnet release</a> of Rootstock being introduced in 2018. Since then, Rootstock has become home to a diverse range of applications and houses a passionate developer community, continuing to attract interest as the most <a href="https://medium.com/iovlabs-innovation-stories/a-review-of-the-stacks-blockchain-from-a-rsk-perspective-9e3361970f34">viable Bitcoin Layer</a> for supporting a competitive dApp ecosystem.</p><p>With increased interest in the digital asset sector the idea of Bitcoin as a payment infrastructure quickly became obsolete, as transferral fees started to number in the dollars as the network compensated for increased block space demand. A solution to this arrived with a 2015 <a href="https://lightning.network/lightning-network-paper.pdf">proposal by Thaddeus Dryja</a> for the creation of the Lightning Network, a trustless and scalable Layer-2 that could settle BTC payments off-chain instantaneously with near-zero fees through novel payment channel designs. The Lightning Network required minor alterations to Bitcoins core protocol to function, which were implemented by Bitcoin core developers in 2017 and lead to the <a href="https://bitcoinmagazine.com/technical/history-lightning-brainstorm-beta">launch of the Lightning Network alpha</a> in the same year.</p><p>The need for major core modifications to the Bitcoin protocol architecture is what hindered the development of key application categories such as DeFi and NFTs on Bitcoin; it quickly became apparent that Layer-2 scaling solutions were necessary to expand the use cases and ecosystem for Bitcoin. Other attempts to overcome the limitations of the Bitcoin protocol <a href="https://www.investopedia.com/tech/history-bitcoin-hard-forks/">led to hard forks</a> such as that of Bitcoin SV in 2018 (which forked from Bitcoin Cash) which allowed for the execution of smart contracts, a necessary component of most DLT applications. However, forked chains like BSV have failed to attract staying power or capital interest rivalling that of Bitcoin, supporting the idea that Bitcoin-based Layer-2s are a necessity to fully tap into the vast value stored within the chain.</p><h3>Bitcoin Cross-Chain Utility Demand</h3><p>A demand for the use of Bitcoin in applications other than payments became apparent with the launch of <a href="https://www.bitcoin.com/get-started/what-is-wbtc/#:~:text=WBTC%20was%20launched%20in%20January,on%20Ethereum%20access%20to%20Bitcoin.">Wrapped Bitcoin</a> (wBTC) in 2019, which allowed users to bridge BTC 1:1 to the ERC-20 native wBTC. This allowed Bitcoin holders to participate in the large suite of financial applications native to Ethereum, with wBTC and other Bitcoin wrapping solutions attracting <a href="https://dune.com/queries/1936218/3194846">0.85%</a> of the total Bitcoin supply ($4.5 billion in BTC) to date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*bZTEO5zBuZBb6OwS.jpeg" /><figcaption>Source: Dune</figcaption></figure><p>The proportion of Bitcoin on Ethereum as a percentage of the total supply <a href="https://dune.com/queries/1936218/3194846">peaked at 1.8%</a> in Q1 22 and has declined steadily since. This reduced demand was partially compounded by the failures of Celsius and Three Arrows Capital, both of which <a href="https://cointelegraph.com/news/wrapped-bitcoin-supply-drops-to-negative-after-11-500-wbtc-burn-linked-to-celsius">redeemed large amounts of wBTC</a> in Q2 2022 to meet their obligations to creditors. Aside from centralised failures, it is likely that a large contributor to reduced appetite for Bitcoin bridging derives from the massive wave of exploits on cross-chain bridges in the 21/22 bull run, which saw approximately <a href="https://cointelegraph.com/news/report-half-of-all-defi-exploits-are-cross-bridge-hacks">$2.5 billion drained</a> from popular protocols such as Wormhole and Nomad, raising <a href="https://finance.yahoo.com/news/wrapped-bitcoin-supply-more-doubled-212159608.html?guccounter=1&amp;guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&amp;guce_referrer_sig=AQAAAJJV7bv0yCQ565zJFNP5rfDgaYpFr3L11WgRjHTi96c2OPDDk3D_42FIjpZ4nG5LjMuxXz8-__YIyg24lAP9KTxsTFU9V2T2l6XDF6jdWQeQOnSXpPjdKvLQMTfRjUedC_lETxH5UT42M1VTM0d7pkXcBmtQqqyxiHGJuN5qsw6T">legitimate concerns</a> about security in cross-chain bridging.</p><p>Another important consideration for some potential bridge users is inherent to the centralised entities that facilitate the majority of wrapping and unwrapping of Bitcoin. As an example, the sole custodian that oversees wBTC mints and burns is the NYC-headquartered Bitgo. This centralisation aspect <a href="https://blog.kaiko.com/sanctions-centralization-and-wbtc-1ff363bb99b2">raises a risk</a> in the form of sanctions from entities such as the US Treasury or OFAC in the same manner that befell <a href="https://sanctionscanner.com/blog/tornado-cash-a-crypto-mixing-service-now-blacklisted-by-the-us-treasury-675#:~:text=Tornado%20Cash%2C%20a%20virtual%20currency,billion%20in%20cryptocurrency%20since%202019.">Tornado Cash</a>.</p><p>As a centralised entity, custodians like Bitgo must also comply with regulatory obligations. This may dissuade or prohibit certain users from interacting with wrapping protocols; as an example of how this can affect the guarantees offered by these protocols, an Alameda employee <a href="https://cointelegraph.com/news/alameda-tried-to-redeem-3-000-wbtc-days-before-bankruptcy-bitgo-ceo">burned 3000 wBTC</a> in an attempt to stave off bankruptcy but failed Bitgo’s mandatory security check. Alameda was not granted the equivalent in BTC until post-bankruptcy trustees took over.</p><p>Decentralized approaches to Bitcoin wrapping have been attempted, of which the most notable is <a href="https://academy.bit2me.com/en/que-es-renbtc/#:~:text=RenBTC%2C%20is%20an%20ERC%2D20,one%20of%20them%20is%20RenBTC.">renBTC</a>. For now, these protocols have failed to maintain momentum in the face of their centralised cousins and have even demonstrated equal vulnerability to centralised failures. Ren Protocol, the entity that manages the renBTC bridge, was <a href="https://www.coindesk.com/business/2023/04/12/ftx-will-receive-all-of-ren-protocols-pegged-assets-including-bitcoin-and-dogecoin/">acquired by the FTX debtors</a> in February 2022 and <a href="https://bridge.renproject.io/">subsequently liquidated</a> as FTX entered bankruptcy. This caused the renBTC supply to crash to 304 from a peak of 26,477 in October 2020. While more insulated from regulatory requirements and interjections, decentralised alternatives can still be affected by centralised contagions and fail to address concerns surrounding their vulnerability to exploits, a risk inherent to bridging protocols.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*K7GLRDV91gu4TfeL.jpeg" /><figcaption>Source: Messari</figcaption></figure><p>The popularity of and value locked within wrapping solutions may be on the decline for now, but they do soundly demonstrate a broader demand for BTC utility and subsequent market-fit for Bitcoin native applications. This market-fit may very well transform into adoption as the wider Bitcoin ecosystem scales to provide a comparable user experience and product diversity to those of other Layer-1s.</p><h3>Ordinals, BRC-20s, and the Block Space War</h3><p>A more recent sign of demand for Bitcoin-native applications came after the <a href="https://rodarmor.com/blog/ordinal-theory/">introduction of Ordinals</a> in January 2023 by Casey Rodarmor. This innovation followed on the heels of the <a href="https://www.realvision.com/blog/what-is-taproot">Bitcoin Taproot upgrade</a> in November 2021, which created the opportunity for <a href="https://cointelegraph.com/news/heres-how-to-use-defi-on-bitcoin-without-polluting-the-blockchain">rudimentary smart contracts to be deployed on Bitcoin’s core layer</a>. Ordinals allow users to inscribe digital content onto satoshis (a subunit of Bitcoin), storing them on-chain as a basic form of NFT. To date over <a href="https://dune.com/dgtl_assets/bitcoin-ordinals-analysis">11.1 million inscriptions</a> have been stored natively on Bitcoin, netting miners <a href="https://dune.com/dgtl_assets/bitcoin-ordinals-analysis">$45 million</a> in related fees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/0*ecocuP1K_aKg9z0h.jpeg" /><figcaption>Source: Dune</figcaption></figure><p>In early March of 2023, a pseudonymous developer named Domo built on the innovations of Ordinals to create the <a href="https://domo-2.gitbook.io/brc-20-experiment/">BRC-20 token standard</a> and launched ‘ordi’, a Bitcoin-native fungible token based on the Bitcoin Request for Comment (BRC) protocol. This was the first truly Bitcoin-native token standard and has resulted in over <a href="https://dune.com/cryptokoryo/brc20">2,000 deployments</a> of other BRC-20 tokens to date. The demand for these tokens climaxed in the first two weeks of May 2023 when the total market cap of BRC-20s peaked above <a href="https://cointelegraph.com/news/brc-20-tokens-surpass-1b-market-cap-as-wallet-providers-prepare-integration">$1 billion</a>, clearly showing an appetite for Bitcoin-native tokens.</p><p>While deployed BRC-20 assets largely consist of memecoins, developers in the Bitcoin ecosystem quickly moved towards exploring the potential for BRC-20 native DeFi applications. As an example, the Stacks-native Alex DEX launched an unrivalled <a href="https://cointelegraph.com/news/an-expanding-brc-20-exchange-fuels-defi-boom-on-bitcoin">BRC-20 DEX</a> to solve the liquidity issues facing BRC-20s trading outside of CEXs. Another example of this is <a href="https://theord.gitbook.io/brc20-oshi-liquidity-pool-proposal/">OSHI</a>: a BRC-20 that serves as a governance token for Oshi Finance, the first liquidity pool and ERC-20 -&gt; BRC-20 bridging protocol native to BRC-20. As one of the most innovative players within BRC-20, Oshi’s lead developer Merlin announced the development of <a href="https://twitter.com/satoshi_ob/status/1666218881025703936?s=20">Smart Inscriptions</a> in the first week of June 2023. This technology relies on a system called BOSS (Bitcoin O-Perational Standard System) to improve on simple inscriptions by providing decentralised applications on BRC-20 with more operational versatility, interoperability, and complexity.</p><p>Another development following on the heels of Ordinals lies in <a href="https://trustmachines.co/blog/bitcoin-stamps-and-how-they-work/">Bitcoin Stamps</a>, which also allows for data storage directly on the Bitcoin chain. As opposed to Ordinal inscriptions which are stored in transaction witness data, Stamps are stored directly on Bitcoin’s unspent transaction outputs (UTXOs). While allowing for less user friction in minting large quantities of inscriptions, the cost of minting an inscription using Stamps is approximately 4x that of Ordinals as the witness data discount is not applied. Additionally, image data being stored in UTXOs makes Stamps less prunable than Ordinals, increasing hardware requirement for users running Bitcoin nodes.</p><p>A consequence of the surge in Ordinals inscriptions post-Taproot was seen in unprecedented network congestion and high transaction fees on the Bitcoin network. This resulted in <a href="https://www.reuters.com/technology/binance-again-temporarily-closes-bitcoin-withdrawals-2023-05-08/#:~:text=May%207%20(Reuters)%20%2D%20Cryptocurrency,them%20at%20a%20higher%20cost.">Binance suspending Bitcoin withdrawals</a> for a short period of time as the network became unusable due to a backlog of <a href="https://protos.com/ordinals-break-bitcoin-transaction-fees-exceed-rewards-as-congestion-rises/">400,000 pending transactions</a>, after which they decided to <a href="https://www.binance.com/en/feed/post/501886">integrate the Lightning Network</a> (an L2 that allows for BTC transactions while sidestepping congestion). These network inefficiencies led to uproar from certain Bitcoin developers who view Ordinals and BRC-20s as clutter that hinders Satoshi’s vision of a peer-to-peer payment network, with prominent Bitcoin developer <a href="https://www.cryptotimes.io/bitcoin-developer-calls-to-kill-ordinals-brc20/">Luke DashJr proposing</a> extending a spam filter to sift through Taproot transactions; this would exclude and scrap inscriptions and their transferrals from related transactions across the Bitcoin network.</p><p>While extreme, this proposal is not unwarranted. Bitcoin is not designed to handle the loads associated with current levels of inscription demand for block space, let alone a heavier load in potential future periods of even higher demand. To say it sweetly, the whole network could be bricked by demand or malicious actors if the Ordinals ecosystem is allowed to continue as is. This begs the question: how will the demand for Ordinals be satiated? The non-suitability of Bitcoin in handling token standards and NFTs means that the best answer lies with Layer-2s that handle transactions outside of Bitcoin’s blocks.</p><p>In the middle of peak BRC-20 mania in mid-May 2023, Lightning Labs announced the test net of <a href="https://cointelegraph.com/news/lightning-labs-launches-updated-protocol-bitcoin-brc20-congestion">Taproot Assets Protocol</a> (TAP), a scalable protocol that allows for asset issuance on Bitcoin and Lightning. The architecture of the TAP is designed to operate maximally off-chain, and their announced intention to integrate BRC-20 tokens would alleviate block space congestion caused by the inscriptions and transferrals of these tokens if adopted. This shows how Layer-2s can and are being used to overcome the limitations of the Bitcoin network in an adaptive and reactive manner, a testament to the rising levels of innovation within the Bitcoin ecosystem.</p><h3>Exploring Bitcoin Layers</h3><p>Over the last few years, progress in research and development into programmability and scalability of Bitcoin has led to a burgeoning developer community native to Bitcoin. This has led to a rapid expansion of Bitcoin’s ecosystem which now includes hundreds of projects in niches as diverse as DeFi, NFTs, and GameFi, all of which stand to benefit from Bitcoin’s security, capital, and network.</p><p>To date, development and capital expenditure have largely gravitated towards 4 Bitcoin layers, <a href="https://lightning.engineering/">Lightning Network</a>, <a href="https://www.stacks.co/">Stacks</a>, <a href="https://rootstock.io/">Rootstock</a>, and <a href="https://liquid.net/">Liquid Network</a>. Stacks and Rootstock are touted as general-purpose smart contract layers enabling various types of applications such as DeFi and NFTs, Lightning Network is intended for scaling payments and more recently asset issuance, and Liquid Network focuses purely on asset issuance and swaps with integrated confidential transactions.</p><p>The proven demand for Bitcoin utility and recent surge in Ordinals activity resulted in Bitcoin Layer-2s and affiliated protocols surging in token valuations and TVL. As an example, Stacks TVL surged 75% in the second week of May, and 340% to peak from the inception of Ordinals hype in early February. This showcases a related demand and expectation of growth in the Bitcoin ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*EA9xtQdkG_oPvjRU.jpeg" /><figcaption>Source: DeFiLlama</figcaption></figure><p>The notable Bitcoin Layer-2s differ widely in both technology used and target service/market. A useful comparison between the technical and utilitarian features of them can be seen below, courtesy of <a href="https://content-hub-static.crypto.com/wp-content/uploads/2023/06/20230503_CDC_Bitcoins-Expanding-Ecosystem_-Layer-2-DeFi-NFT.pdf">Crypto.com Research</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*aAlPUm58b5xVNtbH.jpeg" /><figcaption>Source: Crypto.com Research</figcaption></figure><h4>Lightning Network</h4><p>As aforementioned, <a href="https://lightning.engineering/">Lightning Network</a> is designed as a scalability solution for Bitcoin. Near-instant off-chain transaction settlements with minimal fees truly do allow for Bitcoin to be used as a payment network with Lightning, with the median <a href="https://cointelegraph.com/news/bitcoin-lightning-network-is-1-000x-cheaper-than-visa-and-mastercard-data">fee rate sitting at 0.0029%</a>, or 1,000 times cheaper than that of Mastercard and Visa. Since mainnet launch at the start of 2018, the transaction throughput of the Lightning Network has been growing steadily. With the advent of the Taproot Assets Protocol and its USP as a scalable home to BRC-20s, interest towards this scaling solution may increase significantly in the near future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*YLWXrXchsvvZ1VxQ.jpeg" /><figcaption>Source: BitcoinVisuals.com</figcaption></figure><h4>Liquid Network</h4><p><a href="https://liquid.net/">Liquid Network</a> is a Bitcoin sidechain that uses a two-way peg to move Bitcoin between the network without the need to worry about bridging-related security issues. Launched in 2018, it is controlled by a federated network of significant parties called the Liquid Federation and focuses on securities issuance and swaps in a manner reminiscent of <a href="https://polymesh.network/">Polymesh</a>. Confidential and fast transactions are attractive for institutions and privacy-concerned individuals, and the sidechain has been seeing growth in L-BTC (native token BTC-pegged token) supply as a result. A notable Liquid-native protocol is <a href="https://lend.hodlhodl.com/">LEND by Hodl Hodl</a>, which allows for L-BTC collateralised lending and borrowing of other cryptocurrencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/0*0GnuXPW0j0mhgxkm.jpeg" /><figcaption>Source: Crypto.com Research</figcaption></figure><h4>Stacks</h4><p><a href="https://www.stacks.co/">Stacks</a> as a smart contract-oriented Bitcoin Layer-2 utilises a unique consensus mechanism anchored to Bitcoin called Proof of Transfer (PoX), allowing it to leverage Bitcoin’s security while settling transactions natively on Stacks. dApps using Stacks’ smart contracts can interact with Bitcoin state to use Bitcoin as their native currency, an attractive feature for any Bitcoin holder seeking utility. It is important to note that Stacks’ uses a native programming language called Clarity, and the smart contracts used are not EVM-compatible. This may provide a significant barrier to entry for DeFi protocols wishing to deploy on Stacks, although efforts to improve compatibility are underway. While underpinned by Stacks’ native token STX for now, increased Clarity language compatibility and a native trustless two-way Bitcoin pegged sBTC (a la Liquid, Rootstock) are scheduled for implementation which will improve the security of and Bitcoin inflows into the network.</p><p>The most notable protocol on Stacks is <a href="https://alexlab.co/">Alex</a>, a full-suite DeFi hub including an AMM/order book DEX, Bitcoin lending/borrowing, leveraged products like margin swaps, yield farming, and a launchpad. At the time of writing Alex has a <a href="https://defillama.com/chain/Stacks?tvl=true">TVL of $24.17 million</a> and boasts a Stacks <a href="https://defillama.com/chain/Stacks?tvl=true">TVL dominance of 93.7%.</a></p><h4>Rootstock</h4><p><a href="https://rootstock.io/">Rootstock</a> (RSK) is the only Turing-complete and EVM-compatible smart contract Layer on Bitcoin, lending it a significant advantage in terms of product development speed as codebases can be bridged over from Ethereum with ease. Rootstock’s mainnet <a href="https://golden.com/wiki/RSK_(cryptocurrency)-JNZDJD3">launched in January 2018</a> through RSK Labs, which was acquired by <a href="https://www.iovlabs.org/">IOV Labs</a> in 2019. IOV Labs introduced the <a href="https://dev.rootstock.io/rif/token/">Rootstock Infrastructure Token</a> (RIF), akin to a utility token native to RSK. It is used to access a wide range of native integrated protocols developed by IOV Labs including storing, oracles, naming and CPU services, and currently boasts a <a href="https://coinmarketcap.com/currencies/rsk-infrastructure-framework/">market cap of $99 million</a>.</p><p>RSK uses the largely decentralised <a href="https://dev.rootstock.io/rsk/architecture/powpeg/">Powpeg</a> 2-way peg to bridge Bitcoin onto RSK as smartBTC (RBTC) in a secure manner. Rootstock as a sidechain is fully secured through merge mining on Bitcoin, with an <a href="https://medium.com/iovlabs-innovation-stories/a-review-of-the-stacks-blockchain-from-a-rsk-perspective-9e3361970f34">average of &gt;60% of the Bitcoin hashrate</a> securing RSK. Currently, RSK TVL sits higher than any other Bitcoin Layer at <a href="https://defillama.com/chain/Rootstock?tvl=true">$84.8 million</a>.</p><p>One notable project on RSK is <a href="https://moneyonchain.com/">MoneyOnChain</a>, a staking and stablecoin (DollarOnChain [DOC]) issuance protocol sitting at a current TVL of <a href="https://defillama.com/protocol/moneyonchain">$42.4 million</a>. Another project worth mentioning is <a href="https://sovryn.com/">Sovryn</a>, a DeFi hub that offers yield farming, staking, a DEX with spot/margin, lending, and a stablecoin called DLLR. Sovryn has a <a href="https://defillama.com/chain/Rootstock?tvl=true">TVL of $39.7 million</a> at the time of writing.</p><h3>Conclusions</h3><p>Levels of ecosystem adoption, diversity of products and services offered, as well as UX are insofar somewhat lacklustre in the Bitcoin ecosystem when compared to that of established competitors such as Ethereum. There is still a long road ahead for Bitcoin and its sub-layers to be comparable to other Layer-1s as an ecosystem. However, there are positive catalysts that may help in driving development and adoption further.</p><p>Infrastructure development efforts by serious players are <a href="https://content-hub-static.crypto.com/wp-content/uploads/2023/06/20230503_CDC_Bitcoins-Expanding-Ecosystem_-Layer-2-DeFi-NFT.pdf">well underway</a>. Muneeb Ali’s (Stacks co-founder) Trust Machine recently <a href="https://finance.yahoo.com/news/trust-machines-raises-150m-funding-212500209.html">raised $150 million</a> for expanding Bitcoin dApp infrastructure, and Jack Dorsey’s Block is looking to create a <a href="https://bitcoinmagazine.com/business/jack-dorsey-square-decentralized-bitcoin-exchange-proposal-announced-tbdex">Bitcoin-oriented DEX</a>. Development is also being supported through financial incentives allocated by larger organisations with vested interests; Stacks, GSR, DCG and others launched a <a href="https://decrypt.co/94836/165-million-bitcoin-odyssey-okcoin-stacks-aim-accelerate-btc-adoption">$165 million grant programme</a> for dApp developments on Bitcoin last year, and <a href="https://www.mintlayer.org/en/">Mintlayer</a> (upcoming Bitcoin Layer-2) launched a <a href="https://www.mintlayer.org/en/news/grants-initiative/">$4 million grant initiative</a> for native developers.</p><p>Newer Layer-2s are also being developed for Bitcoin, with <a href="https://www.realvision.com/blog/what-is-mintlayer">Mintlayer</a> aiming to be a PoS anchored to Bitcoin, inheriting its security but having a rather limited connection otherwise. It aims to be <a href="https://www.realvision.com/blog/what-is-mintlayer">largely DeFi-orientated while supporting securities issuance</a>. StarkWare Industries-backed <a href="https://zerosync.org/">ZeroSync Association</a> is aiming to <a href="https://www.coindesk.com/tech/2023/03/28/newly-formed-zerosync-association-brings-zero-knowledge-proofs-to-bitcoin/">bring zero-knowledge proofs to Bitcoin</a>, which will help to increase network efficiency and participation significantly.</p><p>Bitcoin bridging solutions are likely to continue seeing usage by Bitcoin holders looking to capitalise on superior products offered by other Layer-1s. However, a degraded trust in them, significant steps forward in accelerating Bitcoin’s ecosystem development, and a renewed interest in and demand for Bitcoin-native tokens may contribute to significant future capital inflows into Bitcoin and its sublayers. As Bitcoin and related scaling solutions continue to enjoy innovations in development, there is little doubt that we will see increased adoption of Bitcoin-native decentralised applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=616a21bd11bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>