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

Sort props in noir contract artifact when loading #6021

Closed
sklppy88 opened this issue Apr 25, 2024 · 0 comments · Fixed by #9772
Closed

Sort props in noir contract artifact when loading #6021

sklppy88 opened this issue Apr 25, 2024 · 0 comments · Fixed by #9772
Labels
A-security Area: Relates to security. Something is insecure. team-fairies Nico's team

Comments

@sklppy88
Copy link
Contributor

sklppy88 commented Apr 25, 2024

Right now we can import and compute the hash of a contract artifact with unsorted output functions. We need to make sure these are deterministic before hashing it otherwise we end up with an artifact with different hashes but the same input.

Search TODO: #6021
Related to #5875.

@github-project-automation github-project-automation bot moved this to Todo in A3 Apr 25, 2024
@sklppy88 sklppy88 linked a pull request Nov 11, 2024 that will close this issue
@sklppy88 sklppy88 added team-fairies Nico's team A-security Area: Relates to security. Something is insecure. labels Nov 14, 2024
sklppy88 added a commit that referenced this issue Nov 19, 2024
This PR enables us to enforce deterministic contract artifact JSON
stringifying. This is because now when we generate our contract
artifact, we pass it through our zod parser, which enforces ordering in
the object, and enforces correct ordering of props in objects. This is
related to #6021, which we need for deterministic artifact hashes.
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-security Area: Relates to security. Something is insecure. team-fairies Nico's team
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant