-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Labels
whitelisted-hintImplementation of hint on whitelist directoryImplementation of hint on whitelist directory
Description
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)"
Metadata
Metadata
Assignees
Labels
whitelisted-hintImplementation of hint on whitelist directoryImplementation of hint on whitelist directory
Type
Projects
Status
Done