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

feat: use cairo1Helper sha256 #1409

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

obatirou
Copy link
Collaborator

@obatirou obatirou commented Sep 11, 2024

Time spent on this PR:

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #1335

What is the new behavior?

Use Cairo1Helper for sha256

See contract here https://github.com/kkrt-labs/kakarot-ssj/blob/c8ba9f18f37e45e479ffc141f57a5cb5a78b74d6/crates/contracts/src/cairo1_helpers.cairo#L67


This change is Reviewable

@obatirou obatirou marked this pull request as ready for review September 11, 2024 10:18
Copy link
Collaborator

@enitrat enitrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but I would just make another function for bytes to bytes4, instead of repurposing the existing one

src/utils/utils.cairo Show resolved Hide resolved
@enitrat enitrat merged commit 92e5ee5 into kkrt-labs:main Sep 12, 2024
6 checks passed
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.

feat: use sha256 syscall from Cairo1Helpers class
2 participants