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

Implemented generateKey function that generates a BabyJubJub key pair… #26

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

ElusAegis
Copy link
Contributor

@ElusAegis ElusAegis commented Feb 13, 2023

Implemented BabyJubJub key pair generation.

To confirm:

  • do we need the raw or the compressed public key?

Note:

  • Testing is very limited with no way to confirm if the correct keys are generated

Resolved #1

… for a voter.

The testing is limited due to absence of the correct key pairs.

Changed the constructor to add `babyjub` which allows to get access to a compressed BabyJubJub Public Key [To confirm if needed]
clientlib/src/anonvote.js Outdated Show resolved Hide resolved
clientlib/src/anonvote.js Outdated Show resolved Hide resolved
 Changed tests to check for form of both private and compressed public key.
@arnaucube
Copy link
Contributor

LGTM
The current PR points to the branch feature/clientlib-process which has been merged into main on #25 , maybe you want to rebase the current PR to main and point it to main?

@ElusAegis ElusAegis changed the base branch from feature/clientlib-process to main February 20, 2023 10:54
@arnaucube arnaucube merged commit a65daf9 into main Feb 20, 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.

Metamask BBJJ key derivation
2 participants