Trees with longer node sizes #56
hackaugusto
started this conversation in
General
Replies: 1 comment 4 replies
-
|
Using higher arity would be pretty challenging from the VM/ZKP standpoint. Right now, we can do 2-to-1 hash in a single permutation of the hash function. This means we can describe 2-to-1 hashing relatively easily in the VM (this is done in the hash chiplet). With higher airty trees we'd need to do one of the following:
Both of these complicate things quite a bit, and I'm not sure we'll realize much benefit if we go that route. But yes, outside the VM using higher arity trees would give a nice performance improvement. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating this discussion as a continuation of #55, but focused on the trees and not the hashing function.
Current behavior
The current sparse tree implementation is tiered, each tier has depth$2^{d-1}$ elements at depth $d$ , updating an element requires $d-1$
16and the tree has a maximum depth of64. It is a binary tree, meaning each internal node has2children. This means the tree hashashcalls, and the proof has the same size.Larger internal nodes
If instead of a binary tree, the internal nodes would be bigger and accept
mchildrenThe above numbers are just samples for values that are around the current
32768, if my rationale is correct it is possible to tune it.Beta Was this translation helpful? Give feedback.
All reactions