trusted-setup-server/pages/instructions.vue

63 lines
1.6 KiB
Vue

<template>
<div class="ceremony">
<h1 class="title is-size-1 is-size-2-mobile is-spaced">
Instructions
</h1>
<h2 class="subtitle">
for Rust:
</h2>
<figure class="highlight">
<pre v-highlightjs><code class="bash"># Install rust
curl -sSf https://sh.rustup.rs | sh
# Clone the repository with ceremony code
git clone -b ceremony https://github.com/tornadocash/phase2-bn254
cd phase2-bn254/phase2
# Run the ceremony
cargo run --release --bin tornado</code></pre>
</figure>
<h2 class="subtitle">
for Docker:
</h2>
<div class="content p">
<p>
Using this method you will download and compile ceremony source code from our git repo in a
stock Rust container. This is not a prebuilt container distribution.
</p>
<p>
First you need to install the docker on your system:
</p>
<ul>
<li>
<a
href="https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe"
target="_blank"
>
Download Docker for Windows</a
>
</li>
<li>
<a href="https://download.docker.com/mac/stable/Docker.dmg" target="_blank">
Download Docker for Mac</a
>
</li>
</ul>
</div>
<figure class="highlight">
<pre v-highlightjs><code class="bash"># Download dockerfile
wget https://raw.githubusercontent.com/tornadocash/phase2-bn254/ceremony/Dockerfile
# Build docker image
docker build . -t ceremony
# Run the ceremony
docker run -ti ceremony</code></pre>
</figure>
</div>
</template>