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

Hash RSA public key in circuit #100

Merged
merged 23 commits into from
Sep 1, 2023
Merged

Hash RSA public key in circuit #100

merged 23 commits into from
Sep 1, 2023

Conversation

saleel
Copy link
Member

@saleel saleel commented Aug 22, 2023

No description provided.

@socket-security
Copy link

socket-security bot commented Aug 26, 2023

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
big-integer 1.6.51 None +0 164 kB peterolson
react-router-dom 6.12.1...6.15.0 None +4/-4 6.51 MB mjackson
wagmi 0.6.8...1.3.10 shell +176/-50 58.7 MB awkweb
@rainbow-me/rainbowkit 0.8.1...1.0.9 shell +178/-110 59.8 MB danielsinclair

🚮 Removed packages: @openzeppelin/[email protected]

@saleel saleel changed the title draft: pubkey compression Hash RSA public key in circuit Aug 29, 2023
@saleel saleel force-pushed the rsa-pk-hash branch 3 times, most recently from 69d85ca to 29c8c61 Compare August 30, 2023 17:46
@saleel saleel marked this pull request as ready for review August 30, 2023 17:46
@saleel saleel force-pushed the rsa-pk-hash branch 2 times, most recently from 23b602c to 13c7ce4 Compare August 30, 2023 17:55
@@ -25,7 +25,7 @@ yarn
echo "****GENERATING ZKEY 0****"
start=$(date +%s)
set -x
NODE_OPTIONS='--max-old-space-size=56000' node ../../../node_modules/.bin/snarkjs groth16 setup "$R1CS_FILE" "$PHASE1" "$PARTIAL_ZKEYS"/"$CIRCUIT_NAME"_0.zkey -e=$ENTROPY1
NODE_OPTIONS='--max-old-space-size=56000' node ../node_modules/.bin/snarkjs groth16 setup "$R1CS_FILE" "$PHASE1" "$PARTIAL_ZKEYS"/"$CIRCUIT_NAME"_0.zkey -e=$ENTROPY1
Copy link
Member

@Divide-By-0 Divide-By-0 Sep 1, 2023

Choose a reason for hiding this comment

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

can we define yarn snarkjs as NODE_OPTIONS='--max-old-space-size=56000' node ../node_modules/.bin/snarkjs? would make all this code a bit cleaner lol

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried this, but then the circuit.env need to be in the parent dir instead of scripts - so not sure 🤔

@Divide-By-0 Divide-By-0 merged commit 9f68bc8 into main Sep 1, 2023
2 checks passed
@saleel saleel deleted the rsa-pk-hash branch April 19, 2024 04:28
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