Skip to content

axlvaz/trusted-setup-frontend

 
 

Repository files navigation

KZG Ceremony Frontend

Work in Progress

This React App is a graphic interface to interact with the Ethereum KZG Ceremony. Participants can checkout the website at https://kzg-ceremony.party/

Start

To start this app execute the following steps:

  1. Run the sequencer app from https://github.com/ethereum/kzg-ceremony-sequencer. It is assumed that the assigned port is 3000 and that our react app would use port 3001. You can set PORT env variable with a specific port for React.

  2. Setup environment variables:

    Ubuntu: export REACT_APP_API_ROOT=http://localhost:3000 Windows (Powershell): $env:REACT_APP_API_ROOT="http://localhost:3000"

    Ubuntu: export REACT_APP_SIGNIN_REDIRECT_URL=http://localhost:3001/signin Windows (Powershell): $env:REACT_APP_SIGNIN_REDIRECT_URL="http://localhost:3001/signin"

  3. Install dependencies: yarn install

  4. Copy the /wasm directory from the wrapper library in the public/ directory. Most of the times the wasm-worker.js will not change

  5. Start application: yarn start

Note: In case you get a crossOriginIsolated error when running the contribution function in the web worker, it might be caused by this known-and-soon-to-be-solved issue. You would need to change the token in the http-equiv="origin-trial" meta tag in index,html to:

  1. Production (https://kzg-ceremony.party/): AjVfwdWSdxno9LR/Mwggz6Rrx0m9MlVHZB07xLFSPIMcLXr0xGnTDxZw3w77clkyTlK432VilcN6ANw3n4ydwAgAAAB8eyJvcmlnaW4iOiJodHRwczovL2t6Zy1jZXJlbW9ueS5wYXJ0eTo0NDMiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NzUyOTU5OTksImlzU3ViZG9tYWluIjp0cnVlfQ==

  2. Production (https://ceremony.ethereum.org/): AvsLzQGkkiX4UwxTyYMhzquGZArOggtZJbQDbVpKgq6Zat45IcAG0do6ok9UV8jpbS1FSIb7IBpdDE8RKe4uVAkAAABseyJvcmlnaW4iOiJodHRwczovL2NlcmVtb255LmV0aGVyZXVtLm9yZzo0NDMiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NzUyOTU5OTl9

  3. Development (http://localhost:3001/): AtOhr2NvRTD4rPvKdQBaVfFcVEQiDeBR97NMxxYIFp2F+FdWsKpROhrE1lUKhib4bVcJyxBNAOy1+90xRk3cyAYAAABgeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjMwMDEiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NzUyOTU5OTl9

In case you need to ask for another token, you can go here https://developer.chrome.com/origintrials/#/view_trial/303992974847508481

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.5%
  • TypeScript 39.8%
  • HTML 1.3%
  • Python 0.4%