-
Notifications
You must be signed in to change notification settings - Fork 160
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
BLAKE3 Hashing over 32 -bytes Input #563
Conversation
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
…hashing Now cost of blake3 hashing over 32 -bytes input: 4820 -cycles Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Does that mean it would also be faster to use the 64-bytes implementation for a hashchain instead of the 32-bytes? |
64 -bytes input case is cheaper in terms of VM cycles, which can prove to be faster in execution time, if hashchain is fairly long enough. Though it calls for much larger input to hashchain routine. |
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.
Looks good! Thank you! I left a few small comments inline.
Following suggestion 0xPolygonMiden#563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
See 0xPolygonMiden#563 (comment) Also see 0xPolygonMiden#563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
At commit ae4258a
|
Thanks for the review. Can you please take a look once again ? |
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
2d5bf5c
to
ae4258a
Compare
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Resolved merge conflict 34e9e3c |
Following suggestions from 0xPolygonMiden#563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
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.
All looks good! Thank you!
Following suggestion #563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
See #563 (comment) Also see #563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Following suggestions from #563 (comment) Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Along with 64 -bytes input, we can also hash 32 -bytes message, using BLAKE3.
Cost of hashing 32 -bytes: 4820 -cycles.