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

0000000032.csrs #139

Closed
amjawa opened this issue Jun 8, 2024 · 31 comments
Closed

0000000032.csrs #139

amjawa opened this issue Jun 8, 2024 · 31 comments
Assignees
Labels
contribution New Contribution

Comments

@amjawa
Copy link

amjawa commented Jun 8, 2024

Contributor: MNSIS
SSH Public key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHJekUjfecpoxRRJ2K1/urxpzjk0M6wka9fa8ppuBI1p
Attestation: [any form of attestation for contribution (e.g., signature) - Optional]

@amjawa amjawa added the contribution New Contribution label Jun 8, 2024
Copy link

github-actions bot commented Jun 8, 2024

Thank you for your interest in contributing to the Zircuit Ceremony!

Begin the following process only after receiving notification that it is your turn to contribute through a message in this issue. Please follow instructions only from the issue's assignee.

Once notified, you have 15 minutes to confirm by posting a message in this issue that you have started your contribution. If you do not confirm within 15 minutes, your contribution slot might be suspended.

Prerequisites

Get sources

git clone https://github.com/zircuit-labs/ceremony.git
cd ceremony

Generate an SSH Key - Optional

Contributors are required to provide an SSH public key to upload their contributions to our servers.

If you don't have one, you can generate a new SSH public key as:

ssh-keygen -t ed25519 -b 256 -f ./id_ceremony -N "" -C ""

Next, edit the issue description and report as SSH Public key the output of the command:

cat ./id_ceremony.pub

Please note that if you use Docker to compute your contribution, the key will be automatically added to the Docker image during the build process and available in the working directory. If you already have an SSH key and prefer not to generate a new one, you will need to import your existing key manually.

Build

To contribute, you will need a total of at least 33 GiB of combined RAM and SWAP memory available. If you are using Docker, ensure that sufficient resources are allocated when running images.

From sources

cargo install --locked --path . --root .
export PATH="./bin:${PATH}"
chmod +x download.sh

With Docker

docker build . -t "ceremony"

Contribute

Before proceeding, please post a comment on this issue to notify us that you have started your contribution.

Only in the case you are using Docker, you need to first run the built image:

docker run -it "ceremony"

Download the latest contribution:

./download.sh

and verify that the hash of the downloaded contribution matches the one reported here.

Then, compute your contribution:

export RUST_LOG=info
contribute -c ./contributions

The last command will create a contribution using the default settings. For additional options and configurations, please refer to instructions.

If you don't plan to actively use your computer during the contribution phase, please read this section to avoid performance degradation due to power-saving settings.

Upload Contribution

After completing your contribution, upload it to our server using your SSH key:

sftp -i ./id_ceremony [email protected]
put ./contributions/[YOUR_CONTRIBUTION_ID].csrs
quit

If your upload is interrupted, you can use reput in place of put to resume it.

Once the upload is complete, post a comment on this issue to notify us that your contribution has been uploaded.

@zvorcuit zvorcuit self-assigned this Jun 15, 2024
@zvorcuit
Copy link
Collaborator

Dear @amjawa, we are contacting the next 5 contributors in the queue.

If you are ready to contribute (having carefully read the instructions and meeting the system requirements), please let us know.

The next contributor will be the first one to reply to this message in their respective issue.
In all cases, please wait for confirmation from us before starting your contribution process.

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

I'm ready to go

@zvorcuit
Copy link
Collaborator

Dear @amjawa, another user was quicker than you this time. I will ping you again when slot opens again.

@zvorcuit
Copy link
Collaborator

Dear @amjawa, we are contacting the next 5 contributors in the queue.

If you are ready to contribute (having carefully read the instructions and meeting the system requirements), please let us know.

The next contributor will be the first one to reply to this message in their respective issue.
In all cases, please wait for confirmation from us before starting your contribution process.

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

ready

@zvorcuit
Copy link
Collaborator

@amjawa, you can now proceed with your contribution!

Please notify us with a comment on this issue after each of the following steps is completed:

  • Your contribution process begins.
  • Your upload is finished.

Please note that if you do not acknowledge the start of the contribution process within 15 minutes, your contribution slot will be suspended.

@zvorcuit zvorcuit changed the title New Contribution New Contribution - Pending Jun 16, 2024
@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

process begins

@zvorcuit zvorcuit changed the title New Contribution - Pending New Contribution - Active Jun 16, 2024
@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

process begins again

@zvorcuit
Copy link
Collaborator

@amjawa why again?

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

I encountered an issue during my first attempt, and I want to try again. However, the process keeps getting killed:

 export RUST_LOG=info
contribute -c ./contributions
[2024-06-16T12:03:57Z INFO  ceremony::contribution] Reading contribution from "./contributions/0000000031.csrs"
Killed

@zvorcuit
Copy link
Collaborator

@amjawa please make sure you are allowing docker to use enough resources, and that your machine has enough resources as described in system requirements

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

Alright, going smoothly. I’ll upload it once I finish

export RUST_LOG=info
contribute -c ./contributions
[2024-06-16T12:22:17Z INFO  ceremony::contribution] Reading contribution from "./contributions/0000000031.csrs"
[2024-06-16T12:23:01Z INFO  ceremony::check] Checking contribution with id 31
[2024-06-16T12:23:01Z INFO  ceremony::check] Contribution's k and n are correct
[2024-06-16T12:23:01Z INFO  ceremony::check] > SRS Check #1 Succeded: srs uses hardcoded group generators
[2024-06-16T12:23:01Z INFO  ceremony::check] > SRS Check #2 Succeded: g2 and s_g2 have order r
[2024-06-16T12:23:01Z INFO  ceremony::check] > SRS Check #3 Succeded: the g vector has expected size[2024-06-16T12:28:23Z INFO  ceremony::check] > SRS Check #4 Succeded: srs is well-formed
[2024-06-16T12:28:23Z INFO  ceremony::check] > SRS Check #5 Succeded: srs is non-degenerative
[2024-06-16T12:28:23Z INFO  ceremony::check] SRS is valid
[2024-06-16T12:28:23Z INFO  ceremony::check] Contribution with id 31 is valid
[2024-06-16T12:28:23Z INFO  ceremony::secrets] Generating secrets .. 
[2024-06-16T12:28:23Z INFO  ceremony::secrets] Generating and hashing 1073741824 random bytes
[2024-06-16T12:28:27Z INFO  ceremony::secrets] Hashing hasher's state 1048576 times
[2024-06-16T12:28:27Z INFO  ceremony::secrets] Extracting secrets
[2024-06-16T12:28:27Z INFO  ceremony::contribute] Rescaling powers of tau..

@zvorcuit
Copy link
Collaborator

Dear @amjawa what is the current status?

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

I think I'm close to finishing

@zvorcuit
Copy link
Collaborator

Dear @amjawa, any updates?

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

I am still waiting to complete it. I had finished the contribution once, but I lost the ID for it. Now I am waiting to complete it again so I can send the ID
image

@zvorcuit
Copy link
Collaborator

@amjawa what do you mean by lost id?

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

What I understood is that I need to obtain an ID at the end, which I have to include in this command:

sftp -i ./id_ceremony [email protected]
put ./contributions/[YOUR_CONTRIBUTION_ID].csrs
quit

Or is there a misunderstanding on my part?

@zvorcuit
Copy link
Collaborator

@amjawa once the command finishes, it produces the file, id is the filename, which will in your case be 0000000032.csrs.

@zvorcuit
Copy link
Collaborator

@amjawa Your allocated time slot will soon come to an end, please let me know if you are able to upload contribution otherwise we will proceed with the next contributor. Arrived at this point, it will be a pity to lose the work you've done so far, so please read carefully instructions and let us know if you started uploading your contribution. Thanks for your understanding.

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

I have already completed the process, but I am encountering the following error and I don't know the reason:

/usr/ceremony# sftp -i ./id_ceremony [email protected]
Welcome to Zircuit Mainnet Ceremony
[email protected]: Permission denied (publickey).
Connection closed.  
Connection closed
root@6c0d81b15667:/usr/ceremony# put ./contributions/0000000032.csrs
bash: put: command not found
root@6c0d81b15667:/usr/ceremony# quit

anyway, thank you

@zvorcuit
Copy link
Collaborator

zvorcuit commented Jun 16, 2024

@amjawa this indicates that your public SSH from first message is not the one you have on your docker image, if you paste your new SSH Public Key here, I can add it and then you can upload.

@zvorcuit
Copy link
Collaborator

@amjawa if however you did not generate new public SSH key already, then you can run:
ssh-keygen -t ed25519 -b 256 -f ./id_ceremony -N "" -C ""
after that
cat ./id_ceremony.pub
and paste output here

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKPiWG4tbu8T4wMeP2QQVtAXdP2uX0X80nLqLgplj6xr

@zvorcuit
Copy link
Collaborator

@amjawa please try upload now

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

/usr/ceremony# sftp -i ./id_ceremony [email protected]
Welcome to Zircuit Mainnet Ceremony
Connected to sftp.ceremony.zircuit.com.
sftp> put ./contributions/0000000032.csrs
Uploading ./contributions/0000000032.csrs to /0000000032.csrs
0000000032.csrs                                                   100%   16GB  54.7MB/s   04:59    
sftp> quit

@amjawa
Copy link
Author

amjawa commented Jun 16, 2024

Done?

@zvorcuit
Copy link
Collaborator

Contribution has been successfully verified.

The hash of contribution is e07b64cf7800edbd9208f69d1da37fd85fc5b2afbae986d2b4e129862c57d7f9.

Added to the contribution list with ID 0000000032.csrs.

Thanks for your contribution!

@zvorcuit zvorcuit changed the title New Contribution - Active 0000000032.csrs Jun 16, 2024
@zvorcuit
Copy link
Collaborator

Dear @amjawa,

We would like to reward your efforts in the ceremony by sending you Zircuit Points!

If you're interested, please provide an Ethereum address within 7 days. We will then transfer the Zircuit Points to the address you provide in the following days.

Thanks once more for your participation in the ceremony!

@amjawa
Copy link
Author

amjawa commented Jun 30, 2024

0xbDC538477C4568Eb40BC69002b6f1121E18e07AE

What a delightful surprise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution New Contribution
Projects
None yet
Development

No branches or pull requests

2 participants