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

Adding Jubjub signature verification PCD #154

Merged
merged 14 commits into from
Apr 25, 2023
Merged

Conversation

dmpierre
Copy link
Contributor

This PR consists into two things:

  1. Adding Buffer as a polyfill within the passport-client. Quite a few libs leverage Buffer. Without a polyfill, PCD builders may quickly find themselves limited. In my case, I was not able to carry out signature verification.

  2. Adding a jubjub-signature-pcd package. This package is a PCD that proves that the user holds a valid jubjub signature. The user also proves that he knows the pre-image of the signed message/hash. For now, the package is only loaded in localstorage.ts. I was not too sure whether it made sense to add it to dispatch.ts, since this PCD will be mainly serving for demo purposes at zuzalu.

apps/passport-client/build.ts Show resolved Hide resolved
apps/passport-client/package.json Outdated Show resolved Hide resolved
apps/passport-client/src/localstorage.ts Outdated Show resolved Hide resolved
apps/passport-client/package.json Outdated Show resolved Hide resolved
apps/passport-server/package.json Outdated Show resolved Hide resolved
apps/passport-client/package.json Outdated Show resolved Hide resolved
apps/passport-client/src/localstorage.ts Outdated Show resolved Hide resolved
@dmpierre
Copy link
Contributor Author

Updated to lock PCD package versions. I think the JubJub Signature PCD is imported where it needs to.
Waiting for feedback!

Copy link
Contributor

@ichub ichub left a comment

Choose a reason for hiding this comment

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

🚢

@ichub ichub merged commit 708aa7c into proofcarryingdata:main Apr 25, 2023
@ichub ichub mentioned this pull request Apr 27, 2023
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.

2 participants