Update dependencies & fix package name to self-hosted registry
This commit is contained in:
parent
53cb08d9b9
commit
9cf202ce36
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
@tornado:registry=https://git.tornado.ws/api/packages/tornado-packages/npm/
|
6395
package-lock.json
generated
6395
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -1,8 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "fixed-merkle-tree",
|
"name": "@tornado/fixed-merkle-tree",
|
||||||
"version": "0.3.4",
|
"version": "0.3.4",
|
||||||
"description": "Fixed depth merkle tree implementation with sequential inserts",
|
"description": "Fixed depth merkle tree implementation with sequential inserts",
|
||||||
"main": "src/merkleTree.js",
|
"main": "src/merkleTree.js",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.tornado.ws/tornado-packages/fixed-merkle-tree.git"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"lint": "eslint ."
|
"lint": "eslint ."
|
||||||
@ -18,8 +22,8 @@
|
|||||||
"src/*"
|
"src/*"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"snarkjs": "git+https://github.com/tornadocash/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5",
|
"@tornado/circomlib": "^0.0.21",
|
||||||
"circomlib": "git+https://github.com/tornadocash/circomlib.git#5beb6aee94923052faeecea40135d45b6ce6172c"
|
"@tornado/snarkjs": "^0.1.20"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
const { mimcsponge } = require('circomlib')
|
const { mimcsponge } = require("@tornado/circomlib");
|
||||||
const { bigInt } = require('snarkjs')
|
const { bigInt } = require("@tornado/snarkjs");
|
||||||
module.exports = (left, right) => mimcsponge.multiHash([bigInt(left), bigInt(right)]).toString()
|
module.exports = (left, right) =>
|
||||||
|
mimcsponge.multiHash([bigInt(left), bigInt(right)]).toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user