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

add custom hashing #553

Merged
merged 10 commits into from
Jan 4, 2024
Merged

add custom hashing #553

merged 10 commits into from
Jan 4, 2024

Conversation

jakehemmerle
Copy link
Contributor

@jakehemmerle jakehemmerle commented Dec 8, 2023

This adds SHA1-3 (256-bit) and Keccak hashes on the core side, and allows for users to implement their own custom hash function (eg Pedersen, BLAKE2) in a Program if they need to.

While this PR includes the appropriate integration test modification, it does not test the hash computing function directly. That will be included in a follow up PR shortly, as described in #572 .

I still need to append the spec addition to the CHANGELOG file, but other than that it should be good to go.

SDK related changes @frankiebee @jawndiego :

There is now an additional hash field in the /sign_tx JSON body that indicates which hashing algorithm to use for signing. The options are: 'sha1', 'sha2', 'sha3', 'keccak', and 'custom' ('custom' indicates a custom hash function is implemented at custom_hash() on the Program.)

Copy link

vercel bot commented Dec 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 1:34am

@jakehemmerle jakehemmerle merged commit afadd5d into master Jan 4, 2024
10 checks passed
@jakehemmerle jakehemmerle deleted the add-custom-hashing branch January 4, 2024 02:36
@JesseAbram JesseAbram mentioned this pull request Jan 5, 2024
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.

2 participants