This repository was archived by the owner on Apr 9, 2024. It is now read-only.
chore: deprecate hash_constraint_system and checksum_constraint_system#214
Merged
kevaundray merged 1 commit intomasterfrom Apr 20, 2023
Merged
chore: deprecate hash_constraint_system and checksum_constraint_system#214kevaundray merged 1 commit intomasterfrom
hash_constraint_system and checksum_constraint_system#214kevaundray merged 1 commit intomasterfrom
Conversation
chore: deprecate `checksum_constraint_system`
kevaundray
approved these changes
Apr 20, 2023
Contributor
kevaundray
left a comment
There was a problem hiding this comment.
The idea was so that multiple frontends would not need to maybe wrongly implement hash on their circuit, ie by using md5 which may not be secure for their usecase.
I can see the argument for removing them as it's somewhat out of scope for acvm
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore: deprecate
Related issue(s)
(If it does not already exist, first create a GitHub issue that describes the problem this Pull Request (PR) solves before creating the PR and link it here.)
Resolves (link to issue)
Description
Summary of changes
It's not clear to me what benefit having these functions in ACVM gives as we currently don't use either of them and by having these two functions we're being opinionated about which hash functions to use whereas users may want to use others.
If we want to add some knowledge about hashing ACIR then I'd say that we should just implement
Hashon theCircuitstruct and leave it at that.Dependency additions / changes
(If applicable.)
Test additions / changes
(If applicable.)
Checklist
cargo fmtwith default settings.Additional context
(If applicable.)