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

sha256 support #5446

Open
ArielElp opened this issue Apr 18, 2024 · 0 comments
Open

sha256 support #5446

ArielElp opened this issue Apr 18, 2024 · 0 comments
Labels
large roadmap a feature included in the public roadmap Sierra 1.6.0

Comments

@ArielElp
Copy link
Collaborator

In Starknet v0.13.2 we will add support for sha256. In Cairo, this means that we're adding the following two functions to the corelib:

pub fn compute_sha256_u32_array(
    mut input: Array<u32>, last_input_word: u32, last_input_num_bytes: u32) -> [u32; 8]

pub fn compute_sha256_byte_array(arr: @ByteArray) -> [u32; 8]

Under the hood, these functions will use a new sha256 syscall that will be supported on the next version of Starknet

@ArielElp ArielElp added large roadmap a feature included in the public roadmap Sierra 1.6.0 labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large roadmap a feature included in the public roadmap Sierra 1.6.0
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant