Skip to content

Commit 589ade7

Browse files
authored
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
1 parent 36d634c commit 589ade7

File tree

7 files changed

+37
-14
lines changed

7 files changed

+37
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CNAME
12
docs_src/book/
23
.etherlime-store
34
**/build/

docs/print.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,29 +348,33 @@ <h2><a class="header" href="#cryptographic-primitives" id="cryptographic-primiti
348348
circuits and EVM bytecode generator have not been audited, so use it with
349349
caution. To use it, checkout the <code>feat/poseidon</code> branch of this repository.</p>
350350
<h1><a class="header" href="#quick-start" id="quick-start">Quick start</a></h1>
351-
<p>Semaphore has been tested with Node 11.14.0 and Node 12 LTE. Use
352-
<a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p>
351+
<p>Semaphore has been tested with Node 11.14.0. It will run with Node 12 LTE but
352+
we highly recommend using Node 11.14.0 if you wish to develop on its source
353+
code, as one of its dependencies, <code>script</code>, cannot compile when if you use Node
354+
12. </p>
355+
<p>Use <a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p>
353356
<p>Clone this repository, install dependencies, and build the source code:</p>
354357
<pre><code class="language-bash">git clone [email protected]:kobigurk/semaphore.git &amp;&amp; \
355358
cd semaphore &amp;&amp; \
356359
npm i &amp;&amp; \
357360
npm run bootstrap &amp;&amp; \
358361
npm run build
359362
</code></pre>
363+
<p><strong>Note</strong>: we use <code>lerna</code> to manage the <code>circuits</code>, <code>config</code>, and <code>contracts</code>
364+
subpackages. Do not run <code>npm install</code> within any of these directories. Instead,
365+
just run <code>npm run bootstrap</code> in the main directory.</p>
360366
<p>Next, either download the compiled zk-SNARK circuit, proving key, and
361367
verification key (note that these keys are for testing purposes, and not for
362368
production, as there is no certainty that the toxic waste was securely
363369
discarded).</p>
364370
<p>To download the circuit, proving key, and verification key, run:</p>
365371
<pre><code class="language-bash"># Start from the base directory
366372

367-
cd circuits &amp;&amp; \
368373
./circuits/scripts/download_snarks.sh
369374
</code></pre>
370375
<p>To generate the above files locally instead, run:</p>
371376
<pre><code class="language-bash"># Start from the base directory
372377

373-
cd circuits &amp;&amp; \
374378
./circuits/scripts/build_snarks.sh
375379
</code></pre>
376380
<p>This process should take about 45 minutes.</p>

docs/quickstart.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,29 +149,33 @@ <h1 class="menu-title"></h1>
149149
<div id="content" class="content">
150150
<main>
151151
<h1><a class="header" href="#quick-start" id="quick-start">Quick start</a></h1>
152-
<p>Semaphore has been tested with Node 11.14.0 and Node 12 LTE. Use
153-
<a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p>
152+
<p>Semaphore has been tested with Node 11.14.0. It will run with Node 12 LTE but
153+
we highly recommend using Node 11.14.0 if you wish to develop on its source
154+
code, as one of its dependencies, <code>script</code>, cannot compile when if you use Node
155+
12. </p>
156+
<p>Use <a href="https://github.com/nvm-sh/nvm"><code>nvm</code></a> to manage your Node version.</p>
154157
<p>Clone this repository, install dependencies, and build the source code:</p>
155158
<pre><code class="language-bash">git clone [email protected]:kobigurk/semaphore.git &amp;&amp; \
156159
cd semaphore &amp;&amp; \
157160
npm i &amp;&amp; \
158161
npm run bootstrap &amp;&amp; \
159162
npm run build
160163
</code></pre>
164+
<p><strong>Note</strong>: we use <code>lerna</code> to manage the <code>circuits</code>, <code>config</code>, and <code>contracts</code>
165+
subpackages. Do not run <code>npm install</code> within any of these directories. Instead,
166+
just run <code>npm run bootstrap</code> in the main directory.</p>
161167
<p>Next, either download the compiled zk-SNARK circuit, proving key, and
162168
verification key (note that these keys are for testing purposes, and not for
163169
production, as there is no certainty that the toxic waste was securely
164170
discarded).</p>
165171
<p>To download the circuit, proving key, and verification key, run:</p>
166172
<pre><code class="language-bash"># Start from the base directory
167173

168-
cd circuits &amp;&amp; \
169174
./circuits/scripts/download_snarks.sh
170175
</code></pre>
171176
<p>To generate the above files locally instead, run:</p>
172177
<pre><code class="language-bash"># Start from the base directory
173178

174-
cd circuits &amp;&amp; \
175179
./circuits/scripts/build_snarks.sh
176180
</code></pre>
177181
<p>This process should take about 45 minutes.</p>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs_src/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@
33
cd "$(dirname "$0")"
44
mkdir -p ../docs
55

6+
if [ -f ../docs/CNAME ]; then
7+
mv ../docs/CNAME ./CNAME_bak
8+
fi
9+
610
mdbook build . --dest-dir ../docs/
11+
12+
if [ -f ./CNAME ]; then
13+
mv ./CNAME_bak ../docs/
14+
fi

docs_src/src/quickstart.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Quick start
22

3-
Semaphore has been tested with Node 11.14.0 and Node 12 LTE. Use
4-
[`nvm`](https://github.com/nvm-sh/nvm) to manage your Node version.
3+
Semaphore has been tested with Node 11.14.0. It will run with Node 12 LTE but
4+
we highly recommend using Node 11.14.0 if you wish to develop on its source
5+
code, as one of its dependencies, `script`, cannot compile when if you use Node
6+
12.
7+
8+
Use [`nvm`](https://github.com/nvm-sh/nvm) to manage your Node version.
59

610
Clone this repository, install dependencies, and build the source code:
711

@@ -13,6 +17,10 @@ npm run bootstrap && \
1317
npm run build
1418
```
1519

20+
**Note**: we use `lerna` to manage the `circuits`, `config`, and `contracts`
21+
subpackages. Do not run `npm install` within any of these directories. Instead,
22+
just run `npm run bootstrap` in the main directory.
23+
1624
Next, either download the compiled zk-SNARK circuit, proving key, and
1725
verification key (note that these keys are for testing purposes, and not for
1826
production, as there is no certainty that the toxic waste was securely
@@ -23,7 +31,6 @@ To download the circuit, proving key, and verification key, run:
2331
```bash
2432
# Start from the base directory
2533

26-
cd circuits && \
2734
./circuits/scripts/download_snarks.sh
2835
```
2936

@@ -32,7 +39,6 @@ To generate the above files locally instead, run:
3239
```bash
3340
# Start from the base directory
3441

35-
cd circuits && \
3642
./circuits/scripts/build_snarks.sh
3743
```
3844

0 commit comments

Comments
 (0)