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

[New Hints] cairo_sha256_arbitrary_input_length.json #974

Closed
pefontana opened this issue Apr 13, 2023 · 0 comments · Fixed by #1091
Closed

[New Hints] cairo_sha256_arbitrary_input_length.json #974

pefontana opened this issue Apr 13, 2023 · 0 comments · Fixed by #1091
Assignees
Labels
whitelisted-hint Implementation of hint on whitelist directory

Comments

@pefontana
Copy link
Member

Implement the remaining hints in cairo_sha256_arbitrary_input_length.json

NewHint#34

Assigned:
Status: todo

      "from starkware.cairo.common.cairo_sha256.sha256_utils import (",
      "    compute_message_schedule, sha2_compress_function)",
      "",
      "_sha256_input_chunk_size_felts = int(ids.SHA256_INPUT_CHUNK_SIZE_FELTS)",
      "assert 0 <= _sha256_input_chunk_size_felts < 100",
      "_sha256_state_size_felts = int(ids.SHA256_STATE_SIZE_FELTS)",
      "assert 0 <= _sha256_state_size_felts < 100",
      "w = compute_message_schedule(memory.get_range(",
      "    ids.sha256_start, _sha256_input_chunk_size_felts))",
      "new_state = sha2_compress_function(memory.get_range(ids.state, _sha256_state_size_felts), w)",
      "segments.write_arg(ids.output, new_state)"
@pefontana pefontana added the whitelisted-hint Implementation of hint on whitelist directory label Apr 13, 2023
@Oppen Oppen assigned Oppen and unassigned jpcenteno and Oppen Apr 25, 2023
@MegaRedHand MegaRedHand self-assigned this Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whitelisted-hint Implementation of hint on whitelist directory
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants