Hemi 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 13쪽 중 2쪽

chain ecosystem, the Hemi Network operates several kinds of decentralized nodes: **Bitcoin finality governors, Bitcoin-secure sequencers, Proof-of-Proof miners, and a modified Geth node.** *** ## 🛡️ **Bitcoin Finality Governors (BFGs)** * Regulate the network's security status by analyzing Bitcoin blocks for Hemi Network state proofs. * Determine the network's finality status, ensuring security. * Coordinate with Bitcoin-secure sequencers and proof-of-proof miners. *** ## ⚙️ **Bitcoin-Secure Sequencers (BSS Nodes)** * Integrate Hemi Network transactions with Ethereum mainnet transactions. * Maintain the network's consensus layer and manage staking, unstaking, and slashing operations. * Ensure a seamless connection between the Hemi Network and Ethereum for asset transfers. *** ## 🛠️Modified Geth Node * Operates as a customized Ethereum node, providing compatibility and connectivity between the Hemi Network and Ethereum. * Ensures data synchronization and transaction processing within the Hemi Network ecosystem. *** ## 🔗 **Proof-of-Proof Miners (PoP Miners)** * Secure the network by embedding state proofs into the Bitcoin blockchain. * Hash network headers to create cryptographic proofs and publish these to Bitcoin. * Receive tokens as rewards for their contributions. *** {% hint style="success" %} ## 👀 Sneak Peek WIP ***Challengers*** * *Monitor the Hemi Network for data accuracy and completeness.* * *Initiate challenge-response processes for discrepancies, ensuring integrity.* * *Receive a portion of the penalized stake for successful challenges.* {% endhint %} *** ### ⚡️ Achieving Decentralized Interoperability This innovative approach ensures secure, decentralized interoperability among Bitcoin, Ethereum, the Hemi Network, and other EVM-compatible chains. # Consensus and Security Protocols {% hint style="info" %} ### 📜 **TL;DR:** * Incorporates Bitcoin's security to prevent attacks, with PoP Miners embedding consensus data on the Bitcoin blockchain. * **Rewards PoP Miners** in native tokens for strengthening consensus. * **Utilizes Bitcoin confirmations** to ensure network integrity, achieving "Bitcoin Finality" for robust defense against reorganizations. {% endhint %} *** {% hint style="success" %} ### 👀 Sneak Peek WIP ***Overview*** The Hemi Network's sequencer consensus combines **Proof-of-Stake** with **Proof-of-Proof** to address weak subjectivity and censorship attacks inherent in traditional PoS systems. *This hybrid model prevents forged chains through state proofs on the Bitcoin network and allows legitimate sequencers to regain control in adversarial conditions, ensuring the network's resilience and security.* {% endhint %} *** #### 🔒 **Network Security and Finality** * To inherit Bitcoin security, a new type of miner (a “PoP Miner”) publishes Hemi consensus information to the Bitcoin blockchain. * After a state publication to Bitcoin, the Hemi Network’s consensus layer incorporates cryptographic proofs of these publications, with PoP Miners receiving a reward in the protocol’s native token. The network uses these proofs during fork resolution to prevent reorganizations with the full force of Bitcoin’s security. * As they are produced, the Hemi Network’s chain segments initially receive Bitcoin confirmations, which means an attacker **would have to control increasingly large ratios of staking power to successfully affect a reorganization.** * During normal operation, each block on the Hemi Network reaches full **“Bitcoin Finality”** **after 90 minutes, or nine Bitcoin blocks, on average**. > At this point, it is mathematically impossible for anyone to reorganize the network without 51% attacking Bitcoin itself. # Ethereum Rollups {% hint style="info" %} ## 📜 **TL;DR:** * 🚗 Rollups optimize Ethereum's performance by gathering transactions "off the main Ethereum highway" (Layer 1) and then officially process them on a "side road" **(Layer 2).** {% endhint %} *** ## 🌐 Overview * Ethereum Rollups are a Layer-2 scaling solution designed to enhance the ***throughput and features*** of the Ethereum network. * They operate by "rolling up," or bundling, multiple transactions off-chain and submitting them in batches to the Ethereum mainnet for data availability. By doing so, they significantly reduce congestion and gas fees while maintaining interoperability with Ethereum. * Rollups can also add new protocol features that would be impossible directly on Ethereum (e.g., PoP security to inherit Bitcoin Finality and Hemi's hVM Bitcoin Interoperability system). # Pros & Cons {% hint style="info" %} ## 📜 **TL;DR:** * Optimistic Rollups: Faster, presumed valid until proven otherwise; has delays, user fraud detection, relies on centralization. * Zero-knowledge Rollups: Prior validation is needed, enhanced privacy; complex vulnerabilities, trusted setup, reliance on centralization. * Centralized Influence: Centralized proposers could disrupt decentralized frameworks. * Verifiers and Challenges: Vulnerabilities demand verifiers, lack of incentives leads to centralization. * Denial-of-Service Risks: Centralized "batchers" in L2 networks risk refusing to publish transactions back to Ethereum, potentially causing service denial. {% endhint %} *** ## 🌀 **Conventional Rollups** <table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Optimistic Rollups</strong></td><td><p>✅ Pros:</p><ul><li>Allow faster transaction processing on Layer 2</li><li>Presume transactions are valid unless disputed within a specific period.</li><li>Reduce congestion on the main chain (L1)</li></ul></td><td><p>❌ Cons:</p><ul><li>Introduce finalization delays due to the challenge period for dispute resolution</li><li>Place the responsibility of fraud detection on users</li><li><em><strong>Rely on centralized sequencers and proposers, causing hidden transaction queues (mempools) and centralized chain state communication</strong></em></li></ul></td></tr><tr><td><strong>Zero-knowledge Rollups</strong></td><td><p>✅ Pros:</p><ul><li>Validate transactions before confirming them on the main chain (L1)</li><li>Potentially enable privacy features by leveraging zk proofs (although current implementations like ZKsync do not currently incorporate significant privacy features)</li><li>Reduce congestion on the main chain (L1).</li></ul></td><td><p>❌ Cons:</p><ul><li>Introduce potential vulnerabilities due to complex cryptographic systems</li><li>Often require a trusted setup for implementation.</li><li><em><strong>Rely on centralized sequencers and proposers, causing hidden transaction queues (mempools) and centralized chain state communication</strong></em></li></ul></td></tr></tbody></table> *** ## 💭 Things to Consider ### Centralized Influence in a Decentralized Sequencing World Within frameworks aiming for decentralized sequencing, the presence of a centralized proposer could wield significant influence, *potentially disrupting their intended decentralized nature*. Such control might result in the withholding of valid state rollups from Ethereum, leading to coercion of decentralized sequencers into potential censorship or halting communication of specific chain segments back to Ethereum for settlement. *** ### &#x20;🟩 Verifiers and Challenges Vulnerabilities in optimistic rollup networks pose risks of asset theft through forged L2 states. To address this, rollups introduce verifiers, but the lack of proper incentives for this role presents challenges. These lack of incentives can lead to difficulties such as: * 🔒 Securing a sufficient number of verifiers to perform the complex and expensive verification process required. * 👥 Relying heavily on users or nodes funded by development teams resulting in centralization. * 📣 Potential bias or influence. * 🌎 Sustainability and scalability issues. *** ### ✋ Denial-of-Service Risks L2 networks' reliance on centralized "batchers" can expose them to denial-of-service risks if batchers refuse to publish transactions back to Ethereum for data availability. # Decentralized Rollups {% hint style="info" %} ## 📜 **TL;DR:** * The **Hemi Network** champions decentralized roles, leverages Bitcoin's security, promotes open participation, fault tolerance, and fee efficiency to enhance Layer 2 solutions. {% endhint %} *** ## **🌐 Overview** * In contrast to other Layer 2 (L2) rollup solutions, the Hemi Network introduces a more decentralized approach to data publication and validation, addressing critical issues present in current L2 setups: * **✅ Decentralized Roles:** Introduces a decentralized approach with Publishers handling key roles asynchronously, mitigating the risks associated with centralized control found in other L2 networks. * **✅ Incentivized Participation:** Allows open participation through staking tokens with Ethereum-side validation contracts, fostering consistent and incentivized data sharing even during times of increased fee activity. * **✅ Fault Tolerance and Reward System:** Implements a system to discourage malicious behavior, slashing stakes of Publishers submitting invalid data while rewarding Challengers who identify faults, thereby promoting network integrity. * **✅ Efficient Ethereum Fee Management:** Manages rewards via Ethereum-side validation contracts, ensuring consistent incentives for Publishers despite Ethereum fee fluctuations. # Sequencer Consensus {% hint style="info" %} ## 📜 **TL;DR:** * This approach addresses key PoS vulnerabilities: weak subjectivity and censorship attacks. * Forged chains would be invalidated by the state proofs on the Bitcoin network. * Integration with the Bitcoin network validates the blockchain and helps maintain integrity even under attack. {% endhint %} {% hint style="success" %} ## 👀 Sneak Peek WIP *The Hemi Network uses a hybrid of Proof-of-Stake (PoS) and Proof-of-Proof (PoP) to secure its blockchain.* {% endhint %} *** ## 🌐 **Overview** The Hemi Network utilizes the Bitcoin-Secure Sequencer (BSS), a type of Proof-of-Stake (PoS) node, to achieve consensus, or agreement, on the network’s status. By leveraging the Bitcoin blockchain, the Hemi Network decentralizes its security measures, reducing reliance on internal network validators. *** {% hint style="success" %} ## 👀 Sneak Peek WIP ***Enhanced Consensus Mechanism*** *The network combines traditional PoS with Proof-of-Proof (PoP), creating a more secure and robust consensus mechanism than standard PoS systems.* {% endhint %} *** ## 🛠️ **How?** ⛓️ It incorporates state proofs from the Bitcoin network to validate the Hemi blockchain, ensuring the network's history cannot be easily altered or falsified. 🛡️ The hybrid model provides a unique defense against majority stake attacks, a common vulnerability in pure PoS networks. 🔐 In the event of an overwhelming attack, the network can offload transactions to the Bitcoin network, ensuring continuous operation and security. # Proof-of-Stake (PoS) {% hint style="info" %} ## 📜 **TL;DR:** * Pure Proof-of-Stake networks rely on social consensus to prevent censorship by majority stakers and long-range attacks using old **PoS keys (weak-subjectivity attacks).** * **Staking** is the risking of an asset in return for the chance to construct a block. * A user who acts maliciously will have his stake **slashed** (reduced) as punishment for attacking the network. * **The Hemi Network** uses a hybrid staking system that incorporates network state proofs published to the Bitcoin network, preventing both censorship attacks and weak-subjectivity attacks. {% endhint %} *** ## 🌐 **Overview** * In Proof-of-Stake (PoS) consensus protocols, **staking** is a form of virtual mining in which users risk some amount of tokens (a “stake”) for the chance to construct a block and earn block rewards. If the staker misbehaves (for example, by trying to cheat the system), the network will remove some or all of the stake (a process called “slashing”). Under normal conditions when stakers act honestly, slashing is a rare occurrence. PoS is a popular alternative to Proof-of-Work (as in Bitcoin) because staking is far less energy intensive than mining. *** ## ⚠️ **Security Risks in Proof-of-Stake** * Conventional PoS networks, however, face two security risks inherent to staking. If a malicious actor were to acquire more than half of the staking power on the network, he could censor transactions, including slashing transactions, which would prevent other honest validators from regaining control of the network. PoS systems also suffer from weak subjectivity.&#x20; * If a malicious actor acquired enough old PoS keys to have the majority of staking power, he could use the old keys to create a valid alternative chain. Pure PoS chains like Ethereum rely on social consensus to address these issues because the protocols themselves are vulnerable. *** {% hint style="success" %} ## 👀 Sneak Peek WIP **The Hemi Network's Hybrid Staking Approach** The Hemi Network uses a modified PoS protocol to provide security. Sequencers and publishers on the Hemi Network stake the network’s native token, as part of their normal operations. However, because of the network state proofs which proof-of-proof miners publish to the Bitcoin network, old staking keys cannot be used to construct a valid alternative chain. Constructing a valid alternative chain would require also reorganizing the Bitcoin network to publish corresponding alternative state proofs. Furthermore, even a staker with an overwhelming majority of staking power on the Hemi Network would not be able to censor transactions. They would still be forced to include Bitcoin block headers in the PoS blocks he produced, and any Hemi Network user could bypass active PoS censorship attacks by offloading transactions to the Bitcoin network. The attacker’s stake would then be slashed and other validators would be allowed to process transactions.&#x20; {% endhint %} # PoS-Only Pitfalls {% hint style="info" %} ### 📜 TL;DR: * Standard **Proof-of-Stake (PoS)** systems like Ethereum face two primary risks: 1. **Weak Subjectivity**, where attackers could potentially gain majority control by accumulating old PoS keys, enabling them to create alternative chains; and 2. **Censorship**, where a current majority stakeholder blocks or ignores transactions, akin to a traditional 51% attack. {% endhint %} *** ## 🚨 Weak Subjectivity * This risk involves an attacker accumulating enough keys of old PoS miners to gain majority control **at some point in the past**. With this control, they could create a valid, alternative/competing version of the blockchain which would appear equally valid to a bootstrapping node attempting to sync the network for the first time, and could also be used to create seemingly valid zero-knowledge proofs of chain state that differs from the legitimate canonical chain. * While Ethereum relies on community consensus to avoid long-range reorganizations of its chain, its PoS protocol doesn’t *technically* prevent this type of attack. *** ## 🚫 Censorship * An attacker with **current majority stake** could potentially block or ignore certain transactions, exercising a form of **majority control** that undermines the network's decentralization and fairness. *** ## ❌ Lack of Protocol-Level Defenses * Since PoS operates entirely within its network, it lacks **protocol-level defenses** against the types of attacks mentioned above. * Among the vulnerabilities, the limitations are: * **No External Correction Mechanism**: If internal rules fail or are exploited, there's no external system to protect or correct the network. * **Self-Contained Security**: PoS systems handle all their security internally within the blockchain network. * By using PoP, Hemi prevents against weak subjectivity attacks because the illegitimate chain an attacker produces when attempting a long-range reorg could not be appropriately published to Bitcoin. Hemi's fork resolution algorithm prevents a reorg from occurring if the new proposed fork does not have PoP publications that are in-step with or before the current chain's publications. As a result, Hemi's consensus algorithm has strong subjectivity and reorganizing a segment of Hemi's chain which has reached Bitcoin finality would require the attacker to 51% attack Hemi and Bitcoin simultaneously. * As a dual-chain L2, Hemi can also provide robust censorship resistance against attacks from majority block-consensus power actors. Any valid Hemi transaction can be published to either Bitcoin or Ethereum, and Hemi's block derivation protocol will force the inclusion of these transactions in Hemi blocks. # PoS Solutions {% hint style="info" %} ## 📜 **TL;DR:** * The Hemi Network combines **Proof-of-Stake (PoS)** with **Proof-of-Proof (PoP)** for enhanced security which: * **Protects against weak subjectivity** using Bitcoin's state proofs. * **Prevents censorship attacks** by offloading transactions to Bitcoin. {% endhint %} *** ## 🛡️ Against Weak Subjectivity Even if an attacker gathers old staking keys, they can't alter the state proofs on the Bitcoin blockchain. These state proofs confirm the Hemi Network's transaction history, so any fake blockchain the attacker creates would be recognized as invalid. *** ## 🚫 Against Censorship Attacks In a worst-case scenario where an attacker controls all the sequencers (the nodes that create blocks in the blockchain), the Hemi Network can still function by using the Bitcoin network. Transactions can be processed (or "offloaded") to Bitcoin, which prevents the attacker from having total control. *** ## 🔚 Conclusion The Hemi Network’s hybrid **PoS-PoP consensus model** hardens the network protocol against both weak subjectivity and censorship. Even with an overwhelming majority of old staking keys, an attacker would be unable to forge finalized state proofs on the Bitcoin blockchain, and the established state proofs would invalidate the altered Hemi Network chain. # Proof-of-Proof (PoP) {% hint style="info" %} ## 📜 **TL;DR:** * The Hemi Network utilizes **Proof-of-Proof (PoP)** to leverage Bitcoin's renowned security. * **PoP Miners** enhance security by publishing Hemi's network data on Bitcoin's blockchain. * Bitcoin confirmations further bolster Hemi's defenses, ensuring a robust and secure network. {% endhint %} *** ## 🛡️ Inherits Bitcoin's Security * Hemi's network capitalizes on Bitcoin's formidable security through a mechanism known as **Proof-of-Proof (PoP)**. This approach allows Hemi to inherit the solid Proof-of-Work (PoW) security of Bitcoin. *** ## 🔍 How? * To achieve this, Hemi deploys specialized miners, referred to as **PoP Miners**. These miners are responsible for: * Gathering crucial network details and publishing them on Bitcoin's blockchain, thereby linking Hemi's security directly to Bitcoin's proven system. * Employing sophisticated algorithms to generate proofs that are vital for the network's security. * Ensuring Hemi's network integrity by leveraging Bitcoin's security, providing a dual layer of protection. * This integration with the Bitcoin blockchain affords Hemi an additional security layer, utilizing Bitcoin's PoW system as a basis for resolving disputes and ensuring trustworthiness. *** ## 🏗️ Block Confirmations * New segments in the Hemi chain receive confirmations from Bitcoin, significantly raising the barrier for potential attacks. These confirmations: * Serve as **"security bricks,"** each one strengthening the network's defenses. * Ensure that any attempt to compromise the network requires substantial power, making unnoticed attacks virtually impossible. * As Bitcoin confirmations accumulate, the Hemi Network's "security wall" becomes increasingly formidable, creating an effective deterrent against malicious actors. *** ## 🔚 Conclusion * The **Proof-of-P
프로젝트로 돌아가기