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

Removed ring implementation completely #1

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

color-typea
Copy link
Collaborator

ring package is used to provide an optimized implementation for sha256 hashing algorithm. However:

  1. The version of ring used does not support riscv32 architecture, which prevents it from being used in the ZK programs
  2. There is already an optimized implementation of sha256 in sp1-patches/sha256

Hence, a straightforward solution is to remove ring dependency from ethereum_hashes.

A long(er)-term solution would likely be to make ring support riscv32 (especially since general support for riscv32 seems to be already added in briansmith/ring#2041 - just not he particular architecture used by SP1)... but this is likely a lot more involving

@color-typea color-typea merged commit b6462f5 into v0.6.0 Oct 23, 2024
@color-typea color-typea deleted the sp1-compat-aggressive branch October 23, 2024 14:29
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