-
Notifications
You must be signed in to change notification settings - Fork 41
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] Implement Hash trait for OutPoint #110
Comments
@m-kus can you please assign this issue to me? |
How is the progress @ScottyDavies ? Do you need help with this task? |
It’s going fine, I would be done soon |
@ScottyDavies how is it going? Do you need any help? Please let us know when do you expect to complete this issue. |
Can I work on this issue? My PR #142 is almost done. |
Hey @bloomingpeach! |
Hey @od-hunter! |
@bloomingpeach ideally you'd need to wait for #144 to be merged to use it for serialization |
Hi, @m-kus, could you help me a little bit on this issue? what hash function should I use and should I introduce a new struct for the purpose of implement the |
@bloomingpeach You can find more info here: https://book.cairo-lang.org/ch11-04-hash.html#working-with-hashes Here is an example of how Note that you can also derive hash like |
We will need to calculate hashes of outpoints to update Utreexo accumulator and local cache.
Hash trait: https://github.com/starkware-libs/cairo/blob/93221753088d58f54f9a7f35a0bb338cf0bfb952/corelib/src/hash.cairo#L13
Hints:
hash::Hash
toDigest
to avoid confusionSerde::serialize
to convertOutpoint
into array of feltsSuggested deadline: 9 Sep
The text was updated successfully, but these errors were encountered: