-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed wrong link to semaphore-base.circom in docs (#37)
* fixed wrong link to semaphore-base.circom in docs * updated the docs build script to not delete CNAME; fixed some minor errors in the tutorial * added warning about compiling scrypt in node 12 * added warning about lerna Former-commit-id: 1e34d21
- Loading branch information
Showing
7 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
CNAME | ||
docs_src/book/ | ||
.etherlime-store | ||
**/build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,29 +348,33 @@ <h2><a class="header" href="#cryptographic-primitives" id="cryptographic-primiti | |
circuits and EVM bytecode generator have not been audited, so use it with | ||
caution. To use it, checkout the <code>feat/poseidon</code> branch of this repository.</p> | ||
<h1><a class="header" href="#quick-start" id="quick-start">Quick start</a></h1> | ||
<p>Semaphore has been tested with Node 11.14.0 and Node 12 LTE. Use | ||
<a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p> | ||
<p>Semaphore has been tested with Node 11.14.0. It will run with Node 12 LTE but | ||
we highly recommend using Node 11.14.0 if you wish to develop on its source | ||
code, as one of its dependencies, <code>script</code>, cannot compile when if you use Node | ||
12. </p> | ||
<p>Use <a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p> | ||
<p>Clone this repository, install dependencies, and build the source code:</p> | ||
<pre><code class="language-bash">git clone [email protected]:kobigurk/semaphore.git && \ | ||
cd semaphore && \ | ||
npm i && \ | ||
npm run bootstrap && \ | ||
npm run build | ||
</code></pre> | ||
<p><strong>Note</strong>: we use <code>lerna</code> to manage the <code>circuits</code>, <code>config</code>, and <code>contracts</code> | ||
subpackages. Do not run <code>npm install</code> within any of these directories. Instead, | ||
just run <code>npm run bootstrap</code> in the main directory.</p> | ||
<p>Next, either download the compiled zk-SNARK circuit, proving key, and | ||
verification key (note that these keys are for testing purposes, and not for | ||
production, as there is no certainty that the toxic waste was securely | ||
discarded).</p> | ||
<p>To download the circuit, proving key, and verification key, run:</p> | ||
<pre><code class="language-bash"># Start from the base directory | ||
|
||
cd circuits && \ | ||
./circuits/scripts/download_snarks.sh | ||
</code></pre> | ||
<p>To generate the above files locally instead, run:</p> | ||
<pre><code class="language-bash"># Start from the base directory | ||
|
||
cd circuits && \ | ||
./circuits/scripts/build_snarks.sh | ||
</code></pre> | ||
<p>This process should take about 45 minutes.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,29 +149,33 @@ <h1 class="menu-title"></h1> | |
<div id="content" class="content"> | ||
<main> | ||
<h1><a class="header" href="#quick-start" id="quick-start">Quick start</a></h1> | ||
<p>Semaphore has been tested with Node 11.14.0 and Node 12 LTE. Use | ||
<a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p> | ||
<p>Semaphore has been tested with Node 11.14.0. It will run with Node 12 LTE but | ||
we highly recommend using Node 11.14.0 if you wish to develop on its source | ||
code, as one of its dependencies, <code>script</code>, cannot compile when if you use Node | ||
12. </p> | ||
<p>Use <a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p> | ||
<p>Clone this repository, install dependencies, and build the source code:</p> | ||
<pre><code class="language-bash">git clone [email protected]:kobigurk/semaphore.git && \ | ||
cd semaphore && \ | ||
npm i && \ | ||
npm run bootstrap && \ | ||
npm run build | ||
</code></pre> | ||
<p><strong>Note</strong>: we use <code>lerna</code> to manage the <code>circuits</code>, <code>config</code>, and <code>contracts</code> | ||
subpackages. Do not run <code>npm install</code> within any of these directories. Instead, | ||
just run <code>npm run bootstrap</code> in the main directory.</p> | ||
<p>Next, either download the compiled zk-SNARK circuit, proving key, and | ||
verification key (note that these keys are for testing purposes, and not for | ||
production, as there is no certainty that the toxic waste was securely | ||
discarded).</p> | ||
<p>To download the circuit, proving key, and verification key, run:</p> | ||
<pre><code class="language-bash"># Start from the base directory | ||
|
||
cd circuits && \ | ||
./circuits/scripts/download_snarks.sh | ||
</code></pre> | ||
<p>To generate the above files locally instead, run:</p> | ||
<pre><code class="language-bash"># Start from the base directory | ||
|
||
cd circuits && \ | ||
./circuits/scripts/build_snarks.sh | ||
</code></pre> | ||
<p>This process should take about 45 minutes.</p> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters