hyperbridge core

Blockchain subprocessor

Initializing state machine client

Decoding block witness

Re-executing blocks

Checking state root matches

Successfully verified blocks

State Proof Verification

Initializing merkle-patricia trie verifier

loading EIP-1168 Proofs

Traversing the Partial Trie

Reached leaf nodes

Extracting values

Successfully verified state proof

Initializing consensus client

Decoding consensus proof

Checking for super majority participation

Waiting for challenge period

Successfully verified consensus proof

Consensus processing Unit

Cryptographically secure cross-chain interoperability

Powered by industry leading, zero-knowledge cryptography. Secured by Polkadot.

Browse our research

UTILIZING EQUATIONS _

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

n + y n = z n x^n + y^n = z^n xn+yn=zn for any integer n > 2 n>2 n>2.

(n ≥ 5) and PSL2(Fp) (p ≥ 5) = (C ≥ 5) and PSL2(FA) (p ≥ 0)

2. 6 ( ) 2 ( ) 6 ( ) ( ) 1 1 1 = − ≥ − = − × ∑
c(G5 ) = 4, c(Gi) = c(Gi−1 + vi) = 4

2. 6 ( ) 2 ( ) 6 ( ) ( ) 1 1 1 = − ≥ − = − × ∑
c(G5 ) = 4, c(Gi) = c(Gi−1 + vi) = 4

2. 6 ( ) 2 ( ) 6 ( ) ( ) 1 1 1 = − ≥ − = − × ∑
c(G5 ) = 4, c(Gi) = c(Gi−1 + vi) = 4

2. 6 ( ) 2 ( ) 6 ( ) ( ) 1 1 1 = − ≥ − = − × ∑
c(G5 ) = 4, c(Gi) = c(Gi−1 + vi) = 4

2. 6 ( ) 2 ( ) 6 ( ) ( ) 1 1 1 = − ≥ − = − × ∑
c(G5 ) = 4, c(Gi) = c(Gi−1 + vi) = 4

Connected to all your favorite networks

HYPERBRIDGE

POLYGON

BNB

base

optimism

eth

COMING SOON

Arbitrium

Arbitrium

eth

COMING SOON

optimism

base

BNB

POLYGON

Permissionless Relayers

Hyperbridge's industry leading architecture allows anyone to permissionlessly relay cross-chain messages and be fully incentivized to do so.

Become a Relayer

RELAYER

Applications

State Proof Queries

Read on-chain data securely verified by unforgeable state proofs

Cross Chain Governance

Manage your applications across multiple chains by broadcasting governance actions through hyperbridge

DeFi

Hyperbridge unlocks new DeFi products like cross-chain liquid staking, dexes, native token bridging, cross-chain lending and more

Products powered by Hyperbridge

Hyperbridge enables builders for the first time build mission critical cross-chain applications secured by cryptographic proofs of consensus

Gateway

Become Unbounded.

Stealth

Classified

Stealth

Classified

Stealth

Classified

Start sending cross-chain messages in seconds

Our SDKs for solidity and wasm smart contract environments make building interoperable applications a breeze.

Get Started
  • 1// SPDX-License-Identifier: UNLICENSED
  • 2pragma solidity 0.8.17;
  • 3
  • 4import {PostRequest} from "ismp/Message.sol";
  • 5import {IDispatcher, DispatchPost} from "ismp/IDispatcher.sol";
  • 6import {BaseIsmpModule} from "ismp/IIsmpModule.sol";
  • 7import {StateMachine} from "ismp/StateMachine.sol";
  • 8
  • 9/// Simple example that shows how to use Hyperbridge for secure cross-chain messaging.
  • 10contract CrossChainHelloWorld is BaseIsmpModule {
  • 11 // address of the local ismp host
  • 12 address private _host;
  • 13
  • 14 // Emitted when we receive a cross-chain message
  • 15 event PostReceived(string message);
  • 16
  • 17 // Emitted when our requests time out
  • 18 event PostRequestTimedOut(string message);
  • 19
  • 20 constructor(address host) {
  • 21 _host = host
  • 22 }
  • 23
  • 24 modifier onlyIsmpHost() {
  • 25 require(_msgSender() == _host, "Only the IsmpHost may call this method");
  • 26 _;
  • 27 }
  • 28
  • 29 // Send a simple cross-chain message to another chain secured by consensus & state proofs™.
  • 30 function send() public {
  • 31 DispatchPost memory request = DispatchPost({
  • 32 // the destination chain
  • 33 dest: StateMachine.arbitrum(),
  • 34 // the destination contract. In this case, the same contract on arbitrum.
  • 35 to: abi.encodePacked(address(this)),
  • 36 // Your message to the destination contract
  • 37 body: bytes.concat("Hello from ", StateMachine.optimism()),
  • 38 // request timeout in seconds
  • 39 timeout: 1 * 60 * 60,
  • 40 // how much is offered to the relayer for message delivery in DAI
  • 41 fee: 1 * 1e18,
  • 42 // who should pay for messaging fees?
  • 43 payer: msg.sender
  • 44 });
  • 45
  • 46 // Your message is now on it's way
  • 47 IDispatcher(_host).dispatch(request);
  • 48 }
  • 49
  • 50// Called by hyperbridge on your contract to notify it of a new cross-chain message.
  • 51function onAccept(PostRequest calldata request) external override onlyIsmpHost {
  • 52 // You can authenticate requests by the sending contract or even source chain.
  • 53 require(
  • 54 request.from.equals(abi.encodePacked(address(this))),
  • 55 "Unauthorized request: Only accept requests from CrossChainHelloWorld"
  • 56 );
  • 57
  • 58 // This is where you'd do something useful with the message.
  • 59 emit PostReceived(string(request.body));
  • 60 }
  • 61
  • 62 // Called by hyperbridge on your contract to notify it of a timed-out request.
  • 63 function onPostRequestTimeout(PostRequest memory request) external override onlyIsmpHost {
  • 64 // Here you can revert any actions you did before dispatching the request.
  • 65 emit PostRequestTimedOut(string(request.body));
  • 66 }
  • 67}
  • 68