-
Notifications
You must be signed in to change notification settings - Fork 104
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
example and documentation for Merkle-tree API #628
Conversation
0ef12b5
to
d5daa4c
Compare
d5daa4c
to
cc35bc3
Compare
ff8bd49
to
1213f10
Compare
|
||
:::note | ||
Any combination of hashes is valid including **Poseidon** that computes on field elements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any limitations on Poseidon in the tree (Odd bit width for example messing with the layer width)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the field size must divide the output size of previous layer. But this is true for all other hashes too.
About converting random data to field elements it's the responsibility of the hasher function, not the tree.
9dd749d
to
d3f5cf8
Compare
|
||
## What is a Merkle Tree? | ||
|
||
A **Merkle tree** is a cryptographic data structure that allows for **efficient verification of data integrity**. It consists of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you realy need to copy paste this section per API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will link the rust to general part for the intro. The rest I will have some duplication but otherwise rust has not text at all. Makes sense?
comment |
No description provided.