-
Notifications
You must be signed in to change notification settings - Fork 119
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
Feat/roman/tree builder #525
Conversation
df81a84
to
a47c25e
Compare
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.
Great work!
I wrote some comments/questions and have a few more:
(1) I did not see the merkle trees for poseidon/poseidon2 in rust. Did I just miss it?
(2) I am not sure about where the tree builders are in terms of library structre. I mean is poseidon/poseidon2 in the field crate and keccak in hashes?
(3) (I may have asked this already but) Please clarify the FFI design and specifically how do you see it for V3? I think that basically the ffi functions (under api) are what is exposed to ffi and also what we expect backend to implement. On top of that we will wrap and expose nicer api in all langauges. Does that make sense to you and this design?
|
If we can implement a generic tree builder (that is backend agnostic) then we can have the backend APIs implement only the hashes and then wrap it with the generic tree builder that calls the hashing APIs and builds the tree (and expose that to ffi in addition to hashes). I am not sure it's possible but maybe it is. |
Co-authored-by: Jeremy Felder <jeremy.felder1@gmail.com>
This PR updates poseidon golang bindings
Updates:
Hashing
Tree builder
Poseidon1
Poseidon2
Keccak
To do:
Future work: