Skip to content

refactor: make sha2 exterior interface unmodified in patch#10

Open
gdmlcjs wants to merge 2 commits intoopenvm/sha2-v0.10.8from
chore/sha2-v0.10.8-patch
Open

refactor: make sha2 exterior interface unmodified in patch#10
gdmlcjs wants to merge 2 commits intoopenvm/sha2-v0.10.8from
chore/sha2-v0.10.8-patch

Conversation

@gdmlcjs
Copy link
Copy Markdown
Collaborator

@gdmlcjs gdmlcjs commented Apr 18, 2026

Refactors the sha2 patch to use the lower level openvm-sha2-guest crate instead of the openvm-sha2 crate.
The internal implementations are swapped to use the openvm functions for the zkvm target. The zkvm_sha256_impl and zkvm_sha512_impl functions are used for all of the sha2 hashes.
The hashing structs and traits are now untouched so that the interface of the patched version is equivalent to the upstream version.

…e openvm guest library for zkvm target (#1)"

Revert the wrapper-type zkvm patch (and its openvm-v2 bump) to restore the
upstream sha2 v0.10.8 tree in preparation for the backend-level patch.

This reverts commits 07c0c64d and 8e16631.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gdmlcjs gdmlcjs requested a review from jonathanpwang April 18, 2026 02:16
@gdmlcjs gdmlcjs self-assigned this Apr 18, 2026
@gdmlcjs gdmlcjs force-pushed the chore/sha2-v0.10.8-patch branch from 3024a68 to 7591ce9 Compare April 18, 2026 02:30
@gdmlcjs gdmlcjs marked this pull request as ready for review April 18, 2026 02:48
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 this pull request may close these issues.

1 participant