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(stdlib): add Slice.hashData() and String.hashData() #2039

Merged
merged 5 commits into from
Feb 27, 2025

Conversation

novusnota
Copy link
Member

@novusnota novusnota commented Feb 26, 2025

A follow-up to #1936, where we've fixed the sha256() for Slices and that warranted introduction of gas-efficient functions for hashing only the data of a given Slice/String.

Issue

Closes #1950.
Closes #1963 (small typo).

Checklist

  • I have updated CHANGELOG.md
  • I have documented my contribution in docs/ and made the build locally
  • I have added tests to demonstrate the contribution is correctly implemented: this usually includes both positive and negative tests, showing the happy path(s) and featuring intentionally broken cases
  • I have run all the tests locally and no test failure was reported
  • I have run the linter, formatter and spellchecker
  • I did not do unrelated and/or undiscussed refactorings

@novusnota novusnota added this to the v1.6.0 milestone Feb 26, 2025
@novusnota novusnota requested a review from a team as a code owner February 26, 2025 13:09
@anton-trunov anton-trunov merged commit a54d206 into main Feb 27, 2025
24 of 26 checks passed
@anton-trunov anton-trunov deleted the closes-hashData-function branch February 27, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants