Skip to content

[circuits] Use swap_bytes for SHA-256 & SHA-512 digest BE to LE#902

Closed
jimpo wants to merge 1 commit intomainfrom
09-01-_circuits_use_swap_bytes_for_sha-256_sha-512_digest_be_to_le
Closed

[circuits] Use swap_bytes for SHA-256 & SHA-512 digest BE to LE#902
jimpo wants to merge 1 commit intomainfrom
09-01-_circuits_use_swap_bytes_for_sha-256_sha-512_digest_be_to_le

Conversation

@jimpo
Copy link
Copy Markdown
Collaborator

@jimpo jimpo commented Sep 1, 2025

No description provided.

Copy link
Copy Markdown
Collaborator Author

jimpo commented Sep 1, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment thread crates/frontend/src/circuits/sha256/mod.rs
Copy link
Copy Markdown
Contributor

this looks obviously extremely good; my only quick question: i wonder why only the zklogin snapshot changed, and not the sha256 snapshot?

Copy link
Copy Markdown
Collaborator Author

jimpo commented Sep 1, 2025

Those examples provide the inputs and outputs already in big-endian order (by calling convention). The zklogin example needs to swap endianness for its other checks.

Copy link
Copy Markdown
Contributor

cool, approved.

people in slack have talked about similar problems: see e.g.. @onesk, i wonder if you can use these too....

@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Sep 1, 2025

Merge activity

  • Sep 1, 8:49 PM UTC: jimpo added this pull request to the Graphite merge queue.
  • Sep 1, 8:53 PM UTC: The Graphite merge queue removed this pull request due to downstack failures on PR #901.
  • Sep 1, 8:53 PM UTC: The Graphite merge queue removed this pull request due to downstack failures on PR #901.
  • Sep 1, 9:57 PM UTC: jimpo added this pull request to the Graphite merge queue.
  • Sep 1, 9:57 PM UTC: CI is running for this pull request on a draft pull request (#905) due to your merge queue CI optimization settings.
  • Sep 1, 10:04 PM UTC: Merged by the Graphite merge queue via draft PR: #905.

@graphite-app graphite-app bot force-pushed the 09-01-_circuits_swap_bytes_32_for_reversing_bytes_in_32-bit_words branch 2 times, most recently from 09bf65a to c5c4e98 Compare September 1, 2025 20:54
@graphite-app graphite-app bot changed the base branch from 09-01-_circuits_swap_bytes_32_for_reversing_bytes_in_32-bit_words to graphite-base/902 September 1, 2025 21:17
@jimpo jimpo force-pushed the 09-01-_circuits_use_swap_bytes_for_sha-256_sha-512_digest_be_to_le branch from a01d51a to ca7298a Compare September 1, 2025 21:45
@jimpo jimpo force-pushed the graphite-base/902 branch from c5c4e98 to 779c754 Compare September 1, 2025 21:45
@jimpo jimpo changed the base branch from graphite-base/902 to main September 1, 2025 21:45
@graphite-app graphite-app bot closed this Sep 1, 2025
@graphite-app graphite-app bot deleted the 09-01-_circuits_use_swap_bytes_for_sha-256_sha-512_digest_be_to_le branch September 1, 2025 22:04
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.

2 participants