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

Reduce proof size using batched Merkle proofs #10

Closed
andrewmilson opened this issue Nov 14, 2022 · 1 comment
Closed

Reduce proof size using batched Merkle proofs #10

andrewmilson opened this issue Nov 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@andrewmilson
Copy link
Owner

Batched Merkle proofs allow aggregating multiple Merkle paths into a single proof. The aggregation allows for removing all duplicate internal nodes which significantly decreases the STARK proof size (we're talking 20-40%). Would be great if arkworks or another Rust library could do this (winter-crypto for instance). Implementation in Winterfell: https://github.com/novifinancial/winterfell/blob/main/crypto/src/merkle/proofs.rs#L31

@andrewmilson andrewmilson added the enhancement New feature or request label Nov 14, 2022
@andrewmilson
Copy link
Owner Author

andrewmilson commented Aug 20, 2023

Marking closed. The default merkle tree implementation generates and verifies batched merkle proofs now. This was inspired by the way StarkWare's Ethereum verifier works.

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

No branches or pull requests

1 participant