Skip to content

SHA256 finalize hint string mismatch #1979

Open
@petscheit

Description

@petscheit

Describe the bug
Currently there is a mismatch between the sha256 finalize hint from cairo-lang and the string representation in cairo-vm.

In cairo-lang the hint is this: https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/cairo/common/cairo_sha256/sha256_utils.cairo#L476-L492

While in cairo-vm, the hint is stored in the following string: https://github.com/lambdaclass/cairo-vm/blob/main/vm/src/hint_processor/builtin_hint_processor/hint_code.rs#L718-L731

Note the line breaks in the import section are different leading to the hint selection to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions