(Possibly) Deterministic IPFS hash generation script for Tornado UI
Go to file
2024-07-07 06:37:29 -07:00
Dockerfile IPFS builder 2024-07-07 06:37:29 -07:00
README.md IPFS builder 2024-07-07 06:37:29 -07:00

Tornado Cash IPFS Builder

(Possibly) Deterministic IPFS hash generation script for Tornado UI

Works on any platform (Linux, Windows, MacOS) if the Docker Desktop is installed.

TL;DR

IPFS hash based on commit 57d3ba5ac5ea8bab6e24b30630c933568dddbec9 (from development branch https://git.tornado.ws/tornadocash/classic-ui/src/branch/development):

bafybeif___________________________________________rtpvvs5y (hash masked, you should produce your own!)

Script based on https://notes.ethereum.org/@GW1ZUbNKR5iRjjKYx6_dJQ/Bk8zsJ9xj

This script is provided as-is and should be only used as an example to derive possibly deterministic IPFS contenthash and shouldn't be trusted as a whole.

Again, this script DOES NOT guarantee deterministic IPFS builds since the process could be easily broken as it depends on many external libraries (like kubo, wget, or docker) and external links that could be censored and broken anytime.

By using this script you should FULLY UNDERSTAND what each line does and shouldn't blindly trust the generated output. What this script could achieve is to demonstrate how Tornado UI could be built and added on IPFS at convenience.

How to use

  1. Build the docker image
docker build -t tornado-classic-ui .
  1. Check the generated IPFS hash
docker container run --rm -it --entrypoint cat tornado-classic-ui /app/ipfs_hash.txt

(Optional) Add built UI to IPFS Desktop

First, install the latest IPFS Desktop.

Then, build the docker image and run the following command

docker container run --rm tornado-classic-ui

You can now access the UI on your local IPFS gateway through the following

http://localhost:8080/ipfs/content_hash_here