EF zkp
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Multi-Party Trusted Setup Ceremony for clr.fund Kirill Goncharov, Koh Wei Jie ## Goals and context Minimal Anti-Collusion Infrastructure (MACI) requires a trusted setup ceremony to be secure. For clr.fund to use MACI's zk-SNARK circuits, it must first generate a *proving key* and *verifying key* per circuit via a process known as a *trusted setup*. The process by which these keys are generated involves the generation of *toxic waste*, which is data that must be securely discarded so that no-one can generate proofs that are fake but pass verification. If clr.fund performs this trusted setup by themselves, users have no way to know that they have retained or discarded the toxic waste, which will reduce trust in the system. As such, it is necessary to perform the trusted setup in a way that convinces as many external parties as possible that the toxic waste is discarded. The best way to do this is to use a *multi-party trusted setup ceremony*. Such a ceremony involves multiple participants. Each participant receives a *challenge file* from a coordinator, uses it to create a *response file*, and submits it to the coordinator, who then creates a new challenge file for the next participant in line. As long as just one participant discards their toxic waste, then the proving and verifying keys generated from the final challenge file are secure. The more participants in the ceremony, the lower the probability that all of them collude to retain and share their toxic waste. As such, clr.fund needs to attract as many participants as possible. Moreover, to minimise the chance of collusion, these participants should be as diverse as possible. Ideally, at least one participant should use an alternative implementation of the trusted setup ceremony software, to reduce the risk of compromised tooling. All the response files should be public, and anyone may verify that they are valid. The coordinator is therefore unable to alter any contributions, and only needs to be trusted to not censor them. Ultimately, the goals of the multi-party trusted ceremony is to convince an informed public of the security of the zk-SNARK proving and verifying keys generated for clr.fund. Future version of MACI may use zero-knowledge proving systems that do not require a trusted setup, but this is contingent on the availability of developer tools for said systems. ### Ceremony phases zk-SNARK trusted setups involve two phases. *Phase 1* applies to all circuits, and *phase 2* is circuit-specific. This document refers to phase 2 only. This is a circuit-specific trusted setup. clr.fund needs to perform one trusted setup per circuit, and there are two circuits. Fortunately, *phase 1* has already been taken care of. [Hermez Network](https://twitter.com/hermez_network/status/1297952787867869184) selected the 54th contribution of the [Perpetual Powers of Tau Ceremony](https://github.com/weijiekoh/perpetualpowersoftau) (PPOT) for their zk-rollup circuits, and ran the *prepare-phase-2 process* on it. clr.fund can reuse the [output of this process](https://www.dropbox.com/sh/mn47gnepqu88mzl/AACaJkBU7mmCq8uU8ml0-0fma?dl=0) as the starting point of its own phase 2 ceremony. If clr.fund chooses not to use Hermez Network's phase 1 output, then they have to do the following: 1. Select the latest PPOT output 2. Run the prepare-phase-2 process on the output, which could take a day to complete in a cloud VM The easier method is to verify and use Hermez Network's phase 1 output. ## clr.fund's phase 2 ceremony clr.fund needs the following the run a phase 2 ceremony: 1. Social media channels where they can make announcements about the ceremony. Ideally, these announcements should be mirrored publicly (e.g. on IPFS) so that no-one can claim that the team had retracted any of them. 2. A list of interested participants and their Ethereum addresses. Each participant should provide an address whose private key they can copy and paste into a command line. 3. A way for anyone to register interest in signing up for the ceremony, such as an online form. 4. A public chat group for people to ask questions and chat about the ceremony. Ideally, the chat platform should not allow anyone to edit any messages they post. 5. A participant guide containing clear, step-by-step instructions on how to sign up and participate in the ceremony. 6. Two instances of the [`setup-mpc-server`](https://github.com/briangu33/Setup). Currently, each server supports a single circuit, but MACI uses two circuits. If the server does not support multiple circuits by the time that the ceremony begins, the easiest way to proceed is to have two servers. A user needs to do the following to participate in the ceremony: 1. Sign up to participate by providing an Ethereum address for which they own a private key and can paste it into a command line 2. Run a Docker container to contribute a response for the first circuit. 3. Run a Docker container to contribute a response for the second circuit. ## For reference: Semaphore's phase 2 ceremony Please refer to this [participant guide](http://ceremony.semaphore.appliedzkp.org/) to learn about Semaphore's phase 2 ceremony. Also read the [instructions for ceremony providers](https://github.com/briangu33/Setup/tree/master/setup-mpc-server) and [general instructions for participants](https://github.com/briangu33/Setup/tree/master/setup-mpc-client).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully