pre production config

This commit is contained in:
Alexey 2021-02-26 11:17:13 +03:00
parent 2dd8c95300
commit 0cabd318cd
7 changed files with 7 additions and 7 deletions

@ -87,5 +87,5 @@ function nthZero(n) {
if (n == 9) return 209436188287252095316293336871467217491997565239632454977424802439169726471;
}
var CHUNK_TREE_HEIGHT = 2
var CHUNK_TREE_HEIGHT = 8
component main = BatchTreeUpdate(20, CHUNK_TREE_HEIGHT, nthZero(CHUNK_TREE_HEIGHT))

@ -17,7 +17,7 @@ contract TornadoTrees {
ITornadoTreesV1 public immutable tornadoTreesV1;
// make sure CHUNK_TREE_HEIGHT has the same value in BatchTreeUpdate.circom
uint256 public constant CHUNK_TREE_HEIGHT = 2;
uint256 public constant CHUNK_TREE_HEIGHT = 8;
uint256 public constant CHUNK_SIZE = 2**CHUNK_TREE_HEIGHT;
uint256 public constant ITEM_SIZE = 32 + 20 + 4;
uint256 public constant BYTES_SIZE = 32 + 32 + 4 + CHUNK_SIZE * ITEM_SIZE;

@ -1,6 +1,6 @@
{
"name": "tornado-trees",
"version": "0.0.5",
"version": "0.0.6",
"main": "src/index.js",
"repository": "https://github.com/tornadocash/tornado-trees.git",
"author": "Tornadocash team <hello@tornado.cash>",

@ -15,7 +15,7 @@ const instances = [
]
const blocks = ['0xaaaaaaaa', '0xbbbbbbbb', '0xcccccccc', '0xdddddddd']
const CHUNK_TREE_HEIGHT = 2
const CHUNK_TREE_HEIGHT = 8
const levels = 20
const nonRandomBN = (nonce = 0) =>

@ -15,7 +15,7 @@ const instances = [
]
const blocks = ['0xaaaaaaaa', '0xbbbbbbbb', '0xcccccccc', '0xdddddddd']
const CHUNK_TREE_HEIGHT = 2
const CHUNK_TREE_HEIGHT = 8
const levels = 20
const nonRandomBN = (nonce = 0) =>

@ -4,7 +4,7 @@ const { poseidonHash2, randomBN } = require('../src/utils')
const { batchTreeUpdate, prove } = require('../src/index')
const levels = 20
const CHUNK_TREE_HEIGHT = 2
const CHUNK_TREE_HEIGHT = 8
describe('Snark', () => {
it('should work', async () => {
const tree = new MerkleTree(levels, [], { hashFunction: poseidonHash2 })

@ -17,7 +17,7 @@ async function register(note, tornadoTrees, from) {
}
const levels = 20
const CHUNK_TREE_HEIGHT = 2
const CHUNK_TREE_HEIGHT = 8
const instances = [
'0x1111000000000000000000000000000000001111',