Skip to main content

Hyperbridge

Learn about Parachain and Bridges

To follow the material on this page, it is recommended to be familiar with the concepts of Parachains and Bridges.

Interoperability is the core vision of the Polkadot technology. Through years of blockchain development, much effort has been put into making a secure interoperability solution between blockchains. Polkadot provides secure interoperability between parachains through its Cross-Consensus Messaging (XCM), and Cross-Chain Message Passing (XCMP) protocol. However, these solutions work when there is a shared security. In the case of interaction between chains that do not belong to the same Polkadot's shared security, bridges are needed.

Hyperbridge (short for hyper-scalable bridge) is innovated as a cross-chain solution built as an interoperability coprocessor. Hyperbridge is crafted to scale cryptographically secure, consensus, and state-proof-based interoperability across all blockchains.

Coprocessor Modelโ€‹

Ensuring secure cross-chain communication involves the meticulous verification of various aspects, including: Consensus Mechanisms, Consensus Faults, State Proofs and State Transitions.

What is a coprocessor?

Coprocessor, in the context of hardware, can be referred to as a microprocessor designed to supplement the capabilities of the primary processor. For example, a GPU is a coprocessor of the CPU to be optimized for graphical and simultaneous computation.

Due to the complexity and expensiveness of the onchain verification process, in the coprocessor model, the computation is performed off-chain. The execution outcomes and cryptographic proofs validating their accuracy are subsequently presented on-chain.

Expanding more about the coprocessor model, it has been applied in other solutions of offloading cryptographic computation as well, particularly Zero-knowledge (ZK) coprocessor or SNARK circuit.

Parachain as Coprocessorsโ€‹

By leveraging the cost-effective consensus proofs facilitated by BEEFY, Hyperbridge affirms the legitimacy of all parachain state transitions safeguarded by the network.

This capability enables the distribution of the validation workload for consensus, state proofs, and state transition re-execution across various designated Parachain Cores. Hence, Polkadot is utilized by Hyperbridge as a verifiable computation layer to provide the "Full Node Security" in cross-chain bridges.

Hence, an additional layer of security is provided, allowing Hyperbridge to detect and prevent Byzantine behaviors across connected chains.

Interoperable State Machine Protocol (ISMP)โ€‹

Interoperable State Machine Protocol (ISMP) provides a familiar HTTP-like API for developers who want to make cross-chain requests to trigger certain logic on the counterparty chain. It allows POST requests to send arbitrary data to connected chains and GET requests to read the storage (verified through state proofs) of applications on connected chains.

In addition to facilitating cross-chain message passing among connected chains, ISMP also serves as a synchronization primitive across Hyperbridge's internal state machines. This enables its parachain cores to communicate with each other and delegate tasks.

Underlying technologiesโ€‹

The underlying technologies of the Hyperbridge are integrated with:

  • PLONK verifier: The PLONK Verifier within Hyperbridge can be likened to a sophisticated security apparatus. It operates like an expert detective, meticulously ensuring the legitimacy of every transaction without compromising private details. Continuously enhancing its capabilities, particularly with advancements like UltraPLONK, this integral component is pivotal in maintaining the utmost integrity and confidentiality of cross-chain communications.
  • BEEFY consensus: The BEEFY (Bridge Efficiency Enabling Finality Yielder) protocol functions as a complementary system to GRANDPA, specifically designed to facilitate efficient bridging between the Polkadot network's relay chain and external, isolated blockchains like Ethereum. Notably, BEEFY addresses the interoperability challenge with blockchains not initially constructed to integrate seamlessly with the Polkadot interchain framework.
  • The Barretenberg backend: Within the realm of Hyperbridge, Barretenberg functions as a powerhouse engine, adeptly managing intricate mathematical computations. As the backend infrastructure, it guarantees the swift, secure, and reliable execution of all cryptographic operations within the Hyperbridge ecosystem.

Terminologyโ€‹

State Proofsโ€‹

State proofs are a critical primitive of the blockchain stack that enables things like trustless bridges. These off-chain light clients can access on-chain data in a permissionless and secure manner and modular blockchain architectures where the execution layer can be decoupled from the consensus layer.

Consensus Proofsโ€‹

Consensus Proofs in a blockchain system denote the mechanism by which participants, often nodes or validators, collectively agree on the validity of new transactions or blocks. The nature of consensus proofs varies across different blockchain architectures, such as Proof-of-Work, Proof-of-Stake, or other consensus algorithms.

The ultimate goal is to ensure a widespread and verifiable agreement among network participants, enhancing the security and reliability of the distributed ledger.

For example, Consensus Proofs in a proof of stake system are given as the signatures over the latest block header in the chain from a supermajority (two-thirds plus one) subset of the full authority set.

Resourcesโ€‹

To learn more about Hyperbridge, see the resources below.