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/
To start this app execute the following steps:
-
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. -
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"
-
Install dependencies:
yarn install
-
Copy the
/wasm
directory from the wrapper library in thepublic/
directory. Most of the times thewasm-worker.js
will not change -
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:
-
Production (https://kzg-ceremony.party/):
AjVfwdWSdxno9LR/Mwggz6Rrx0m9MlVHZB07xLFSPIMcLXr0xGnTDxZw3w77clkyTlK432VilcN6ANw3n4ydwAgAAAB8eyJvcmlnaW4iOiJodHRwczovL2t6Zy1jZXJlbW9ueS5wYXJ0eTo0NDMiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NzUyOTU5OTksImlzU3ViZG9tYWluIjp0cnVlfQ==
-
Production (https://ceremony.ethereum.org/):
AvsLzQGkkiX4UwxTyYMhzquGZArOggtZJbQDbVpKgq6Zat45IcAG0do6ok9UV8jpbS1FSIb7IBpdDE8RKe4uVAkAAABseyJvcmlnaW4iOiJodHRwczovL2NlcmVtb255LmV0aGVyZXVtLm9yZzo0NDMiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NzUyOTU5OTl9
-
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