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

Anonymous Components for Poseidon hashers #1169

Conversation

0xjei
Copy link
Member

@0xjei 0xjei commented Feb 8, 2024

Description

This PR makes it possible to remove Poseidon Hasher related templates (e.g., Hasher3) by instantiating the PoseidonHash() template directly in the code. This reduces the number of lines of code and makes it easier to read.

Related issue(s)

See privacy-scaling-explorations/zk-kit#131

Confirmation

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for maci-typedoc ready!

Name Link
🔨 Latest commit 86674b3
🔍 Latest deploy log https://app.netlify.com/sites/maci-typedoc/deploys/65c4e7c82a095d0008005816
😎 Deploy Preview https://deploy-preview-1169--maci-typedoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ctrlc03 ctrlc03 changed the base branch from dev to refactor/circom-circuits February 8, 2024 14:42
circuits/circom/messageHasher.circom Show resolved Hide resolved
circuits/circom/tallyVotes.circom Outdated Show resolved Hide resolved
circuits/circom/trees/incrementalMerkleTree.circom Outdated Show resolved Hide resolved
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@0xjei thanks, just left some code style comments.

circuits/circom/messageHasher.circom Outdated Show resolved Hide resolved
circuits/circom/trees/incrementalMerkleTree.circom Outdated Show resolved Hide resolved
@0xjei 0xjei requested review from 0xmad and kittybest February 8, 2024 21:56
Copy link
Collaborator

@ctrlc03 ctrlc03 left a comment

Choose a reason for hiding this comment

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

thanks for this!! much neater

@ctrlc03 ctrlc03 merged commit e1d6ec3 into privacy-scaling-explorations:refactor/circom-circuits Feb 10, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants