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

0000000038.csrs #128

Closed
giovannidisiena opened this issue Jun 8, 2024 · 52 comments
Closed

0000000038.csrs #128

giovannidisiena opened this issue Jun 8, 2024 · 52 comments
Assignees
Labels
contribution New Contribution

Comments

@giovannidisiena
Copy link

Contributor: giovannidisiena
SSH Public key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIOHLaijyrFA+vPiWQzsKkCQKgeXEJNAra4mN3+MEoGJ
Attestation: [any form of attestation for contribution (e.g., signature) - Optional]

@giovannidisiena giovannidisiena 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 contributor@sftp.ceremony.zircuit.com
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 @giovannidisiena, 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.

@giovannidisiena
Copy link
Author

I will be unable to contribute until tomorrow at the earliest but believe I should meet the system requirements.

@zvorcuit zvorcuit changed the title GDS Contribution GDS Contribution - Suspended Jun 16, 2024
@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena, 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.

@zvorcuit
Copy link
Collaborator

Your allocated contribution time slot has been suspended due to not confirming availability for 15 minutes. Please let us know when you are ready to contribute again. Thank you!

@giovannidisiena
Copy link
Author

Apologies, just missed it. I should be able to contribute in 14 hours from now onwards.

@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena, 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.

@giovannidisiena
Copy link
Author

Confirmed.

@zvorcuit
Copy link
Collaborator

@giovannidisiena, 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 GDS Contribution - Suspended GDS Contribution - Pending Jun 18, 2024
@giovannidisiena
Copy link
Author

Starting contribution now.

@zvorcuit zvorcuit changed the title GDS Contribution - Pending GDS Contribution - Active Jun 18, 2024
@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena what is the current status?

@giovannidisiena
Copy link
Author

There was a crash during my first attempt at creating the contribution. Now I no longer see any of the output that appeared before and appears it is hanging despite high memory usage.

@zvorcuit
Copy link
Collaborator

@giovannidisiena crash would indicate there are no sufficient resources available.
No output would either indicate that export RUST_LOG=info was not ran or that there are no enough resources.
Please make sure you have enough resources available.

In the meantime, I will suspend your contribution to unblock other users.
Please let us know when you confirm that resources are in line with docs and you are ready to contribute again.

@zvorcuit zvorcuit changed the title GDS Contribution - Active GDS Contribution - Suspended Jun 18, 2024
@giovannidisiena
Copy link
Author

Resources are in line with the docs and process output is displaying again now.

@zvorcuit
Copy link
Collaborator

@giovannidisiena can you please share current output?

@giovannidisiena
Copy link
Author

Current status is checking SRS Check # 4.

@zvorcuit
Copy link
Collaborator

@giovannidisiena I am interested in timestamps mostly.

@giovannidisiena
Copy link
Author

Ah, I see.

[2024-06-18T11:47:42Z INFO  ceremony::contribution] Reading contribution from "./contributions/0000000036.csrs"
[2024-06-18T11:50:12Z INFO  ceremony::check] Checking contribution with id 36
[2024-06-18T11:50:12Z INFO  ceremony::check] Contribution's k and n are correct
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #1 Succeded: srs uses hardcoded group generators
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #2 Succeded: g2 and s_g2 have order r
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #3 Succeded: the g vector has expected size

@zvorcuit
Copy link
Collaborator

zvorcuit commented Jun 18, 2024

@giovannidisiena any updates? Can you share output again please.

@zvorcuit zvorcuit changed the title GDS Contribution - Suspended GDS Contribution - Pending Jun 18, 2024
@giovannidisiena
Copy link
Author

giovannidisiena commented Jun 18, 2024

[2024-06-18T11:47:42Z INFO  ceremony::contribution] Reading contribution from "./contributions/0000000036.csrs"
[2024-06-18T11:50:12Z INFO  ceremony::check] Checking contribution with id 36
[2024-06-18T11:50:12Z INFO  ceremony::check] Contribution's k and n are correct
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #1 Succeded: srs uses hardcoded group generators
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #2 Succeded: g2 and s_g2 have order r
[2024-06-18T11:50:12Z INFO  ceremony::check] > SRS Check #3 Succeded: the g vector has expected size
[2024-06-18T12:43:02Z INFO  ceremony::check] > SRS Check #4 Succeded: srs is well-formed
[2024-06-18T12:43:02Z INFO  ceremony::check] > SRS Check #5 Succeded: srs is non-degenerative
[2024-06-18T12:43:02Z INFO  ceremony::check] SRS is valid
[2024-06-18T12:43:02Z INFO  ceremony::check] Contribution with id 36 is valid
[2024-06-18T12:43:02Z INFO  ceremony::secrets] Generating secrets ..
[2024-06-18T12:43:02Z INFO  ceremony::secrets] Generating and hashing 1073741824 random bytes
[2024-06-18T12:43:11Z INFO  ceremony::secrets] Hashing hasher's state 1048576 times
[2024-06-18T12:43:11Z INFO  ceremony::secrets] Extracting secrets
[2024-06-18T12:43:11Z INFO  ceremony::contribute] Rescaling powers of tau..

