Lorenzo Protocol 백서

Lorenzo Protocol

원문

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

does not have the permission to touch stakers’ BTCs, Lorenzo’s duty will purely be monitoring these Staking Agents and enforcing the rules in the BLSP. If there is any violation from the Staking Agents, Lorenzo will intervene to ensure proper Staking Agent behavior. ## Mechanism of Minting stBTC The minting of stBTC from native BTC is entirely decentralized. Lorenzo ensures the security of received native BTC by introducing well-known custodial institutions like Cobo, Ceffu and Chainup. Lorenzo Chain provides a comprehensive mechanism to verify users' staking operations and mints corresponding stBTC onto the Lorenzo Chain. Users can then leverage protocols like Wormhole and LayerZero to enable omnichain interoperability for stBTC. ### Asset Custody <a href="#asset-custody" id="asset-custody"></a> Lorenzo Chain includes an agent module that stores custody information for Lorenzo BTC assets. Currently, it primarily supports Cobo, Ceffu and Chainup for receiving users' staked native BTC assets. The list of agents can be retrieved by invoking the **Agents** RPC method from the agent module. The **btcstaking** staking module references this agent module to validate the legality of transactions. ### User Staking <a href="#user-staking" id="user-staking"></a> Users need to initiate a valid staking transaction on the Bitcoin chain, meeting the following conditions: 1. **Vout Requirements:** * At least one **vout** must have an address that is listed in the agent module's Bitcoin address list. * Transactions with multiple **vouts** containing different agent addresses are **NOT** supported. 1. **OP\_RETURN Field:** * One **vout** must include an **OP\_RETURN** field, formatted as described below. 1. **Change Address:** * A **vout** can include a change address. 1. **Minimum BTC Amount:** * The transferred BTC amount must exceed a specified threshold (0.00003 BTC). ### Definition of OP\_RETURN Data Format <a href="#definition-of-op_return-data-format" id="definition-of-op_return-data-format"></a> * **EVM Address (20 bytes)**: The address on the target chain where the equivalent stBTC will be received. The user should hold the private key for this address. * **Chain ID (4 bytes)**: The target chain’s ID, defaulting to Lorenzo Chain. * **Plan ID (8 bytes)**: The ID of the Lorenzo Staking Plan being participated in. Users can view the current active plan and its ID on the Lorenzo official website. ### Lorenzo Relayer <a href="#lorenzo-relayer" id="lorenzo-relayer"></a> The Relayer program is responsible for submitting Bitcoin block headers. It connects to a Bitcoin node and submits the headers to the **btclightclient** module on Lorenzo. The **btclightclient** performs the following validations: * Verifies the block header's difficulty value. * Checks if the parent block header exists. * For forks, determines the optimal chain and rolls back if necessary. If the validation succeeds, the block header data is stored as key-value pairs, where the key is the block hash, and the value is the complete block header data. Due to the simplicity of the Proof-of-Work (PoW) algorithm, the process of submitting Bitcoin block headers to **btclightclient** is decentralized. As long as one honest and online relayer exists, the entire verification process remains reliable. Currently, Lorenzo maintains an official relayer. ### Submitter <a href="#submitter" id="submitter"></a> The Submitter program is responsible for submitting valid BTC staking transactions. It monitors Bitcoin chain transactions and preliminarily determines whether they qualify as staking transactions based on whether the primary **vout** address matches the custodial addresses specified by Lorenzo. If valid, the Submitter packages the BTC transaction, its proof, and the block hash into a **MsgCreateBTCStaking** transaction and sends it to Lorenzo’s **btcstaking** module. Lorenzo performs the following verifications: 1. Ensures the transaction has not been used to mint stBTC before. 2. Validates the staked BTC amount and applies different block confirmation requirements: * Amount < 0.0004 BTC: Requires 3 confirmations. * Amount > 0.02 BTC: Requires 4 confirmations. * Amount > 0.1 BTC: Requires 5 confirmations. * Amount > 0.5 BTC: Requires 6 confirmations. 1. Retrieves block header information using the provided block hash and verifies the staking transaction’s inclusion on-chain using the proof. 2. Confirms the correctness of the vout address. Only after passing all validations does Lorenzo’s **MsgCreateBTCStaking** module invoke the **bank** module to mint stBTC. ### Detailed Minting Process <a href="#detailed-minting-process" id="detailed-minting-process"></a> The **btcstaking** module provides mint and burn functionalities for stBTC. Below is a detailed description of the minting process: 1. **CreateBTCStaking RPC Method:** * The **btcstaking** module offers the **CreateBTCStaking** RPC method for minting stBTC. Key input parameters include the complete Bitcoin transaction, the block’s hash, the transaction’s position in the block, and the transaction’s proof. 1. **Dependency on btclightclient Data:** * The **btclightclient** module stores Bitcoin block header data. The Submitter ensures that the block header data exists in **btclightclient** before invoking the **CreateBTCStaking** method. 1. **Validation:** * Retrieves the block header data from **btclightclient** using the block hash. * Validates the transaction using the block header data, transaction data, and proof through PoW and Merkle tree proof. 1. **Minting stBTC:** * Parses the **OP\_RETURN** field to extract the EVM address, Chain ID, and Plan ID. * Sequentially calls the **MintCoins** and **SendCoinsFromModuleToAccount** methods of the **bank** module to mint the equivalent stBTC to the EVM address. * Emits an **EventBTCStakingCreated** event. # User Guides ## Network Information ### 1. Mainnet #### Blockchain RPC * RPC URL: [**https://rpc.lorenzo-protocol.xyz**](https://rpc-testnet.lorenzo-protocol.xyz) * Chain ID: `8329` **,** or `0x2089` in hex. * Currency symbol: `stBTC` #### Blockchain Explorer [**https://scan.lorenzo-protocol.xyz**](https://scan.lorenzo-protocol.xyz/) ### 2. Testnet #### Blockchain RPC * RPC URL: [**https://rpc-testnet.lorenzo-protocol.xyz**](https://rpc-testnet.lorenzo-protocol.xyz) * Chain ID: `83291` **,** or `0x1455b` in hex. * Currency symbol: `stBTC` #### Blockchain Explorer [**https://scan-testnet.lorenzo-protocol.xyz**](https://scan-testnet.lorenzo-protocol.xyz) # enzoBTC: Decentralized wrapped BTC for DeFi enzoBTC, a wrapped BTC issued by Lorenzo Protocol, is poised to revolutionize the management and liquidity of Bitcoin (BTC) assets. Recognizing the growing demand for secure and streamlined BTC-based applications, enzoBTC aims to create a transparent and trustworthy environment for BTC asset aggregation. ### What is enzoBTC <a href="#what-is-enzobtc" id="what-is-enzobtc"></a> enzoBTC, a wrapped BTC issued by Lorenzo Protocol, is poised to revolutionize the management and liquidity of Bitcoin (BTC) assets. Recognizing the growing demand for secure and streamlined BTC-based applications, enzoBTC aims to create a transparent and trustworthy environment for BTC asset aggregation. ### Mechanism of Minting enzoBTC <a href="#mechanism-of-minting-enzobtc" id="mechanism-of-minting-enzobtc"></a> The minting of enzoBTC from native BTC/WBTC/BTCB is entirely decentralized. Lorenzo ensures the security of received native BTC/WBTC/BTCB by introducing well-known custodial institutions like Cobo, Ceffu and Chainup. Users can then leverage protocols like Wormhole and LayerZero to enable omnichain interoperability for enzoBTC. ### Unstaking enzoBTC <a href="#unstaking-enzobtc" id="unstaking-enzobtc"></a> Users can unstake their enzoBTC at any time to a chosen recipient address into different types of assets like native BTC,WBTC/BTCB. ### The Core Approach <a href="#the-core-approach" id="the-core-approach"></a> At the heart of the enzoBTC is a unique approach that involves locking underlying BTC assets while issuing wrapped BTC tokens. This approach not only unlocks the liquidity of native BTC but also seeks to explore various applications for both the underlying and upper-layer liquidity assets, ultimately generating returns for users. * Scalable BTC Applications * enzoBTC solves the BTC application scalability problem by building a decentralized committee hosting network. The architecture supports BTC-MPC (multi-party computation) with small signature shards and dynamic multi-signatures, thereby reducing centralization risks and improving operational efficiency. * Furthermore, enzoBTC aims to create an on-chain BTC DeFi strategy library, balancing flexibility and security. By unlocking liquidity and enabling multiple asset applications, enzoBTC strives to maximize the value of BTC-based assets. * Innovative Asset Application Model * enzoBTC Innovative Asset Application Model encompasses two key components: * 1.Underlying Assets Yield Aggregation: Users can stake their native BTC into the Lorenzo Staking Plans on the Bitcoin chain, receiving an equivalent amount of Liquid Principal Tokens in return. The yield from the underlying BTC is generated through methods like Babylon POS staking, and CeFi (Centralized Finance). * 2.Upper Layer Liquidity Assets Yield Aggregation: enzoBTC enables users to leverage their liquidity assets within traditional DeFi ecosystems , to participate in DeFi protocols and earn returns from the application providers. ### Key Features <a href="#key-features" id="key-features"></a> * enzoBTC's key features include: * Security: Ensuring the safety and integrity of BTC-based assets * Convenience: Streamlining the management and utilization of BTC assets * Multiple Yield Strategies: Providing users with a diverse range of options to generate returns on their BTC holdings * With its innovative approach, enzoBTC aims to unlock the full potential of Bitcoin assets, fostering the development of a thriving BTC-based ecosystem and empowering users to maximize the value of Bitcoin assets. ### enzoBTC's Mission & Vision <a href="#enzobtcs-mission-and-vision" id="enzobtcs-mission-and-vision"></a> * enzoBTC's overarching goal is to elevate Bitcoin's role beyond just a store of value and transform it into a versatile financial instrument that powers the burgeoning digital economy. The vision is to unlock Bitcoin's potential as a foundational layer within the decentralized finance (DeFi) ecosystem, enabling it to serve as: * A universal collateral asset: Bitcoin's characteristics make it an ideal form of collateral for DeFi applications, allowing users to earn, stake, trade, and transfer BTC at scale within this rapidly evolving space. * A security backbone: Proof-of-Stake (PoS) networks can leverage Bitcoin's robust security model, providing a higher level of crypto-economic security than relying solely on native tokens. * A unifying fabric: Bitcoin can act as a connective tissue, bridging various protocols, ecosystems, capital flows, and innovative possibilities, thereby driving growth and fostering collaboration across the broader cryptocurrency landscape. * The overarching mission is to amplify Bitcoin's utility beyond its current status, positioning it as a versatile financial primitive that underpins the growth and development of DeFi and broader blockchain-based ecosystems. ### enzoBTC in DeFi <a href="#enzobtc-in-defi" id="enzobtc-in-defi"></a> * Lorenzo's mission is to forge strategic partnerships with leading DeFi platforms, opening up new avenues for generating yields. enzoBTC's new approach ensures that enzoBTC is actively deployed across the most active and reputable DeFi protocols. * By strategically distributing enzoBTC across these DeFi platforms and incentivizing participation with Lorenzo points multipliers, Lorenzo aims to unlock a diverse range of yield-generating avenues for enzoBTC holders. This approach not only maximizes returns but also fosters the growth and adoption of enzoBTC within the broader DeFi landscape. * Borrow/Lend * DEX Liquidity * Restaking * Yield Farming * Trading * Vaults ### enzoBTC vs stBTC <a href="#enzobtc-vs-stbtc" id="enzobtc-vs-stbtc"></a> * stBTC represents the yield earned by users who stake their BTC into the Babylon protocol through Lorenzo. * enzoBTC is a newly wrapped Bitcoin token issued by Lorenzo. With the launch of enzoBTC, users can deposit their enzoBTC as collateral into Lorenzo's Babylon Yield Vault to earn staking rewards from the Babylon protocol. * In other words, stBTC is the yield generated when users directly stake their BTC with Lorenzo for Babylon, while enzoBTC allows users to indirectly participate in Babylon staking by using the wrapped Bitcoin token as collateral in the Yield Vault. * This approach provides users with flexibility in how they contribute capital to the Babylon protocol and earn rewards, either through direct BTC staking or by utilizing the enzoBTC token as an intermediary collateral asset. ### Technical Details <a href="#technical-details" id="technical-details"></a> **Smart contracts** BNB Chain: <https://bscscan.com/address/0x6A9A65B84843F5fD4aC9a0471C4fc11AFfFBce4a> ETH Mainnet: <https://etherscan.io/address/0x6A9A65B84843F5fD4aC9a0471C4fc11AFfFBce4a> **Audit** <https://github.com/Lorenzo-Protocol/audit-report>
프로젝트로 돌아가기