Skip to content
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

Update KRYPTO hooks to use Bytes #3683

Closed
Scott-Guest opened this issue Oct 23, 2023 · 1 comment · Fixed by #3684
Closed

Update KRYPTO hooks to use Bytes #3683

Scott-Guest opened this issue Oct 23, 2023 · 1 comment · Fixed by #3684
Assignees

Comments

@Scott-Guest
Copy link
Contributor

All of the KRYPTO hooks now use Bytes instead of String to represent raw byte strings (runtimeverification/blockchain-k-plugin#163). We need to update everything here accordingly.

@Baltoli
Copy link
Contributor

Baltoli commented Nov 9, 2023

Similarly runtimeverification/k#3801 (comment)

rv-jenkins pushed a commit that referenced this issue Jan 9, 2024
Fixes #3683 

The `KRYPTO` hooks now use `Bytes` for raw strings instead of `String`,
so this PR updates the evaluators here accordingly.

Additionally, I updated all tests that reference `KRYPTO` lest they give
errors about hooked symbols having incorrect sorts. Specifically,
- I regenerated the `regression-evm` tests by running
`generate-regression-tests.sh` with my branch of KEVM that uses the
updated hooks.
- For all the tests that I couldn't regenerate, I manually patched them
by changing the existing `KRYPTO` symbols into functions which wrap the
new hooks with appropriate calls to `String2Bytes` and `Bytes2String`.

Corresponding PR testing this on the booster:
runtimeverification/hs-backend-booster#370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants