Compare commits

...

3 Commits

Author SHA1 Message Date
2335740e11 updated package-lock.json metadata for good
Some checks failed
build / test (push) Has been cancelled
build / lint (push) Has been cancelled
build / publish (push) Has been cancelled
2024-07-29 16:16:41 -04:00
35c22e22ff updated npm and package.json links
Some checks are pending
build / test (push) Waiting to run
build / lint (push) Waiting to run
build / publish (push) Blocked by required conditions
2024-07-29 16:06:06 -04:00
c89146c3e5 Prepare package to self-host in Gitea npm registry 2023-09-12 03:20:29 -07:00
5 changed files with 10213 additions and 2504 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
@tornado:registry=https://git.tornado.is/api/packages/tornado-packages/npm/

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v14.21.3

12704
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,9 @@
{ {
"name": "fixed-merkle-tree", "name": "@tornado/fixed-merkle-tree",
"version": "0.5.1", "version": "0.5.1",
"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": "https://git.tornado.is/tornado-packages/fixed-merkle-tree.git",
"scripts": { "scripts": {
"test": "mocha", "test": "mocha",
"lint": "eslint ." "lint": "eslint ."
@ -18,8 +19,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",

View File

@ -1,3 +1,3 @@
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()