Browse Source

Package change name

feature/synctests2
Jordi Baylina 6 years ago
parent
commit
345f040b41
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
6 changed files with 51 additions and 4 deletions
  1. BIN
      doc/rollup_tx.monopic
  2. BIN
      doc/root_transfer.monopic
  3. BIN
      doc/smt_verifier_sm.monopic
  4. BIN
      doc/voting.monopic
  5. +8
    -4
      package.json
  6. +43
    -0
      rolluptx.circom

BIN
doc/rollup_tx.monopic


BIN
doc/root_transfer.monopic


BIN
doc/smt_verifier_sm.monopic


BIN
doc/voting.monopic


+ 8
- 4
package.json

@ -1,7 +1,7 @@
{ {
"name": "cirpedersen",
"version": "0.0.3",
"description": "Pesersen Circuit for Circom",
"name": "circomlib",
"version": "0.0.1",
"description": "Basic circuits library for Circom",
"main": "index.js", "main": "index.js",
"directories": { "directories": {
"test": "test" "test": "test"
@ -17,7 +17,11 @@
"circom", "circom",
"zksnark" "zksnark"
], ],
"author": "Jordi Baylina",
"repository": {
"type": "git",
"url": "https://github.com/iden3/circomlib.git"
},
"author": "0Kims",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"blake-hash": "^1.1.0", "blake-hash": "^1.1.0",

+ 43
- 0
rolluptx.circom

@ -0,0 +1,43 @@
/*
fnc[0] fn[1] Function S1 S2 S3 S4
0 0 NOP 0 0 0 0
0 1 TRANSFER 0 1 0 1
1 0 ENTRY 0 1 0 1
1 1 EXIT 1 0 1 1
*/
template rollupTx(nLevels) {
signal input fromIdx; // 24
signal input toIdx; // 24
signal input fpTxAmount; // 24
signal input fnc[2]; // 2
signal oldRoot;
signal newRoot;
signal input sigR8;
signal input sigS;
// State 1
signal input Ax1;
signal input Ay1;
signal input St1;
signal input siblings1[nlevels];
// Required for inserts and delete
signal input isOld0_1; // 1
signal input oldKey;
signal input oldValue;
// State 2
signal input Ax2;
signal input Ay2;
signal input St2;
signal input siblings2[nlevels];
signal input isOld0_1; // 1
signal input oldKey;
signal input oldValue;
}

Loading…
Cancel
Save