zkparty / trusted-setup-frontend

The KZG Ceremony web browser implementation
https://ceremony.ethereum.org
229 stars 66 forks source link

Make deployable on IPFS #45

Closed glamperd closed 1 year ago

glamperd commented 1 year ago

We should have an instance of the final version code deployed on IPFS such that this is a viable option for many users to run the front end. The aim is to have a content-addressed link for the sake of transparency wrt the code that users are running.

glamperd commented 1 year ago

IPFS deployment will require some variations to the code:

glamperd commented 1 year ago

TODO:

glamperd commented 1 year ago

COOP/COEP headers can be done using a service worker. No need now for a customised IPFS gateway.

glamperd commented 1 year ago

Conditional compile is no longer necessary. The service worker is useful for other purposes. We'll revert to having a single build option.

The redirect URL will be determined from the URL at runtime even when running from a server. It will still be possible to override the redirect by adding a REACT_APP_SIGNIN_REDIRECT_URL environment var.

The sequencer URL will need to be specified in .env to build for IPFS