Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
2335740e11 | |||
35c22e22ff | |||
c89146c3e5 |
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
||||
@tornado:registry=https://git.tornado.is/api/packages/tornado-packages/npm/
|
12556
package-lock.json
generated
12556
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,9 @@
|
||||
{
|
||||
"name": "fixed-merkle-tree",
|
||||
"name": "@tornado/fixed-merkle-tree",
|
||||
"version": "0.5.1",
|
||||
"description": "Fixed depth merkle tree implementation with sequential inserts",
|
||||
"main": "src/merkleTree.js",
|
||||
"repository": "https://git.tornado.is/tornado-packages/fixed-merkle-tree.git",
|
||||
"scripts": {
|
||||
"test": "mocha",
|
||||
"lint": "eslint ."
|
||||
@ -18,8 +19,8 @@
|
||||
"src/*"
|
||||
],
|
||||
"dependencies": {
|
||||
"snarkjs": "git+https://github.com/tornadocash/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5",
|
||||
"circomlib": "git+https://github.com/tornadocash/circomlib.git#5beb6aee94923052faeecea40135d45b6ce6172c"
|
||||
"@tornado/circomlib": "0.0.21",
|
||||
"@tornado/snarkjs": "0.1.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^10.1.0",
|
||||
|
@ -1,3 +1,3 @@
|
||||
const { mimcsponge } = require('circomlib')
|
||||
const { bigInt } = require('snarkjs')
|
||||
const { mimcsponge } = require('@tornado/circomlib')
|
||||
const { bigInt } = require('@tornado/snarkjs')
|
||||
module.exports = (left, right) => mimcsponge.multiHash([bigInt(left), bigInt(right)]).toString()
|
||||
|
Loading…
Reference in New Issue
Block a user