-
Notifications
You must be signed in to change notification settings - Fork 6
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: Add Blake2s benchmark program #241
Conversation
ba9d88f
to
d5a7055
Compare
kadena/Cargo.lock
Outdated
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.
An update of the lock file can make sense but a deletion might be a tad too violent 😄
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.
Sorry, that was accidentally. Returned it back
d5a7055
to
b8f79f9
Compare
b8f79f9
to
a3b16f2
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.
I think the code in this PR is good to merge, except we need to merge argumentcomputer/sphinx#176 first and point the Cargo.toml
back at dev
instead of artem/blake2s
a3b16f2
to
e75152a
Compare
e75152a
to
4de9483
Compare
[patch.crates-io] | ||
# Sphinx patch | ||
#tiny-keccak = { git = "https://github.com/sp1-patches/tiny-keccak", branch = "patch-v2.0.2" } | ||
sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-v0.10.8" } |
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 we need to keep this [patch.crates-io]
section, though we can point it at our own fork (zkvm
branch) instead of the sp1-patches
one
[patch.crates-io] | ||
# Sphinx patch | ||
#tiny-keccak = { git = "https://github.com/sp1-patches/tiny-keccak", branch = "patch-v2.0.2" } | ||
sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-v0.10.8" } |
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.
Same here
On hold for a while as it requires new sphinx release |
Closing in favour of #256 |
Adds simple Sphinx program that performs single blake2s hashing, useful for testing and benchmarking the correspondent precompile (argumentcomputer/sphinx#176).
The integration code is located here.
This PR is better to merge after argumentcomputer/sphinx#176 with correspondent update to Cargo.toml.
Nit: In order to compile the programs (run
make
), it is necessary to downgradehybrid-array
dependency in every program inprograms
and also in the kadena workspace (hardcoding 0.2.0-rc.9 version in Cargo.toml didn't help me to workaround this):