@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena please remember to prevent sleep mode or to actively use the machine, otherwise your contribution performance will be much slower and may not finish in allocated time.

@giovannidisiena
Copy link
Author

Yes, I have done this but I am not sure why the performance is slow. How long is the allocated time and how long is the process expected to take?

@zvorcuit
Copy link
Collaborator

zvorcuit commented Jun 18, 2024

@giovannidisiena The maximum time is few hours, including download and upload. Usually process takes less than two hours, however looking into your output, check #3 that usually takes few minutes took almost an hour.

@zvorcuit
Copy link
Collaborator

@giovannidisiena great, I will ping you when the slot opens.

@giovannidisiena
Copy link
Author

Thanks, may be able to if the slot opens shortly, otherwise again in 14 hours from now onwards would be most likely.

@zvorcuit
Copy link
Collaborator

@giovannidisiena, 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 GDS Contribution - Suspended GDS Contribution - Pending Jun 19, 2024
@giovannidisiena
Copy link
Author

Confirmed. Starting download now.

@zvorcuit zvorcuit changed the title GDS Contribution - Pending GDS Contribution - Active Jun 19, 2024
@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena, was download succesful?

@giovannidisiena
Copy link
Author

giovannidisiena commented Jun 19, 2024

Not yet. Nothing else has changed but download for this contribution is taking a lot longer (I think due to throttling). Output reports approximately 1 hour remaining.

@giovannidisiena
Copy link
Author

Approximately 25 minutes remaining now.

@giovannidisiena
Copy link
Author

Starting contribution.

@giovannidisiena
Copy link
Author

giovannidisiena commented Jun 19, 2024

Rescaling powers of tau. Execution of previous steps happened in a similar time to the test yesterday, so I assume a little over an hour remaining.

@giovannidisiena
Copy link
Author

Contribution complete.

@giovannidisiena
Copy link
Author

Uploading contribution.

@giovannidisiena
Copy link
Author

@zvorcuit upload has stalled despite 5Mbps upload speed. Is there anything I can do to speed this up?

@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena I do not think so, what do you mean stalled, can you provide screenshot please?

@giovannidisiena
Copy link
Author

Welcome to Zircuit Mainnet Ceremony
Connected to http://sftp.ceremony.zircuit.com.
sftp>
reput ./contributions/0000000038.csrs
Resuming upload of ./contributions/0000000038.csrs to /0000000038.csrs
0000000038.csrs                      0%  69MB 515.8KB/s 8:59:50 ETA

But the ETA is varying wildly and sometimes shows - stalled - instead of a time.

@giovannidisiena
Copy link
Author

I’m not sure why the upload speed is so low.

@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena try reconnecting to sftp and trying again.

@giovannidisiena
Copy link
Author

Up to 1.1MB/s now, proceeding more quickly, although it is still fluctuating quite a lot.

@giovannidisiena
Copy link
Author

Appears to be stabilising around 2MB/s and working well now. I will keep you updated if there are any more issues. ETA approximately 2 hours.

@giovannidisiena
Copy link
Author

ETA 1 hour, assuming speed stays constant at 3+MB/s.

@giovannidisiena
Copy link
Author

A little over 30 minutes remaining.

@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena, any updates?

@giovannidisiena
Copy link
Author

@zvorcuit completed just now!

@giovannidisiena
Copy link
Author

Thanks for your patience.

@zvorcuit
Copy link
Collaborator

Contribution has been successfully verified.

The hash of contribution is 58fb2c9fdc1f970429eb174ad4bb59cc30775d716330583ea6c76459dd4aa38d.

Added to the contribution list with ID 0000000038.csrs.

Thanks for your contribution!

@zvorcuit zvorcuit changed the title GDS Contribution - Active 0000000038.csrs Jun 19, 2024
@zvorcuit
Copy link
Collaborator

Dear @giovannidisiena,

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!

@giovannidisiena
Copy link
Author

Amazing, thank you @zvorcuit!

Please use the following address:
0xe232e4153E6eC53698E8BEB6e5792Cbf82F3c7C4.

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