edgeX 백서

edgeX

원문

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

# About edgeX edgeX is building a parallel, modular execution app-specific execution layer with Ethereum-level security. ## EDGE Stack: Deterministic Parallel and Modular Execution for Trading Engine ### Background: Structural Contradictions in DeFi Infrastructure Decentralized Finance has evolved quickly, but perpetual futures still face fundamental constraints: slow execution, trust assumptions, and poor scalability. Most chains continue to run transactions through sequential execution over a single global state machine, creating a bottleneck where throughput and latency can’t meet ultra-low-latency demands of high-frequency and quantitative trading. Some systems improved speed but compromised on fairness, transparency, or fully verifiable order matching. Meanwhile, monolithic DEX designs struggle to scale, hosting both perpetuals and broader DeFi functionality becomes costly, rigid, and difficult to expand. ### EDGE Stack: Modular Execution Environment for Trading Engines EDGE Stack is built as an App-Specific Execution Layer optimized for high-performance on-chain trading. Instead of adapting generic blockchain infrastructure, we redesign the system at the execution layer. With a modular multi-VM architecture and a deterministic Parallel Transaction Execution (PTE), EDGE Stack delivers high throughput, low latency, and fully verifiable matching for complex derivatives like perpetuals. As part of the rollup ecosystem, EDGE Stack ultimately benefits from Ethereum's security guarantees, allowing users to adhere to DeFi's trust minimization principles while enjoying an ultra-low-latency on-chain experience.<br> ### Three Core Technical Pillars EDGE Stack uses a modular Multi-VM architecture optimized for trading workloads. * **Modular Multi-VM:** Now edgeVM handles perp execution and edgeEVM supports standard DeFi logic. In the future, edgeX can add additional VM environments. * **Parallel Transaction Execution (PTE):** Executes non-conflicting transactions in parallel. * **FlashLane**: Quality of Service (QoS) scheduling and multi-lane execution. <figure><img src="https://306066812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpfcaPbebWLbUlo9XcPCp%2Fuploads%2Fgit-blob-f675ecdc373da4c53bd76c40868c1f2dc952fa92%2FArch.png?alt=media" alt=""><figcaption></figcaption></figure> #### I. Modular Multi-VM Core perpetual logic runs inside a dedicated edgeVM with exclusive compute resources for lower latency. Right now it contains: * **edgeVM** handles high-performance perpetual execution (matching, liquidation, risk). * **edgeEVM** supports standard DeFi logic such as asset issuance and governance. * **Precompiled Contracts** run stable but computationally heavy functions. New product lines can be added by deploying additional VM actors or reusing existing ones, with isolation enforced via EIP-2930–style access lists. This enables plug-and-play expansion without architectural disruption.<br> #### II. Deterministic Parallel Transaction Execution (PTE) PTE is the parallelization engine that transforms the Sequencer’s serial input into safe, verifiable parallel execution.Using Market-Sharded Execution, each market or derivative type is handled by an independent VM Actor, allowing order books and position states to run in parallel without conflict. Highly active markets can be further subdivided, allowing throughput to scale roughly linearly with the number of active markets.Within a market, PTE uses extended access lists to define read/write scopes and only executes non-conflicting transactions in parallel. Conflicts follow fixed resolution rules, ensuring the final state remains serializable to the sequencer’s canonical order. This preserves deterministic replay, verifiability, and proof validity while fully utilizing multi-core resources. Critical subsystems such as liquidation or risk can run as separate Actors and scale horizontally as load grows.<br> #### III. FlashLane On top of raw throughput, edge Stack improves trading UX with QoS scheduling and multi-lane execution.Transactions are routed into two lanes: * **Fast Lane:** latency-sensitive actions like order placement/cancellation. * **Slow Lane:** non-urgent operations such as withdrawals or governance. This prevents non-critical activity from degrading matching engine performance.For high-frequency users, a FlashLane Commitment mechanism provides near-instant soft confirmation. After submission, the system performs a local PTE simulation and returns the intended batch ID and projected queue position (subject to rare reordering) within milliseconds. Combined with micro-batching and optimized I/O, traders gain predictable execution timing while preserving full on-chain verifiability.<br> ### State & Security All parallel execution results converge into a single State Root Commitment. Using **Parallel Merklization**, edge Stack computes state tree hashes concurrently within a block, producing a deterministic State Root and Block Hash.These commitments settle to the underlying rollup layer and inherit Ethereum security. Any participant can independently replay the same transaction batch to verify correctness, ensuring full transparency, verifiability, and Ethereum-grade finality - without compromising performance. # edgeX V1 edgeX V1, the Minimum Viable Product (MVP) of edgeX, is a high-performance, orderbook-based perpetual decentralized exchange (Perp DEX), crafted to deliver a native trading experience. This is achieved through advanced trading infrastructure, superior performance, and trader-centric features. **Commitment to Trader Experience** Recognizing that traders are the foundation of any exchange’s sustainable growth, edgeX is designed to foster organic and long-term engagement. With deep roots in the crypto derivatives space, edgeX team has a profound understanding of trader demands, building edgeX around these needs from the outset. The guiding principle has always been to “build something traders love to use.” The MVP underscores edgeX’s standard of excellence across several key areas: **Battle-Tested Solution:** Powered by the StarkEx Layer 2 engine, edgeX V1 is built with an on-chain infrastructure that has handled over $1.28 trillion in cumulative trading volume since 2020. This robust solution meets the high demands of professional traders for performance and experience, while ensuring transparency of data and security of assets. **Zero-Knowledge (ZK) Rollup:** Each trade on edgeX is validated by third-party committees and batched into Ethereum for transparency. The publication of zero-knowledge proofs on the Ethereum Layer 1 blockchain validates Layer 2 transactions, ensuring their integrity and security. **Self-Custody:** edgeX ensures traders retain full custody and control of their funds, a key differentiation from centralized exchanges (CEX). The failures of exchanges like FTX have underscored the risks of centralized custody. At edgeX, users maintain self-custody of their assets, allowing for withdrawals at any time without platform permission, thus providing a trustless and secure trading environment. **Price Integrity and Fairness:** edgeX employs independent oracle providers to obtain mark prices, preventing price manipulation and ensuring an equitable and accurate reflection of asset values. This mechanism safeguards user positions from price manipulation and liquidation issues often seen in centralized exchanges. **Trading Performance:** The high-performance trading engine of edgeX V1 ensures a seamless and lightning-fast trading experience. Compared to other Performant Perp DEXs, edgeX achieves impressive performance metrics. When scaled up to 10 shards, edgeX outperforms competitors in terms of performance and match latency, delivering a faster and more efficient trading process. These advantages underscore edgeX commitment to providing a top-tier trading experience for professional perpetual traders. **Professional UX and UI:** edgeX features a professional UI and UX tailored for professional perpetual traders, ensuring a seamless and intuitive trading experience. **Advanced Trading Features:**&#x65;dgeX offers advanced trading features traditionally available only on CEXs, such as a sub-account system. This allows traders to manage bi-directional positions, optimizing strategies and managing risks more effectively through hedge positions. **Easiest Onboarding — Social Logins:** With features like MPC wallets, edgeX V1 offers the easiest onboarding process for new users. Traders can register with just an email, and enjoy cross-chain deposit and withdrawal, making the platform accessible to everyone. **Mobile Version Coming Soon:** Recognizing the importance of retail perpetual traders, the mobile version of edgeX will be launched shortly after the web version, ensuring traders can manage their trades conveniently from any device. # V1 Technical Architecture edgeX V1 is a high-performance decentralized exchange (DEX) operating as a central limit order book (CLOB) model. Each trade on edgeX V1 is settled on the Ethereum, leveraging the StarkEx Layer 2 engine for on-chain validation of trading logic, preventing fraudulent or incorrect transactions. This robust validation process is reinforced by third-party committees, which batch trades into the Ethereum blockchain, ensuring transparency and integrity. The publication of zero-knowledge proofs on the Ethereum Layer 1 blockchain adds a layer of security, validating Layer 2 transactions and safeguarding their integrity. edgeX V1 utilizes independent oracle providers to source mark prices, effectively mitigating the risk of price manipulation and ensuring accurate reflection of asset values. This mechanism protects user positions from price manipulation and liquidation issues prevalent in centralized exchanges. The high-performance trading engine of edgeX V1 delivers a seamless and exceptionally fast trading experience. When scale up to 10 shards, edgeX achieves an impressive throughput of 20,000 transactions per second (tps) and boasts the lowest match latency in the industry. These performance metrics highlight edgeX's commitment to providing a top-tier trading environment for professional perpetual traders. edgeX V1's technical architecture balances the security and transparency inherent to decentralization with the speed and efficiency required for high-frequency trading. # Self-Custody edgeX, a high-performance decentralized derivatives trading platform, is advancing user asset security and operational transparency by integrating StarkEx’s Layer 2 (L2) scalability solution. Developed by Israeli zero-knowledge proof (ZK) specialist StarkWare, StarkEx employs ZK-Rollup technology to enhance the Ethereum blockchain’s capabilities. This integration ensures that users maintain self-custody over their assets while benefiting from increased transaction speeds and reduced costs. **Leveraging StarkEx for Scalability and Security** At the core of edgeX V1’s trading and settlement system is StarkEx’s ZK-Rollup technology, which aggregates multiple transactions off-chain and then verifies them on-chain using zero-knowledge proofs. This approach significantly reduces the computational load on the Ethereum mainnet, enabling higher throughput without compromising security. Since its deployment in 2020, StarkEx has processed over **$1.3 trillion** in trading volume for more than **200,000 users** worldwide, making it one of the most battle-tested L2 solutions available. By adopting this technology, edgeX ensures that all transactions are securely validated and that the final state of transactions is both transparent and immutable. <figure><img src="https://306066812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpfcaPbebWLbUlo9XcPCp%2Fuploads%2Fgit-blob-45d5fa452ea1566cff0de278b161fa6c8c6d50da%2FStarkEx_flow.png?alt=media" alt=""><figcaption><p><strong>System Operational Flow</strong></p></figcaption></figure> **Overview** 1. Transaction Execution: Users initiate trades on edgeX, which are executed by the platform and sent to the StarkEx service for processing. 2. Batch Processing and Proof Generation: The StarkEx service batches these transactions and forwards them to the Shared Prover (SHARP) system. SHARP generates zero-knowledge proofs (STARK proofs) to validate the integrity of the batched transactions. 3. On-Chain Verification: The generated proofs are submitted to the on-chain STARK verifier. This verifier ensures that the proofs are valid before any state changes are accepted on the Ethereum blockchain. 4. State Update Submission: Upon successful verification, the StarkEx service submits the updated state to the StarkEx smart contract on the Ethereum mainnet. The contract accepts this new state only if the associated proof has been validated, ensuring the legitimacy of all recorded transactions. This meticulous process upholds the platform’s security and accuracy, providing users with confidence in the system’s reliability. Curious to learn more about StarkEx? Visit their comprehensive [documentation](https://docs.starkware.co/starkex/index.html) for detailed insights. **User Asset Self-Custody: Control at the Forefront** Unlike centralized exchanges that hold custody of user funds, edgeX utilizes Ethereum smart contracts to store and manage assets transparently via the StarkEx solution. Users deposit their funds directly into these smart contracts on the Ethereum mainnet before engaging in any trading activities on the edgeX platform. Each transaction requires the user’s approval through their Ethereum private key, ensuring that only the account owner can authorize movements of their assets. This non-custodial approach means that even while assets are managed within the L2 system, users retain full control. Even in black swan scenarios where the L2 operator (edgeX) might experience downtime or fail to process transactions promptly, users can independently close their positions and withdraw their funds using their private keys. This mechanism provides an additional layer of security and autonomy, safeguarding user assets against potential operational risks. edgeX’s reliance on user signatures for all L2 account operations makes unauthorized transactions virtually impossible. The synchronization of L2 states with Ethereum’s Layer 1 custody contracts further ensures that all asset movements are transparent and verifiable on the blockchain. By design, no entity can construct fraudulent transactions to misappropriate user assets. **Anti-Censorship Measures and Forced Withdrawals** edgeX’s architecture includes robust features to protect user assets through anti-censorship mechanisms, ensuring that users can access their funds without interference at any time: * **Forced Withdrawals**: If, for any reason, edgeX does not process a user’s withdrawal request within a predetermined timeframe, users can initiate a forced withdrawal. This process allows them to interact directly with the smart contract to retrieve their assets, bypassing the operator. These features ensure that users have uninterrupted access to their assets, even in the face of unforeseen events or platform disruptions. <figure><img src="https://306066812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpfcaPbebWLbUlo9XcPCp%2Fuploads%2Fgit-blob-83e36d891d5312ef9ac6d8c562aae3722fb61e31%2Fforced-operation.png?alt=media" alt=""><figcaption></figcaption></figure> For a step-by-step guide on the forced withdrawal process, please check out the [StarkEx Forced Operations page](https://docs.starkware.co/starkex/perpetual/performing-forced-transactions.html). **Commitment to Transparency and User Empowerment** edgeX’s integration of StarkEx technology represents a significant advancement in exchange technology. By prioritizing self-custodial assets and incorporating mechanisms for anti-censorship, edgeX empowers users with unparalleled control over their assets. # Decentralized Oracle Pricing **Oracle Price** edgeX's Oracle Price is sourced from the independent provider [Stork](https://www.stork.network/) and is used to calculate margin requirements and liquidation prices. The estimated liquidation price is influenced by the user’s leverage and margin. If the Oracle Price reaches this liquidation threshold, the position will undergo forced liquidation. Oracle Prices are crucial for maintaining the integrity of the trading platform by providing reliable price data that is resistant to manipulation. **The Importance of Oracle Prices and How Decentralized Oracles Prevent Price Manipulations** In the cryptocurrency market, centralized exchanges (CEXs) have historically played a significant role. However, concerns about potential price manipulation and malicious flash crashes on some centralized platforms have garnered widespread attention. These incidents can lead to unwarranted liquidations and substantial financial losses for traders. In this context, decentralized oracles are emerging as a promising solution to enhance market integrity. The Challenge of Malicious Flash Crashes on Centralized Exchanges A malicious flash crash refers to sudden, abnormal surges or drops in asset prices on trading charts. These abrupt movements can trigger traders’ stop-loss orders unexpectedly, leading to forced liquidations and financial losses. Causes may include market manipulation, insufficient liquidity, algorithmic trading errors, or technical glitches within the exchange. Given that CEXs have full control over their platforms, it becomes challenging for external parties and traders to verify the true origins of these anomalies. In contrast, decentralized exchanges like edgeX can integrate decentralized oracles into their platforms. Decentralized oracles are systems that collect and verify data through distributed networks, aiming to provide trustworthy and manipulation-resistant external information to decentralized applications. Unlike traditional centralized oracles, these decentralized counterparts rely on multiple independent data sources and validation nodes to ensure data accuracy and reliability. **How Decentralized Oracles Prevent Malicious Price Manipulations** 1: Decentralized Data Sources By aggregating price information from multiple mainstream exchanges and markets, decentralized oracles reduce the risk of relying on a single, potentially compromised data source. Even if one exchange experiences abnormal volatility, the oracle can provide accurate pricing by referencing alternative sources. This diversification enhances the robustness of the price data and mitigates the impact of localized anomalies. 2. Consensus Mechanism Verification Nodes within the oracle network use consensus algorithms to validate collected data, filtering out anomalous or outlier price points. This process ensures that the final price feed is both accurate and trustworthy. By requiring agreement among multiple nodes, the oracle network minimizes the risk of false data being introduced into the system. 3. Transparency and Auditability All data collection and verification steps are recorded, offering complete transparency. This auditability enhances the system’s credibility and minimizes the possibility of undetected manipulation. Traders and external parties can verify the integrity of the data, fostering trust in the platform. edgeX Uses Stork, the Most Battle-Proven Decentralized Oracle Provider for Perp DEX Stork is an oracle that offers unprecedented speed and pricing expertise to the world of leveraged derivatives trading. Stork serves as the backbone for over 35 perpetual decentralized exchanges (Perp DEX), supporting over 2,000 assets and securing over $300 billion in trading volume. **Technical Architecture** Stork is built on robust architecture designed for speed, reliability, and flexibility: **Decentralized Publisher Netwo
프로젝트로 돌아가기