Skip to content

Poseidon encryption and decryption#60

Open
weijiekoh wants to merge 5 commits intoiden3:masterfrom
weijiekoh:feat/poseidon-encryption
Open

Poseidon encryption and decryption#60
weijiekoh wants to merge 5 commits intoiden3:masterfrom
weijiekoh:feat/poseidon-encryption

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?

elkanatovey added a commit to elkanatovey/circomlib that referenced this pull request May 12, 2025
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.

4 participants