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

chore: All pedersen compress_native methods now return a grumpkin::fq #2956

Closed

Conversation

kevaundray
Copy link
Contributor

Depends on #2955

Checklist:

Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

  • If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
  • I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
  • Every change is related to the PR description.
  • I have linked this pull request to relevant issues (if any exist).

@kevaundray kevaundray changed the base branch from master to kw/pedersen-ref-smaller-api October 21, 2023 22:00
@@ -424,8 +424,7 @@ template <typename Curve> struct verification_key {

barretenberg::fr compressed_key;
if constexpr (HasPlookup<Builder>) {
compressed_key = from_buffer<barretenberg::fr>(
crypto::pedersen_commitment::lookup::compress_native(preimage_data, hash_index));
compressed_key = crypto::pedersen_commitment::lookup::compress_native(preimage_data, hash_index);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not related to this PR, I think this deserves a small comment -- seeing native computation being done in the stdlib always raises suspicions for me. This same computation is also done in the non-stdlib variant of this method

@kevaundray
Copy link
Contributor Author

This is not blocked by #2592 and should go in after it has been merged

@kevaundray
Copy link
Contributor Author

Closing as this has now been included in the mega PR

@kevaundray kevaundray closed this Oct 26, 2023
@ludamad ludamad deleted the kw/pedersen-make-api-uniform branch August 22, 2024 15:24
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.

1 participant