This commit is contained in:
Jordi Baylina 2020-07-13 08:10:55 +02:00
parent 230cfc98b0
commit acf2671835
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
5 changed files with 28 additions and 22 deletions

View File

@ -20,8 +20,8 @@ The low level criptography is done directly in wasm. And it uses working threads
### Install snarkjs and circom ### Install snarkjs and circom
```sh ```sh
npm install -g circom npm install -g circom@latest
npm install -g snarkjs npm install -g snarkjs@latest
``` ```
### Help ### Help
@ -47,6 +47,12 @@ For example, the previos command can also be invoked as:
snarkjs g16p --help snarkjs g16p --help
``` ```
For this tutorial, create a new direcory and change the path
```sh
mkdir snarkjs_example
cd snarkjs_example
```
### Start a new ceremony. ### Start a new ceremony.
@ -99,7 +105,7 @@ snarkjs powersoftau beacon pot12_0003.ptau pot12_beacon.ptau 0102030405060708090
### Prepare phase2 ### Prepare phase2
```sh ```sh
powersoftau prepare phase2 pot12_beacon.ptau pot12_final.ptau -v snarkjs powersoftau prepare phase2 pot12_beacon.ptau pot12_final.ptau -v
``` ```
### Verify the last file ### Verify the last file

View File

@ -739,7 +739,7 @@ async function r1csExportJson(r1csFileName, logger) {
var name = "snarkjs"; var name = "snarkjs";
var type = "module"; var type = "module";
var version = "0.1.31"; var version = "0.3.0";
var description = "zkSNARKs implementation in JavaScript"; var description = "zkSNARKs implementation in JavaScript";
var main = "./build/main.cjs"; var main = "./build/main.cjs";
var module$1 = "./main.js"; var module$1 = "./main.js";
@ -777,12 +777,12 @@ var repository = {
}; };
var dependencies = { var dependencies = {
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git", "blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
circom_runtime: "0.0.8", circom_runtime: "0.0.9",
fastfile: "0.0.6", fastfile: "0.0.6",
ffjavascript: "0.2.2", ffjavascript: "0.2.4",
keccak: "^3.0.0", keccak: "^3.0.0",
logplease: "^1.2.15", logplease: "^1.2.15",
r1csfile: "0.0.10", r1csfile: "0.0.12",
yargs: "^12.0.5" yargs: "^12.0.5"
}; };
var devDependencies = { var devDependencies = {

File diff suppressed because one or more lines are too long

22
package-lock.json generated
View File

@ -280,11 +280,11 @@
} }
}, },
"circom_runtime": { "circom_runtime": {
"version": "0.0.8", "version": "0.0.9",
"resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.8.tgz", "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.0.9.tgz",
"integrity": "sha512-4ddyXq5doq0Mj3QXUWy3owmiE+gI4EMYwn7UjFeQKUb9ieXK6ZKvz3RVP+fktcuPQvdc69q5X310trnX7d7Xcw==", "integrity": "sha512-bLSUjW7zVTcExSqwP1TovwMqflTQuhFyJhu4K2vCs5DkdcQp1R5pp0b6Oa0e0ldjqapIP59091M4jotcuSTnkQ==",
"requires": { "requires": {
"ffjavascript": "0.2.2", "ffjavascript": "0.2.4",
"fnv-plus": "^1.3.1" "fnv-plus": "^1.3.1"
} }
}, },
@ -663,9 +663,9 @@
"integrity": "sha512-6cOUdePcue0DAssqGKPhmcSgdLTaB2IzxNgg2WAADOuta00Os88+ShpDItSkQ/eLCiAeYjsPasdBLYozVz+4Ug==" "integrity": "sha512-6cOUdePcue0DAssqGKPhmcSgdLTaB2IzxNgg2WAADOuta00Os88+ShpDItSkQ/eLCiAeYjsPasdBLYozVz+4Ug=="
}, },
"ffjavascript": { "ffjavascript": {
"version": "0.2.2", "version": "0.2.4",
"resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.2.tgz", "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.4.tgz",
"integrity": "sha512-Fp3qbKCuk3ZuOgMhpV6E5fiv/ZfMV5iuiGCk2YBb2rdFkgHza5Vc/AZTDDIwetoq1kh/ZX3Ky8k214jzDHVFDw==", "integrity": "sha512-XFeWcjUDFPavN+DDOxhE8p5MOhZQJc9oO1Sj4ml1pyjqNhS1ujEamcjFyK0cctdnat61i7lvpTYzdtS3RYDC8w==",
"requires": { "requires": {
"big-integer": "^1.6.48", "big-integer": "^1.6.48",
"wasmcurves": "0.0.4", "wasmcurves": "0.0.4",
@ -1688,12 +1688,12 @@
"dev": true "dev": true
}, },
"r1csfile": { "r1csfile": {
"version": "0.0.10", "version": "0.0.12",
"resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.10.tgz", "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.12.tgz",
"integrity": "sha512-9w2aCGE9E85v4zGGyLuKyiFyFOv71f7tNbmeujCmNFdQkW06rhuEKMcv/My8MBqOI0SyA6fefYJxGyKOSDCNNA==", "integrity": "sha512-PcxL8dlJJ3i6g2wwcsXUnETIUQ0pg8RstZlTn00iqC79EYYBc/jsYC9Y8tt1+NTZ8pW5A+y0SefNsqVR16I3JQ==",
"requires": { "requires": {
"fastfile": "0.0.6", "fastfile": "0.0.6",
"ffjavascript": "0.2.2" "ffjavascript": "0.2.4"
} }
}, },
"randombytes": { "randombytes": {

View File

@ -39,12 +39,12 @@
}, },
"dependencies": { "dependencies": {
"blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git", "blake2b-wasm": "https://github.com/jbaylina/blake2b-wasm.git",
"circom_runtime": "0.0.8", "circom_runtime": "0.0.9",
"fastfile": "0.0.6", "fastfile": "0.0.6",
"ffjavascript": "0.2.2", "ffjavascript": "0.2.4",
"keccak": "^3.0.0", "keccak": "^3.0.0",
"logplease": "^1.2.15", "logplease": "^1.2.15",
"r1csfile": "0.0.10", "r1csfile": "0.0.12",
"yargs": "^12.0.5" "yargs": "^12.0.5"
}, },
"devDependencies": { "devDependencies": {