Prerequisite
1. nodejs
, if you don't have it, you can run the following command to install it
brew install node
2. npm package@portkey/ceremony
, please install it using the following command
npm install -g @portkey/ceremony
3. A github account
Steps
1. Create a working directory
mkdir -p zklogin-testnet-trusted-setup
cd zklogin-testnet-trusted-setup
2. Login with Github Account
Execute the following command to start logging in with Github
npx @portkey/ceremony auth

After triggering the login process, go to Chrome browser. Select the Github account you want to use and enter the code you get from the terminal (which is already copied to your clipboard, so you just need ctrl + v
).

Then click the Authorize
button

After successfully logging in with Github, you will see a screen like below. And now you can start contributing to the trusted setup ceremony.

3. Run npx @portkey/ceremony contribute
in your terminal
Select the ceremony you want to contribute to

Select the entropy generation mode

If you are the next in the queue, the contribution will start immediately. Grab a cup of coffee and come back in about 20 ~ 30 mins and your contribution will be done.

Video Guide
Please refer to the video guide here.
Notes:
- You may skip the period from 12 minutes to 36 minutes where I was waiting for the verification of the contribution to finish.
- There are two circuits for which we have to run the contribution.
- The verification for the first circuit may take up to 20 minutes (it’s actually doing verification but not being unresponsive, please don’t hit
ctrl+c
). - Please do not turn off your machine while the contribution is ongoing.
- Make sure your network connection is good.
Join us in this pivotal step towards building a more secure and private future with Portkey zkLogin. We look forward to your participation!
If you encounter any issues or have questions, please reach out to us on our dedicated Discord channel or Telegram group:
- Discord: https://discord.gg/hhWTmM5fz5
- Telegram: https://t.me/PortkeyTrustedSetupCeremony