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

Was this helpful?

  1. Protocol
  2. Light Client

Verify

Function to verify proof

This function uses Merkle Patricia Trie (MPT) to verify the proof.

function verify(
    bytes memory message
) public returns (bool, bytes[] memory);
Field
Description

message

Data encoded with proof information (You can get an array of Proof when you decode)

What the verify function does:

  • Verify account proof using MPT to obtain the target storage hash

  • Verify the storage proof using MPT to obtain the value of the target storage slot

This validation is used in the initial phase and other validation methods may be developed as modules in the future, such as the use of zkp.

PreviousRequest QueryNextEstimate fee

Last updated 1 year ago

Was this helpful?

🛠️