Abstract
HyperService is the first platform to enable complex, programmable decentralized applications (dApps) to run across heterogeneous blockchains. By introducing a unified programming framework and a secure inter-blockchain protocol, it moves the industry beyond simple token swaps toward a truly interconnected "Internet of Blockchains."
Introduction
The current blockchain ecosystem is a collection of "isolated islands." While powerful chains like Ethereum or Bitcoin exist, they cannot easily communicate or share state. Existing interoperability solutions, such as Atomic Cross-Chain Swaps (ACCS), are mostly limited to simple token exchanges. However, modern blockchains are no longer just passive ledgers; they are programmable state machines. HyperService addresses the lack of programmability across chains, providing a way for developers to write a single dApp that interacts with smart contracts on different blockchains without dealing with the complexity of diverse consensus mechanisms, cryptographic schemes, and smart contract languages.
The HyperService Framework
The authors propose a full-stack solution consisting of two main pillars: a developer-facing programming framework and a secure blockchain-facing protocol.
Unified Programming Framework
- Unified State Model (USM): A blockchain-neutral abstraction that treats accounts and smart contracts on any chain as objects with state variables and functions.
- HyperService Language (HSL): A high-level language that allows developers to define cross-chain logic. An HSL compiler transforms these programs into a Transaction Dependency Graph (TDG), which specifies the exact order and timing constraints of transactions across different chains.
Universal Inter-blockchain Protocol (UIP)
The UIP is the "engine" that executes the TDG. It uses several key components to ensure secure and verifiable execution:
- Verifiable Execution Systems (VESes): Essentially blockchain drivers that handle the low-level details of each chain.
- Network Status Blockchain (NSB): A dedicated "blockchain of blockchains" providing an objective, verifiable view of the execution status of all involved dApps.
- Insurance Smart Contracts (ISC): These act as automated arbitrators. If a cross-chain operation fails or a party misbehaves, the ISC uses staked funds to financially compensate the affected parties, ensuring "financial atomicity."
Experimental Evaluation
The authors implemented a prototype of HyperService in approximately 35,000 lines of code (Go, Python, and Java). To evaluate it, they built a testbed consisting of Ethereum (public, programmable), Tendermint (permissioned/consortium), and their custom NSB. They evaluated the system using three categories of dApps:
- Financial Derivatives: A cross-chain "Option" dApp where strike prices are pulled from one chain to settle trades on another.
- Cross-Chain Asset Movement: Moving assets across different types of ledgers.
- Federated Computing: A cross-chain voting system.
Key Results and Insights
- Low Latency: End-to-end execution latency for complex cross-chain dApps is approximately 6–7 seconds, which is practical for most real-world applications.
- Scalability: The NSB demonstrated a throughput of roughly 1,000 KB/s for committed certificates and is shardable by blockchain.
- Lightweight Integration: Adding a new blockchain requires only a new parser for the HSL compiler, with no changes to the underlying blockchain's protocol.
- Financial Atomicity: In a distributed system of independent blockchains, "forcing" a rollback is often impossible. HyperService solves this by using Insurance Smart Contracts to ensure that even if a state transition fails, no one loses money.
Limitations and Future Work
While HyperService provides financial atomicity, it cannot yet perfectly revert state updates on a destination chain if a dApp fails midway. Future work includes exploring "stateless smart contracts" for better state atomicity. Additionally, the current version of HSL does not support complex control flow like loops or conditional branching to ensure determinism. The framework also faces challenges with privacy-preserving blockchains (like Zcash) and assumes a quorum of honest NSB nodes.
Summary based on the paper "HyperService: Interoperability and Programmability Across Heterogeneous Blockchains."
Summary updated