Futaba
TwitterBlog
  • 🌱Introduction
    • Introduction
    • Concept
    • Architecture
  • 🛠️Protocol
    • Gateway
      • Send
      • Receive
      • Estimate fee
      • Cache
    • Light Client
      • Request Query
      • Verify
      • Estimate fee
    • Relayer
    • Konoha
      • Chainlink Oracle
      • Herodotus
      • Lagrange
  • 💡Guide
    • Futaba Testnet
      • Balance query
      • Custom query
      • Access cache
      • Cross-chain voting
    • Quick Start
    • Customize Light Client
    • Example Apps
  • 📗References
    • FAQ
    • Contract addresses
    • Glossary
  • 🔗Links
    • Twitter
    • Blog
Powered by GitBook
On this page
  • High-level Architecture
  • Detailed Architecture

Was this helpful?

  1. Introduction

Architecture

Query lifecycle from data request to retrieval

PreviousConceptNextGateway

Last updated 1 year ago

Was this helpful?

High-level Architecture

In Futaba, and are the off-chain components and they receive the Src (Source) chain requests. Relayer then retrieves the storage proof from each chain, and retrieves the block headers and returns them to the Src chain for validation.

Detailed Architecture

Phase 1: request query

Phase 2: off-chain agents work

Phase 3: verify and return data to the user

  1. The store received data as a cache

  2. If verification is successful, data is returned to User Contract

Call the endpoint to request a query from the user contract

emits events related to query requests to

An event about the query of the block header is emitted from to

receives the event and gets the block header (state root) for a specific block height in the destination chain

Return and save state root to

work

receives the event and obtains the account proof and storage proof of the target data

Return the proof to the in the src chain (at this time, the state root must have been saved first)

to verify account proof and storage proof

🌱
Gateway Contract
Gateway Contract
Relayer
Light Client Contract
Konoha (Oracle)
Konoha
Konoha
Light Client Contract
Relayer
Relayer
Gateway Contract
Light Client Contract
Relayer
Konoha (Oracle)
Konoha
High-level Architecture
Detailed architecture