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

Consider using a larger branching factor in the Merkle trees for more succinct auth paths #11

Open
morganthomas opened this issue Jun 28, 2022 · 1 comment
Assignees

Comments

@morganthomas
Copy link
Contributor

No description provided.

@mmaker
Copy link

mmaker commented Jul 4, 2022

After some more thought:
A Merkle proof with a k-branching factor for N elements leads to $(k-1)\log_k(N)$ proof size, which is minimal for $k=2$. Same goes for invocations of the compression function.

Looking around, another optimization from Kuszmaul (now implemented in Ethereum) has been proposed to improve on this idea, called verkle trees. Informally, each node stores in addition a proof of membership for each of its children. This reduces communication at the price of a more intensive computation, which still seems unfit for your use-case?

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

2 participants