The Semaphore team is conducting phase 1 of a multi-party trusted setup ceremony based on the Zcash Powers of Tau ceremony. The goal is to securely generate zk-SNARK parameters for circuits of up to 2 ^ 28
(260+ million) constraints. This means that the process will generate twice as many minus one (530+ million) powers of tau.
As long as one party in the ceremony behaves honestly and is not compromised, the entire setup is trustworthy.
IPFS | Filename |
---|---|
Qmb1ejQ2uSXJ5AukYEGdm73Lf8q8vg2As2beC2eYENnDtB |
challenge_initial |
QmePmggNmSmzkJm3W1Kdz73FsUcdDpUGdvj466xTw9gjrg |
challenge_0002_kobi |
QmSQXLTHVCNQQE2wF7q8n2vhNmLjzKpPXwsGSYkGboKefo |
challenge_0003 |
QmZ4qMYTRWKSWce2g2pose7v6maKGrrGG8HvtWPqxXyKxM |
challenge_0004 |
QmZfYvb1eeE1uXvBGQWFXq169Gh79qsdcho169MM2BJ3Z7 |
challenge_0005 |
QmeNukSckT7gkD354aQfzLh6T7ZGv51gPmQQEi18BmSpiC |
challenge_0006 |
QmQpAUqQ1jx8ABwmvw1kjUhFUcN8JM4D14BkE2roBrYtux |
challenge_0007 |
QmdRxyVimSRsAJ4HkD9AiMSCCM2qw5nrEAJVzUJXT4VpGT |
challenge_0008 |
QmQ1tzZi7PdHKE8VJczfHNgZbGSUp73viuytBoofcTnW1C |
challenge_0009 |
Qmd1gtTpWCy4LP1eskdF5jD8daGMvMz7oGVajMoKwHKsWA |
challenge_0010 |
Qmbf4UtTzdy3Cz56nXeom2fecB6ngYcryyitiVmYDTB4Za |
challenge_0011 |
QmYzPUEZ8BPjFMXXcPo1WA6zaHERthXLPGAMR8sPrGajA1 |
challenge_0012 |
QmY7MKhMN8heRK5Nwe5yhraepArWc5YZJCfarae7R9QuR4 |
challenge_0013 |
Qmepq4FrnagYp31cT7vKuagfF8vgT6RShnRvTr6zMQswkW |
challenge_0014 |
QmcXfTmYMqLF8iVmsD6phfXBke9DBiVecpbDh3TMfQphkG |
challenge_0015 |
Qmdq2k8TJcKmZbVStqfT95fPc9xc3hJFRd2szFMjYDj2ke |
challenge_0016 |
Qma9EftTTUy3d1aARcDJVAbSckEPNi54zUaVaWpFSZmgQZ |
challenge_0017 |
QmPBEnbatu5FLuM3jhNbDVTVe6UZsLC12E5f6Puwu9q5g6 |
challenge_0018 |
QmNWQ5Uhh6MzpgMqGgJm25UCTtRhmDtwFBBLhYFaAAo1DS |
challenge_0019 |
QmekMXZsfBi8DRebYXraSa6r8jSAVo6fBBJeLoirdR7j8N |
challenge_0020 |
QmdkWnwsM3gHt7A8Gxq2JzhawKRuMvHLdxH4aDHPTt7w3F |
challenge_0021 |
QmXwig4F7QqdDs8cCRHKZbzyUPxi1TVTrghqs2W28bLeUr |
challenge_0022 |
QmWw14WEH7nokJHatEf7WUmqwrJEoAXjq25io39e4AkuSt |
challenge_0023 |
QmQbBwhEBEuMBwtLt5NWxmY8AcjFxvELvmBcb5nHRKf8i8 |
challenge_0024 |
QmQGwrxQ5voS4nTCRNLtb9SNMThxCuViN2xtM7ffDLCzA6 |
challenge_0025 |
QmQGwsABWrAaZ2uHpV1jTV7ynnG4xx5qD9aDb15u1oY1rL |
challenge_0026 |
Qmc22ur3YbFLtUS8mxSqqLCX39ksZUDr3PWi6wXUmmFKj4 |
challenge_0027 |
Qmduu6rvGM15TdGnVoW9zGXDYvtsAK1w8KdG5Jbo28Pomp |
challenge_0028 |
QmakEigT1NfyjSJ1kkKZCnWGTnHkinU7u4ezc8dJdipMEK |
challenge_0029 |
QmUcSPMVZgUb782zxfSofQvcF66sQbRfb5kWt9kjX61uPh |
challenge_0030 |
QmYivuQ3QwaxZwSqoXWrWiMNdaKQNm96V4mU2VTHZZdjDc |
challenge_0031 |
QmYGPfW1tuJFtBShGKeMbUKuKVe79dAsrjREG1ZceS21Cr |
challenge_0032 |
QmU3LoELzGFcMKozE71xZL9gpq2mUnp5qPzE9KaorTfRxj |
challenge_0033 |
QmNwMEu1dLv2XeCqXtVrdiQBVaQFWeNtVP7HdnPP2Xdkfd |
challenge_0034 |
QmcdU9c71mTZGQnUGkkoXTrwtjyoTLPE2qp196VGCVgCuw |
response_0001_weijie |
QmPE7QAVRAVdDMMMP9rMbNyhZ8jo9pkZUm5ycRgogsHVAD |
response_0002_kobi |
QmUcPEstiXAFxYGKxCswXEgky69LvDrCLKamySrugW2Z4i |
response_0003_poma |
QmeKL2woTQHoUHpZEu8MKLv6mPdqz9xAwGkdpAAurpAAzV |
response_0004_pepesha |
QmQQZYBBbfgGmxLUjcq11bcuUPSQd1JCVkJ3rX8nqGVocU |
response_0005_amrullah |
QmS3hMyQ9hworRi27Hkc85eTUXDx6ciw2QzZd8KcUNHb2x |
response_0006_zac |
Qmc3yEq5QmckJwaQY8P1qEWSvfBYqCqMzB3q4mHYrZbZEk |
response_0007_youssef |
QmQiu9W8nutk8Bkh5yg3aaiCCmYKjbCm48g6B8hWK2KjDw |
response_0008_mike |
QmRrkQD44brXuaB9uw4gNvoJ5dHnkS3f2GrEhW9Jtz4Kff |
response_0009_brecht |
QmU3Zj589iK67W5pYHMJEiVTzHVCsL9AeGqnBLhq6kU2Ww |
response_0010_vano |
QmYtrvaTBn7ro9EBpiaDf4NWMxAKttKXDLww8rP2zbfesH |
response_0011_zhiniang |
QmXBJ5d86CJfZzcqSeaqVMuJki8V4wsLsPR5bsSG23QmtC |
response_0012_daniel |
QmYSGujwVYCUkQiktdadsC2Dr16EZGstXePhCzHBp6sqL2 |
response_0013_kevin |
QmTQ2jJS2rDnZrXXNKM3XcHfWvfJPQy4tAnfKhLThT95YL |
response_0014_weijie |
Qme4NoJyfmVqFgUUUounmxtk7C35iXhTCCjroJc4AxrL5V |
response_0015_anon0 |
QmaFR9E8sV4o8xijkUwXQdkjS9hHESKPXZ1CerMXTDvvFM |
response_0016_aurel |
Qmba1LQXD7gPHzrmjzPpzhX7Xb2oT1k3JQVS9Rqj1taxfp |
response_0017_philip |
QmQM5LnyiM4B78k6bA5c1MRDNscG19SBH66A5Txdc8BZ5u |
response_0018_cody |
QmZpi6iwSRtBi4HcRAdUMXBVqQAD8RQqat2yz4xtzVDgry |
response_0019_petr |
QmWDRdmXy3sWQB6c4hcwBKCdvzCdc6feTJrPyasjRtyyVj |
response_0020_edu |
QmTPhwttSdHcafGWnttTaXncT1pVUyjMc7dneNzbvSqcv6 |
response_0021_rf |
QmWMFxs6zwocgmGsQQscpaUhAmwkPBjF4nHaXnVNw6pLsP |
response_0022_roman |
QmVghB15aA8r4f8kaDGYRPHNtvXpug5xuJy166T5aLjGnw |
response_0023_shomari |
QmSNRqBixRjqbaRFxe2G9dV5i7UHiQZLG3y6MQq29CQEJw |
response_0024_vb |
QmQzcXktWYsqxeioxyCa6wxQ1FvVoCyDfkAN9TdmmNpdvH |
response_0025_stefan |
QmZwshpsydtkRFtV5nuyhzL1yXE5AfacvVmPUNGTyJYYM5 |
response_0026_geoff |
QmNeMWxbS7YSEaFEV3X1i3ETsHCyHcsZUQazkTiKZLWGph |
response_0027_alex |
QmcwjhjzUe5fWKsY21FJE1GdBFR4bxBvDAQbaLPgrUMAEw |
response_0028_dimitris |
QmU285xoCQJD17QovgYf41dri8KsVgr9DoN7uDjYAUDBWu |
response_0029_gustavo |
QmR6MjUDhqsqG8ALThdzSH1kSdqHg3VgKDXsRzLTPAVhzt |
response_0030_anant |
QmdKRFAch8rhuFZ7Z7u5AC6qfXgdfWGhBoR4UNmD5yHfwZ |
response_0031_witold |
QmVj2pziSXbPjSg6wV8YkAcfybhpYFrqugMJxXwNjhtEDG |
response_0032_josephc |
QmXokCVS2u7LUopyBMYAVaUjbMgSRU1uxstoSc85fqwssT |
response_0033_oskar |
QmWqCbXs5eFzesJ5bSRu2UNYh1UdyWr16Y49DC3BWp1RiT |
response_0034_igor |
QmYMzNLijTut9WYWVcCANc2gBN5Q48jGELgAQatujiXyCM |
response_0035_leonard |
QmPZr6aQMKxxj5FYW5cA6oYwE5bNLd8ehatRGXuSBkJehp |
response_0036_stefaan |
QmP1zXaVbnhUriMhVGnf55VKaZwffYTPwp3jUMj8P6LE24 |
response_0037_chihcheng |
QmZPXXidBBiS1Vtx9sw1dBdy4WT4qaJ9291i5vd7GwGDTf |
response_0038_james |
QmQrf3YhCqGN1xWgag6ySxtSMzxaLvWEkm2MZFRzrEU2rk |
response_0039_wanseob |
QmTrSs9cd1mky6LzzTucE5YccecLZGWxBe39gNkezN6Jiw |
response_0040_weitang |
There is a coordinator and multiple participants. The ceremony occurs in sequential rounds. Each participant performs one or more rounds at a time. The coordinator decides the order in which the participants act. There can be an indefinite number of rounds.
The ceremony starts with the coordinator generating an initial challenge
file, and publishing it in a publicly accessible repository.
The first participant downloads challenge
, runs a computation to produce a response
file, and sends it to the coordinator.
The coordinator will then produce a new_challenge
file, and publish it along with the response
. The next selected participant will then download new_challenge
and produce a response
, and the process repeats indefinitely.
Whenever a new zk-SNARK project needs to perform a trusted setup, they can pick the latest response
, verify the entire chain of challenges and responses up to the selected response, and finally apply a random beacon to it. Next, they can move on to phase 2 of the trusted setup which is circuit-specific and out of scope of phase 1.
To illustrate this process, consider a Coordinator, two participants (Alice and Bob), and a zk-SNARK project author Charlie:
- Coordinator generates
challenge_0
and publishes it. - Alice generates
response_1
and publishes it. - Coordinator generates
challenge_1
and publishes it. - Bob generates
response_2
and and publishes it. - Coordinator generates
challenge_2
and publishes it. - Charlie applies the random beacon to
challenge_2
to finalise the setup.
The resulting public transcript should contain:
challenge_0
response_1
challenge_1
response_2
challenge_2
- The random beacon
- The final parameters
Zcash announced on their ceremony mailing list that they would use the hash of a specific Bitcoin block. They made this announcement before the block was mined. See:
https://github.com/ZcashFoundation/powersoftau-attestations/tree/master/0088
A similar process can be used for this ceremony. Note that mining difficulty has grown since 2018, so there is now slightly less entropy per Bitcoin block hash.
The transcript can be fully verified as long as it is public and that there are no bugs in the code used to generate challenges and responses.
Participants can choose to be anonymous. If they choose to be publicly known, they should own a GPG keypair whose public key is known to be associated with their real-world identity, socially or via any other means.
Given the above, the transcript should contain all the challenge
and response
files, and the Blake2b hash of each file.
It should also contain an attestation for each response
. This is a text file with:
- Blake2b hashes of the
challenge
received and theresponse
generated - A detailed description of the hardware and software that the participant used to generate the
response
. - A detailed description of any security and anti-surveillance measures that the partcipant has used.
Additionally, it should contain each participant's GPG signature of their attestation, so as to assure the public that it was generated by the person who had claimed to have done so.
Each challenge file is about 97G in size and each response file is about 49G. An Azure compute VM (Standard F4s with 4 vcpus and 8GB memory) takes about 24 hours to generate.
The coordinator is using Microsoft Azure compute VMs to generate new_challenge
files, and Blob Storage to host challenges and responses.
Each participant can transfer their response to the coordinator via sftp
. This process is semi-interactive as it this requires either the participant to provide their SSH public key in advance, or the coordinator to send them a private key. Alternatively, they can use any of the following interactive methods:
- BitTorrent
- IPFS
- Third-party large-file transfer services like MASV
A mailing list has been set up to coordinate the ceremony:
https://groups.google.com/a/ethereum.org/forum/?hl=en#!forum/perpetual-powers-of-tau-ceremony-group
First, set up a Linux machine and install Rust and Cargo following instructions here.
Download and compile the required source code:
git clone https://github.com/kobigurk/phase2-bn254.git --branch ppot_ceremony && \
cd phase2-bn254/powersoftau && \
cargo build --release
Download the challenge_nnnn
file from the coordinator. The filename might be something like challenge_0004
. Rename it to challenge
:
mv challenge_nnnn challenge
Also check with the coordinator (or this repository) for the expected Blake2b hash of challenge
.
Run the computation with challenge
in your working directory:
/path/to/phase2-bn254/powersoftau/target/release/compute_constrained
You will see this prompt:
Will contribute to accumulator for 2^28 powers of tau
In total will generate up to 536870912 powers
Type some random text and press [ENTER] to provide additional entropy...
Make sure that it says 2^28 powers of tau
, and then enter random text as prompted. You should try to provide as much entropy as possible from sources which are truly hard to replicate. See below for examples derived from Zcash's own ceremony.
The compuation will run for about 24 hours on a fast machine. Please try your best to avoid electronic surveillance or tampering during this time.
When it is done, you will see something like this:
Finihsing writing your contribution to `./response`...
Done!
Your contribution has been written to `./response`
The BLAKE2b hash of `./response` is:
12345678 90123456 78901234 56789012
12345678 90123456 78901234 56789012
0b5337cd bb05970d 4045a88e 55fe5b1d
507f5f0e 5c87d756 85b487ed 89a6fb50
Thank you for your participation, much appreciated! :)
Upload the response file to the coordinator's server using SFTP or rsync. We will provide you with options and guidance on how to do this.
Finally, document the process you used, following the example here: https://github.com/weijiekoh/perpetualpowersoftau/blob/master/0027_alex_response/alex_attestation.md
We recommend that in your attestation, you include the git commit hash of the phase2-bn254
repository from which you built the binaries.
Sign your attestation with your Keybase account or GPG key and post it to the mailing list. We highly recommend using Keybase instead of GPG as it is easy to make time-consuming mistakes when attempting to publicise and/or share GPG keys.
If you wish to sign your attestation using an Ethereum account instead of GPG, please SHA256 hash your attestation and use an account publicly associated with your identity and store it in this Notary contract using the register(bytes32 _hash)
function. Send the transaction hash to the coordinator, who will include it in the transcript.
This Notary contract is simply:
pragma solidity 0.5.11;
contract Notary {
mapping (bytes32 => bool) public hashes ;
function register(bytes32 _hash) public {
hashes[_hash] = true;
}
function check(bytes32 _hash) public view returns (bool) {
return hashes[_hash];
}
}
/dev/urandom
from one or more devices- The most recent Bitcoin block hash
- Randomly mashing keys on the keyboard
- Asking random people on the street for numbers
- Geiger readings of radioactive material. e.g. a radioactive object, which can be anything from a banana to a Chernobyl fragment.
- Environmental data (e.g. the weather, seismic activity, or readings from the sun)