You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a function commit_one that computes the hash of a single value at given index, the rest of the values being null.
The signature of the function should be (value: jbyteArray, index: jint) -> hash: jbyteArray
Rationale: when dealing with extensions, we have to commit to a single value. Currently, this would be done by left padding with zeroes up to the index of the value and committing all those values. Similarly to the rust-verkle library, we can implement a much more efficient way of committing to a single value by using a single scalar_multiply operation.
The text was updated successfully, but these errors were encountered:
@thomas-quadratic When do we commit to only one value? in the branch nodes? In the "extension and suffix nodes" the way I see it we always commit to 4 values (1,stem,C1,C2,0,0,0,0...) and in the C1 and C2 we commit to 128 values each.
Implement a function commit_one that computes the hash of a single value at given index, the rest of the values being null.
The signature of the function should be (value: jbyteArray, index: jint) -> hash: jbyteArray
Rationale: when dealing with extensions, we have to commit to a single value. Currently, this would be done by left padding with zeroes up to the index of the value and committing all those values. Similarly to the rust-verkle library, we can implement a much more efficient way of committing to a single value by using a single scalar_multiply operation.
The text was updated successfully, but these errors were encountered: