Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark different verification methods for range inclusion in header chain #1770

Open
eyusufatik opened this issue Jan 30, 2025 · 0 comments
Milestone

Comments

@eyusufatik
Copy link
Member

Assume there is a merkle tree of Bitcoin block hashes.

I want to verify [h0, h1] is in this header chain.

Which method is more efficient in risc0:

Option 1

  1. Verify MMR proof for h1.
  2. Take headers as input from h1 to h0, check hn.prev_hash == hn-1.hash

Option 2

  1. Verify MMR range inclusion proof.

We need benchmarks for different length of headers and different length of ranges to verify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant