You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-40Lines changed: 49 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
SMTB is a service for batch processing of Merkle tree updates. It is designed to be used in conjunction with [Semaphore](https://github.com/semaphore-protocol/semaphore). It accepts Merkle tree updates and batches them together into a single one. This is useful for reducing the number of transactions that need to be submitted to the blockchain. The correctness of the batched Merkle tree update is assured through the generation of a SNARK (generated through [gnark](https://github.com/ConsenSys/gnark)).
4
4
5
5
## Table of Contents
6
+
6
7
1.[Features](#features)
7
8
2.[Usage](#usage)
8
9
3.[Benchmarks](#benchmarks)
@@ -20,61 +21,68 @@ SMTB is a service for batch processing of Merkle tree updates. It is designed to
20
21
-[ ] Proving service
21
22
-[ ] Serialize circuit and proving key
22
23
23
-
## Usage
24
-
This part explains the existing cli commands.
25
-
24
+
## Usage
25
+
26
+
This part explains the existing cli commands.
27
+
26
28
1. setup - builds a circuit with provided batch size and depth, compiles it and writes it to a file.
27
-
Flags:
28
-
1. output *file path* - A path used to output a file
29
-
2. tree-depth *n* - Merkle tree depth
30
-
3. batch-size *n* - Batch size for Merkle tree updates
31
-
2. export-solidity - Reads a key file (generated from setup), and writes a solidity verifier contract.
32
-
Flags:
33
-
1. keys-file *file path*
34
-
2. Optional: output *file* - Outputs to a file, if not provided, it will output to stdandard output
35
-
3. gen-test-params - Generates test params given the batch size and tree depth.
36
-
Flags:
37
-
1. tree-depth *n* - Depth of the mock merkle tree
38
-
2. batch-size *n* - Batch size for merkle tree updates
29
+
Flags:
30
+
1. output _file path_ - A path used to output a file
31
+
2. tree-depth _n_ - Merkle tree depth
32
+
3. batch-size _n_ - Batch size for Merkle tree updates
33
+
2. export-solidity - Reads a key file (generated from setup), and writes a solidity verifier contract.
34
+
Flags:
35
+
1. keys-file _file path_
36
+
2. Optional: output _file_ - Outputs to a file, if not provided, it will output to stdandard output
37
+
3. gen-test-params - Generates test params given the batch size and tree depth.
38
+
Flags:
39
+
1. tree-depth _n_ - Depth of the mock merkle tree
40
+
2. batch-size _n_ - Batch size for merkle tree updates
39
41
4. start - starts a api server with /prove and /metrics endpoints
0 commit comments