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

Poseidon encryption and decryption #60

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

weijiekoh
Copy link

@weijiekoh weijiekoh commented Jun 19, 2021

This PR implements Poseidon encryption and decryption following this spec:

https://drive.google.com/file/d/1EVrP3DzoGbmzkRmYnyEDcIQcXVU7GlOd/view

It also refactors the Poseidon permutation function to allow the Poseidon hash function to share code with the encryption/decryption functions.

Circuits and tests are also included.

@weijiekoh
Copy link
Author

I've updated the PR for circomlib 1.0 and circom 2.0.

@drewstone
Copy link

Any reason this hasn't been merged @weijiekoh?

@weijiekoh
Copy link
Author

Any reason this hasn't been merged @weijiekoh?

No particular reason that I know of.

@TheFrozenFire
Copy link

TheFrozenFire commented Dec 14, 2022

Does this PR just need to be re-targeted against circomlibjs instead?

Edit: Looks like the downstream PLONK optimizations also need to be rebased in. Downstream also split the Poseidon permutations out slightly different.

@samajammin
Copy link

Hey folks - any chance to get this stuff merged in?

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.

None yet

4 participants