Skip to content
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
deprecate-hash-and-checksum
Apr 20, 2023
Merged

chore: deprecate hash_constraint_system and checksum_constraint_system#214
kevaundray merged 1 commit intomasterfrom
deprecate-hash-and-checksum

Conversation

@TomAFrench
Copy link
Copy Markdown
Member

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 Hash on the Circuit struct and leave it at that.

Dependency additions / changes

(If applicable.)

Test additions / changes

(If applicable.)

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Additional context

(If applicable.)

chore: deprecate `checksum_constraint_system`
Copy link
Copy Markdown
Contributor

@kevaundray kevaundray left a comment

Choose a reason for hiding this comment

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

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

@kevaundray kevaundray added this pull request to the merge queue Apr 20, 2023
Merged via the queue into master with commit ff44337 Apr 20, 2023
@TomAFrench TomAFrench deleted the deprecate-hash-and-checksum branch April 20, 2023 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants